← Back to the journal

How to Build a Knowledge Base for Your AI Voice Agent (and When You Need RAG)

A caller asks your AI agent whether you work on Saturdays. It says yes. You don't. The voice was perfect; the knowledge base was the problem.

About the team
Updated:
November 26, 2026
Cover for the article How to Build a Knowledge Base for Your AI Voice Agent, with a caller question card linked by a blue line to a knowledge base card with the Company info section highlighted and a chip reading Answered from the knowledge base
In a nutshell

Keep three things apart: Project Instructions (behaviour and tone), the Script (fixed call flow, if you need one) and the knowledge base (facts only). Write the knowledge base as short facts under clear headings: FAQs, services, pricing, locations, company info, policies. Don't duplicate content. When your facts outgrow the built-in limit (37,000 characters in Brightcall), split them into topic knowledge bases or connect Markdown files through RAG, then test with real caller questions.

A caller asks your AI agent whether you're open on Saturdays. It says yes. You're not. The voice was natural, the response was fast, and the answer was wrong.

Most problems with AI voice agents come down to one thing: what the agent knows and how that knowledge is organised. This guide is for business owners, not engineers. It covers what to put in your agent's knowledge base, how to structure it, how to test it, and when a growing knowledge base needs RAG.

What a knowledge base is (and what it isn't)

A knowledge base is the factual reference your AI agent uses to answer questions during a call: your services, prices, opening hours, areas you cover, policies and the questions customers ask most.

It isn't where you tell the agent how to behave. Brightcall's Help Center separates three things that people often mix together:

PartWhat it controlsExample
Project InstructionsWho the agent is, its goal, tone, rules and what to avoid"Ask one question at a time. Do not make up prices."
Script (optional)A fixed, step-by-step call flow, with zero improvisation"[If the lead agrees, say:] Perfect, this will only take a moment."
Knowledge baseFacts only: no personality, no scripted lines"Standard cleaning for a 2-bedroom flat takes 2 to 3 hours."

Keeping them apart matters. If you write "be friendly" inside your price list, or bury prices inside a long personality description, the agent has to guess which is which. Clean separation gives it a clear job for each part.

What to put in your knowledge base

Start from the questions your team actually answers on the phone. Brightcall's guide suggests clear sections such as:

  • #FAQs#: the 10 to 30 questions callers ask most, each with a short, direct answer
  • #Services#: what you offer, and just as important, what you don't
  • #Pricing#: starting prices, what's quote-based only, what's included
  • #Locations#: areas you cover and addresses
  • #Company Info#: opening hours, response times, contact routes
  • #Policies#: cancellations, refunds, guarantees, viewing or booking rules

Write short facts, use bullet points, and avoid long paragraphs. Brightcall's video tutorial also recommends writing in Markdown and avoiding duplicate content: if the same fact appears twice in different words, sooner or later the two versions will disagree.

Write what's not true too. Most wrong answers come from gaps. If you don't work Saturdays, say "We are closed on Saturdays and Sundays." If you don't serve a district, say so. Then add a fallback rule in your Project Instructions, for example: "If the answer is not in the knowledge base, say you'll check and arrange a call back. Never guess." Brightcall's own example instructions include "Do not make up prices" and "Do not promise availability".

How to structure it so the agent finds the right answer

Use headings. That sounds trivial, but it has a big effect on accuracy. In Brightcall's guide to RAG, the system uses your titles and headings to organise content, and anything without a title is treated as one block, which can hurt accuracy and increase token usage.

A few rules that make a difference:

  • One topic per heading. "Pricing: deep cleaning" is better than a single "Pricing" section with everything in it.
  • Split big tables. Break large tables into smaller sections and give each one a title.
  • Use the caller's words. If customers say "move-out clean", use that phrase, not your internal product code.
  • Keep it current. Put a named person in charge of updates, and change the knowledge base the same day prices or hours change.

If Markdown is new to you, it's just plain text with a few symbols: # for a title, ## for a subtitle, - for a bullet. The Markdown Guide and the CommonMark reference explain it in ten minutes.

When your knowledge base gets bigger

Small businesses can often fit everything into one knowledge base. In Brightcall, the knowledge base in project settings holds up to 37,000 characters, roughly the length of a long FAQ document. As you add more products, branches or projects, you have two options.

Option 1: Topic knowledge bases inside a project. Brightcall lets you add a list of knowledge bases as a project data field, each with a name, a short description of when to use it, and the content itself. According to Brightcall's best-practice guide, each entry is limited to 4,000 characters, you can include many entries (for example, up to 50), and the total can reach 200,000 characters. A second setting decides how many of these knowledge bases the agent uses in one prompt: by default 3, from 1 to 5. The descriptions do the heavy lifting here: "Prices and availability for the Marina Heights project" tells the agent exactly when to use that entry.

Option 2: RAG. When you have more material than that, or it lives in longer documents, you connect files through RAG.

What RAG is, in plain language

RAG stands for retrieval-augmented generation. The term comes from a 2020 research paper by Lewis et al. that combined a language model with a searchable index of documents, so the model could look up relevant passages before answering.

In practice: instead of putting all your information into the agent's instructions at once, the system keeps your documents in a separate store. When a caller asks a question, it searches for the most relevant sections and gives only those to the agent to answer from. That's why headings matter so much with RAG: they're how the system cuts your documents into findable pieces.

You probably need RAG when:

  • your facts are larger than the built-in knowledge base limit
  • you have long documents, such as product catalogues, course handbooks or property lists
  • different callers need very different information, and loading everything into every call would be wasteful

You probably don't need RAG when:

  • you have one service area, a short price list and a few dozen FAQs
  • your main problem is wrong answers (that's usually a content problem, and RAG won't fix it)

Setting up RAG in Brightcall

Brightcall's Help Center describes the steps:

  1. Prepare your file in Markdown (.md or .mdx) with clear titles and headings.
  2. In your Brightcall account, go to Account Settings → RAG Settings and click Create Knowledge Base.
  3. Give it a name, click Create, then from the Actions menu choose Manage.
  4. Go to Documents → Upload File and upload your Markdown file.
  5. Open your AI Agent project, go to Project Settings → Calls, click Show Advanced Settings, select your knowledge base under AI RAG Knowledge Bases, and click Save.

You can create up to 5 RAG knowledge bases, each with up to 5 files.

Test it like a caller would

Don't judge a knowledge base by reading it. Judge it by calling. Write 20 real questions, including awkward ones, and call your agent. Here are example test sets for three fictional businesses:

A real estate agency (fictional: Harbourline Homes) - "Is the two-bed on Elm Street still available?" - "Do you allow pets?" - "Can I view it on Sunday?" (when you don't do Sunday viewings)

A training school (fictional: Northfield Academy) - "When does the next evening course start?" - "Can I pay in instalments?" - "Do you offer the course online?" (when you only teach in person)

A marketing agency (fictional: Bluepeak Studio) - "What's your minimum monthly budget?" - "Do you do TikTok ads?" - "Can I cancel after one month?"

For each answer, ask three questions: Was it correct? Was it from the knowledge base, or invented? Did the agent handle the "no" answers gracefully? Fix the content, not just the wording, and test again. Brightcall's AI Agent can also collect details during the call and hand over to a person when needed, so decide in advance which questions should end in a transfer or a call back rather than an answer.

Common mistakes

  • Mixing behaviour and facts. Tone goes in Project Instructions; facts go in the knowledge base.
  • Copy-pasting your whole website. Marketing copy is full of adjectives and short on facts. Rewrite it as plain answers.
  • Duplicates and contradictions. One fact, one place.
  • No headings. Untitled text becomes one large block that's harder to search.
  • No owner. Out-of-date prices are the fastest way to lose trust.

If you're comparing platforms on how they handle knowledge, see our Brightcall vs Retell AI, Vapi and Synthflow comparison. And once your agent answers well, connect it to how leads arrive: Speed To Lead calls new leads within seconds, and integrations log every call in your CRM.

Want to know what your AI agent would need to know to handle your calls? Book a free 20-minute AI call audit

Setting up and maintaining an accurate knowledge base for an AI phone agent

Real estate, education, home services, agencies, clinics

Frequently asked questions

What should I put in my AI voice agent's knowledge base?

Facts callers need: FAQs, services (and what you don't offer), pricing, locations, opening hours, company information and policies. Keep tone and behaviour rules in the Project Instructions instead.

How do I stop my AI agent from making things up?

Fill the gaps by writing down what isn't true as well as what is, remove duplicates, and add a fallback rule such as "If the answer is not in the knowledge base, offer a call back. Never guess."

What format should my knowledge base be in?

Short facts under clear headings. Brightcall recommends Markdown (.md or .mdx) for RAG files, with titles and subtitles, and splitting large tables into smaller titled sections.

When do I need RAG for an AI voice agent?

When your facts no longer fit in the built-in knowledge base (37,000 characters in Brightcall's project settings), or when you have long documents like catalogues or handbooks. If your agent gives wrong answers on a small knowledge base, fix the content first.

How many knowledge bases can I use in Brightcall?

You can create up to 5 RAG knowledge bases with up to 5 files each. Inside a project you can also add a list of topic knowledge bases of up to 4,000 characters each, up to 200,000 characters in total.

Sources

Book a free 20-minute AI call audit

In 20 minutes we review how your calls are handled today and what your AI agent would need to know to answer them well.

Keep reading.

All articles
Next article

Read article