Data sources and training

Add knowledge to your agent under Build > Sources: website crawls, files, pasted text, Q&A pairs and help center imports, plus statuses and retraining.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Sources are the knowledge your agent answers from. Open an agent and select Build > Sources to add and manage them. The agent answers from its sources and procedures, so the quality of your sources sets the quality of its answers.

Source types

Type Use it for
Website Crawl a URL or a sitemap, such as your help center or product pages.
Files PDF, DOCX, TXT or CSV files, such as manuals or price lists.
Text Pasted text, such as a policy you have not published.
Q&A Question and approved answer pairs, for wording that must be exact.
Help center import Bring in articles from an existing help center.

Add a source

  1. Open Build > Sources and select Add source.
  2. Choose a type.
  3. Provide the content: a URL or sitemap, a file, pasted text or a question and its answer.
  4. Select Add.

You should see the source appear with the status Queued.

Source statuses

Status Meaning
Queued Waiting to be processed.
Training The content is being read and indexed.
Ready The agent can use it.
Failed Something went wrong. Open the source to see why.

A website that needs a login, a password-protected file or an empty page can fail. Fix the cause, then select Retrain on the source.

Keep sources current

Content changes, and sources must follow.

  • Retrain manually. Select a source and choose Retrain after you change the page.
  • Auto-retrain. Turn it on to retrain website sources on a schedule, such as daily or weekly. Developers can toggle it through the Toggle auto retrain endpoint.

Tip: Q&A pairs outrank vague pages. When the agent answers a question wrongly, write the right answer as a Q&A pair, and it will use that wording.

Good source habits

  • Add the pages customers read, not the whole website. Menus and footers add noise.
  • Keep one version of each policy. Two conflicting pages produce conflicting answers.
  • Remove sources that are out of date.
  • Use Activity to find questions without a source.

Test and use the API

After a source is Ready, ask a question in Test > Playground and check which source the answer used. To manage sources from code, see Sources API. To decide how the agent uses the knowledge in a conversation, write a procedure.

Something unclear or missing? Tell us and we will fix the page.