What is a Corpus?
A corpus is a collection of documents that your agent can search and reference during conversations. When a contact asks a question, the agent automatically queries the relevant corpus to find the most accurate answer from your content rather than relying solely on its general knowledge. This is powered by RAG (Retrieval-Augmented Generation) — documents are embedded and indexed so the agent can quickly find the most relevant passages for any question.Supported Document Types
You can add documents to a corpus in two ways:Managing a Corpus
Attaching to Personas
A corpus is attached to a persona to make it available during conversations. Each persona can have one corpus attached. When attached, the agent automatically gets asearch_knowledge tool that it can invoke to query the corpus.
You can control the scope of the attachment:
Keep your corpus focused on the type of questions your agent will actually receive. A smaller, well-curated corpus will give better results than a large, unfocused one.
How It Works in Practice
When a contact asks a question during a conversation with your agent:- The agent decides the question requires looking up information
- It invokes the
search_knowledgetool with a search query - The most relevant passages from your corpus are returned
- The agent uses those passages to formulate an accurate, grounded response
If the corpus doesn’t contain information relevant to the question, the agent will fall back to its general knowledge or let the contact know it doesn’t have that information, depending on your prompt instructions.

