Agoralia docs
Build

Knowledge base

Attach a semantic knowledge base to an agent so it can answer from your own facts — add sources from text, Q&A pairs, or URLs.

Knowledge base

A knowledge base (KB) gives an agent your own facts to draw on during a call — pricing, policies, FAQs, product details. Sources are embedded and searched semantically, so the agent retrieves the relevant passage even when the caller phrases a question differently.

Add sources

Build up a KB from three kinds of source. Each is added with its own MCP tool (and the equivalent REST endpoint / CLI command).

SourceMCP toolUse it for
Free textadd_kb_textPasted documents, policy text, notes.
Q&A pairadd_kb_qaCrisp answers to common questions.
URLadd_kb_urlA page Agoralia fetches and ingests.
MCP — add a Q&A and some text
add_kb_qa(question="What is your refund window?", answer="30 days from purchase, no questions asked.")
add_kb_text(text="Acme Pro is €49/mo billed annually. The Team plan is €99/mo...")
add_kb_url(url="https://acme.com/pricing")

List what's ingested with list_kb_sources, remove a source with delete_kb_source, and test retrieval directly with search_kb.

MCP — check what the agent will find
search_kb(query="how much does the team plan cost")

Attach to an agent

An agent carries a knowledge_base field — the sources it can search at call time. Set it when you create the agent or update it later, then re-publish so the change reaches the voice provider.

Re-publish after KB changes

Attaching or detaching KB sources changes the agent's configuration. Run publish_agent (POST /agents/{id}/publish) again so the live agent picks it up. See Agents.

Next