Knowledge base

Give an agent documents, web pages and text to answer from — shared across agents or kept local to one.

A knowledge base is the material an agent answers from: opening hours, price lists, policies, product documentation. The model retrieves the relevant passages during the conversation rather than carrying everything in its instructions.

What you can add

TypeUse it for
TextShort facts written directly in the dashboard
PDFExisting documents, brochures, terms
DOCXWord documents
Web pageA single URL, fetched and indexed
WebsiteA site's structure, followed page by page

Where an item lives

Every item has a scope:

  • Reusable — kept in the workspace library and attached wherever it is needed. One source of truth for material several agents share.
  • Flow — belongs to one flow.
  • Agent — belongs to one agent.

Tip

Shared facts belong in reusable items. When the price list changes, you update it once instead of in every agent that quotes it.

Keeping items up to date

An item can re-read its source on a schedule. Website items read their own site again; text, PDF and DOCX items can be given a source link — a web page, a Markdown or text file, or a direct download link to the document. A text or document item can even start from its link alone, with nothing pasted or uploaded.

Turn on Automatic updates in the item's editor and choose how often: from every 6 hours to monthly (Website Knowledge at most daily, since it rewrites its whole dossier). Update now reads the source straight away, whether or not a schedule is on.

  • A source that has not changed is not processed again.
  • While an update runs, agents keep answering from the current content. An update that cannot read the source leaves the item as it was and tries again later, sooner at first.
  • For a text item, what the link holds replaces the item's text. For a document item, a changed file replaces the stored one.

Tip

Updates count toward your workspace's monthly allowance, shown on the Usage page under Monthly limits. Updates that fail do not count, and Update now can be used three times per item per hour.

Managing it from the API

An agent's knowledge base can be read and edited over the API — list, create, update and delete items — which is how most teams keep it in sync with a CMS or product database. See Knowledge base in the API reference.

Knowledge base or data store?

Use the knowledge base for prose the agent reads. Use a data store for records the agent looks up — a customer by phone number, a booking by reference — where an exact match matters more than a relevant passage.