Skip to navigation

knowledge

Read and change the Knowledge of your AI Agent: articles, availability rules, website imports, and other Knowledge sources. The alias is kb.

Commands

CommandWhat it does
knowledge listLists articles, one page at a time.
knowledge get <id>Shows one article.
knowledge createCreates an article from text or from a file.
knowledge update <id>Changes the title or body of an article, or turns the article on or off.
knowledge delete <id>Deletes an article.
knowledge set-rulesSets availability rules on one or more articles.
knowledge scrapeImports web pages as articles, with an optional crawl and sync schedule.
knowledge sources listLists Knowledge sources, with their rules and sync schedule.
knowledge sources createCreates a Knowledge API source.
knowledge sources update <id>Changes the name, sync schedule, rules, or excluded paths of a source.
knowledge sources sync <id>Crawls a website import again now.

Examples

Create an article from a Markdown file:

adacli acme knowledge create --title "Shipping FAQ" --file shipping.md

Turn off an article:

adacli acme knowledge update art-abc123 --disable

Show two articles only to end users whose language is French. v() takes a variable ID from adacli acme variables list, not a variable name:

adacli acme knowledge set-rules --articles art-abc123 art-def456 \
--rules 'all(equals(v("60a1b2c3d4e5f60718293a4b"), "fr"))'

Import a help center, follow its links, and sync it every weekday at 7:00 and 19:00 Toronto time:

adacli acme knowledge scrape --name "Help Center" --urls https://example.com/help --crawl \
--sync-at 7,19 --sync-days mon,tue,wed,thu,fri --timezone America/Toronto

Leave the blog out of a website import, then crawl it again:

adacli acme knowledge sources update <source-id> --exclude-paths /blog
adacli acme knowledge sources sync <source-id>

Details

  • create and update check the article before they send it. The title must have 1 to 255 characters. The body must not be empty and must be 100 KiB or less. If a check fails, adacli sends nothing.
  • scrape accepts about 10 URLs in one request. For a larger import, run scrape more than once, with a different --name each time. scrape returns no source ID. To find it, run knowledge sources list.
  • A rule set on a source applies to the articles that the source adds after the change. Existing articles keep their rules.
  • sources sync works only on a website import. An App connection syncs on its own schedule.

For every option of a command, run it with --help, for example adacli acme knowledge scrape --help.

  • variables: get the variable IDs for availability rules.
  • glossary: set how the AI Agent uses and translates terms.
  • snapshot: export all Knowledge with the rest of the configuration.