What is a Knowledge Base?
A knowledge base is a collection of simple text files that your voice AI agent reads to answer customer questions. Think of it like a cheat sheet — when a caller asks something, the agent searches these files and returns the best (typically 5 by default) matches to find the right answer before speaking it back naturally. Each file usually covers one question or topic but can cover more if these topics/questions are inter-related. The files are written in a format called Markdown, which is just plain text with a few symbols for formatting. You don’t need any coding experience — if you can write an email, you can write a knowledge base file. Learn how markdown works: https://www.markdownguide.org/cheat-sheet/The Golden Rule: You’re Writing for a Voice, Not a Screen
Your AI agent will speak these answers out loud to real callers. Everything you write should sound natural when read aloud. Before saving any file, read your answer out loud to yourself. If it sounds robotic or awkward, rewrite it. Avoid:- Bullet-point heavy answers (the agent may literally say “one…do this. two….do that.”)
- Abbreviations that are specific to your organization and may not be understood by customers
- Long, dense paragraphs — break things into short, conversational sentences
File Naming Convention
Every file should be named clearly so you (and the AI agent) can find them easily. Suggested Format:Q + short description of the question, written in PascalCase (capitalize the first letter of each word, no spaces), saved as .md
Examples:
- Start every filename with
Qso it’s clear this is a question-and-answer file - Keep it short but descriptive enough that you know the topic at a glance
- Don’t use spaces, special characters, or apostrophes in filenames
- Use
.mdas the file extension when saving (this stands for Markdown)
File Structure Template
Below is the basic template every knowledge base file should follow. Copy this and fill it in for each new topic.Template Variations
Depending on the type of question, you’ll use slightly different structures. Here are the main patterns you’ll need.1. Simple Q&A (Direct Answer)
Use this when there’s a straightforward answer the agent can just say.2. Step-by-Step Walkthrough
Use this when the caller needs to be guided through a process on a website or portal. Number each step and keep instructions short.3. Conditional Response (If/Then)
Use this when the answer changes depending on what the caller says. Write the default answer first, then add the condition with angle brackets or a clear label.4. Information Collection/Calling an action (Raise a Ticket)
Use this when the agent needs to gather details from the caller before creating a support ticket. List each question the agent should ask, one by one.5. Short Deflection or Policy Statement
Use this when the answer is brief and the service isn’t offered.6. Question with Alternative Phrasings
Use this when callers might ask the same thing in different ways. List the alternate phrasings so the AI can match any of them.Writing Tips for Voice AI
Do This
- Write the way a helpful human agent would talk. Use natural phrasing like “You’ll want to…” or “Go ahead and…” instead of “The user shall proceed to…”
- Keep sentences short. The AI agent speaks these out loud. Long, complex sentences become confusing over the phone.
- Spell out anything that could be mispronounced.
- Use one file per question. Don’t bundle multiple topics into a single file. If two questions are related but different, make two files.
- Include the exact words callers use. Write the question the way a real customer would phrase it, not in formal or internal-jargon language.
Don’t Do This
- Don’t write internal notes without marking them clearly. If something is an instruction for the agent’s behavior (not to be spoken), wrap it in angle brackets:
<This is an internal instruction>. - Don’t include URLs unless the caller needs them. If you do include a URL, write it in a speakable way: “mystrada dot com slash my account” rather than just pasting the link.
- Don’t leave placeholder text. Every file should have a complete, usable answer.
Markdown Basics You Need to Know
You only need four things:| What you want | What you type | What it does |
|---|---|---|
| A heading / the question | # Q: Your question here | Marks the main question — always start the file with this |
| Bold label for the answer | **A:** | Marks the start of the answer |
| A numbered list | 1. First step then 2. Second step | Creates ordered steps for walkthroughs |
| An internal instruction | <Your instruction here> | Signals that this text is a direction for the agent, not something to say to the caller |
Checklist Before Publishing a File
Run through this list for every file before adding it to your knowledge base:- The filename starts with
Qand ends with.md - The file starts with
# Q:followed by the question - The answer is written in a natural, conversational tone
- You’ve read the answer out loud and it sounds like something a real person would say on the phone
- Each file covers only one topic or question
- Any alternative phrasings of the question are listed
- Internal instructions (things the agent should do but not say) are wrapped in angle brackets
< > - Step-by-step instructions are numbered and clear
- There are no leftover placeholders or incomplete answers
- URLs are written in a speakable format if the caller needs them