What a knowledge base is
A knowledge base is a set of documents the agent searches while it talks. When you add a document, Dialgem splits it into passages and indexes them. On each turn, the agent looks up the passages closest to what the caller said and hands them to the language model along with the conversation.
An agent with no documents skips the lookup entirely, so a knowledge base you do not use costs nothing.
What belongs in it, and what belongs in the prompt
The prompt holds behaviour: who the agent is, how it speaks and what it must never do. The knowledge base holds facts that are too long or change too often for a prompt.
- Knowledge base: price lists, policies, opening hours, product details, procedures.
- Prompt: tone, goals, escalation rules, what to say when it does not know.
Getting documents in
You can add a document through the API by sending its text and a filename, up to 500,000 characters each, or upload .txt and .md files in the dashboard. You can also import from Notion, Google Drive or OneDrive using a connection you saved under Integrations. The knowledge base docs cover limits and file types. Imports do not sync by themselves: you choose Re-sync when the source changes, and a failed re-sync keeps what you already had.
Writing documents an agent can use
Retrieval works on passages, so structure matters more than length.
- One topic per document, with clear headings.
- State facts in full sentences rather than fragments that only make sense in a table.
- Put the current figure in the document and remove the old one, instead of listing both.
- Tell the agent in the prompt what to do when the answer is not in the documents.
Check what it actually says
After test calls, read the transcripts for answers that should have come from a document. If the agent missed one, the passage is usually buried in a long document or worded differently from how callers ask.
Questions
How does a voice agent use a knowledge base?
On each turn it searches your indexed documents for the passages closest to what the caller said, and the language model uses those passages to write its reply.
Can I import from Notion or Google Drive?
Yes, from the dashboard, using a connection you saved under Integrations. Imports are re-synced by hand, not automatically.