How to create an AI chatbot knowledge base
What is a chatbot knowledge base
A chatbot knowledge base is the collection of information an AI chatbot draws on when it answers visitors: FAQs, product and service descriptions, prices, policies, help articles and anything else customers ask about. It’s the reference library the bot consults before every reply.
Modern AI chatbots use it through retrieval-augmented generation (RAG):
Your content is split into small chunks
Each chunk is stored in a searchable index.
A visitor asks a question
The system finds the chunks closest in meaning — not just matching keywords.
The AI writes the answer
It combines the question with the chunks it found, so the answer is grounded in your content.
That’s why the knowledge base matters more than the model: outdated or contradictory content goes straight to your visitors, while well-prepared content makes even a simple bot useful. RAG reduces made-up answers a lot, but doesn’t remove them completely — testing still matters.
What to put in a chatbot knowledge base
Start with what directly answers customer questions, then expand based on what visitors actually ask.
First
Content
Where to find it
Second
Content
Where to find it
Third
Content
Where to find it
Just as important is what to leave out: outdated pages, sensitive internal data, statements that contradict each other, marketing copy without real answers, and content that only makes sense with a lot of context.
How to create a knowledge base for a chatbot
Existing content rarely works well as it is. Four steps turn it into something a chatbot can retrieve accurately:
Inventory
List every source: web pages, PDFs, docs, help-desk articles. Note where each lives, who keeps it current and when it was last updated. You’ll often find FAQ documents and policies scattered across several places.
Clean
Remove duplicates and outdated information, fix typos and resolve contradictions. If two documents give different return policies, decide which is right before the bot has to.
Structure
One topic per section, short sections, clear headings — ideally phrased as questions.
Format
Prefer text over images, use plain language and lists, and break long documents into smaller topic-focused pieces.
How to structure content so the chatbot finds the right answer
The bot sees snippets, not whole documents. Write so that every snippet makes sense on its own:
Use question-based headings. “How do I update my billing details?” matches how people ask better than “Billing”.
Keep one topic per section. Pricing and returns in one long page make both harder to find.
Avoid cross-references. “See the section above” means nothing when only one section is retrieved — repeat the key fact instead.
Use the same terms everywhere. If one feature has three names, the bot will struggle to connect a question to the answer.
Write text, not pictures of text. Prices in an image or answers in a video can’t be searched; add a description or a transcript.
Keep the layout simple. Plain headings and lists work better than complex tables, columns and decorative formatting.
Pages, files, Q&A or text: which format to use
Web pages
Best for
Files
Best for
Q&A pairs
Best for
Text blocks
Best for
Business info
Best for
In Elfsight AI Chatbot these are the kinds of knowledge you can add: up to 200 web pages, files in PDF, TXT, JSON, DOCX, PPTX, HTML and MD up to 100 MB each, images with descriptions, Q&A pairs, text and business info. Storage depends on your plan — 10 million characters on Free.
Build an AI chatbot with a custom knowledge base
With a no-code builder you don’t need to set up RAG yourself. Using Elfsight AI Chatbot as an example:
Enter your website’s address
The agent reads your site and turns it into a knowledge base, with a name, role, tone and welcome message to start from. You can also set it up by hand.
Review the pages
Keep the pages that answer customer questions and remove the ones that would confuse it.
Add what the website doesn’t cover
Upload files, write Q&A pairs for answers that must be exact, and add text and business info.
Keep facts and behavior apart
Facts go into knowledge; the role, tone and rules for what to say or avoid go into the agent’s profile.
Fifteen well-prepared answers beat five hundred unreviewed pages. Launch with your core content and expand from what visitors ask.
Test the knowledge base before launch
Go through this list before visitors do:
Your 10–15 most common questions.
The same questions phrased three different ways.
Anything that changed recently: prices, policies, new products.
Follow-up questions in one conversation.
Questions it shouldn’t be able to answer — the bot should say it doesn’t know rather than invent something.
A wrong answer usually means missing content, two sources that disagree, or a section that doesn’t make sense on its own.
Keep your chatbot knowledge base up to date
A knowledge base left alone goes stale as your business changes. Update it right away when:
you launch a product or feature;
prices, policies or regulations change;
customers report a wrong answer;
visitors ask for a person more often on some topic;
hours change for holidays or seasons;
your website is redesigned or reorganized.
On top of that, a quick weekly look at unanswered questions and a monthly check of your core answers keep it accurate. Name one owner — on a small team usually the owner or the support lead — so updates actually happen. In Elfsight AI Chatbot, questions the agent couldn’t answer show up as knowledge gaps: answer one once, and the agent learns from your reply.
Common knowledge base mistakes
Uploading everything unreviewed. Hundreds of documents add noise and lower accuracy. Start with the core and grow.
Never updating it. One outdated price or policy costs more trust than a missing answer.
Long, unstructured pages. Dense paragraphs and missing headings lead to the wrong snippet being retrieved.
No way to reach a person. Give the bot a clear handoff for questions it can’t solve.
Skipping tests. Customers will find the errors you didn’t.
Not reading the chats. The questions visitors ask are the best guide to what to add next.
Once the content is ready, the rest — instructions, testing and improving from real conversations — is covered in how to train an AI chatbot.
On this page
The AI agent playbook
Choose your business
What visitors ask about most, whatever you sell. Your agent finds most of it on your site — add the rest yourself.
Any business knowledge checklist
Tick what your agent already knows; add the rest to its knowledge.
What you offer
Prices
Practical details
Policies
The first thing people see. Short, in your voice, with one clear next step.
Buttons under the greeting, so people start with one tap. Pick up to four and drag them into order — lead with the question that brings them in.
On your widget 4 / 4
- How much does it cost?
- How do I get started?
- Which option is right for me?
- Can I talk to a person?
More ideas
Rules for the moments that need care. Add them in a sentence each — here's how they play out.
Questions it can't answer
If the answer isn't in your knowledge, say so and offer to pass the question to the team. Never guess.Do you ship to Iceland?
I don't have that information yet. Leave your email and the team will get back to you.
Prices for custom work
Give prices from the knowledge only. For custom work, give the starting price and take the person's contacts for a quote.How much for a custom order?
Custom orders start at $200 and depend on the details. Leave your phone and we'll send you a quote.
Complaints
If someone is upset or something went wrong, apologise once and offer a person straight away — don't argue or explain.This is the second time my order is late!
I'm really sorry. Here's how to reach our team directly — they'll sort it out with you.
Advice outside your field
Never give medical, legal or financial advice. Suggest a professional and bring the conversation back to what you offer.Is this safe to take with my medication?
That's one for your doctor or pharmacist. I'm happy to tell you exactly what's in it.
Card details and passwords
Never ask for card numbers, passwords or ID documents in the chat. Send people to your checkout or account page.Can I give you my card number to pay?
Please don't share card details here — you can pay safely on our checkout page.
Other businesses
Never talk about competitors. Bring the conversation back to what you offer.Another company does this cheaper.
I can only speak for us — here's everything that's included in our price.
Switch these on so questions turn into customers.
- Contact formTakes names, emails and phones for quotes and callbacks — they land in your dashboard.
- Action buttonsCall, WhatsApp, email or any page of your site, one tap away.
- Human handoffOffers your contacts when the agent can't help or a topic needs a person.
- Follow-upWrites again if someone goes quiet mid-conversation.
- Calendly or Cal.comBooks calls and appointments.
- Google SheetsKeeps every lead in one list.
What owners most often miss before going live.
- Key facts only in picturesPrices or hours in an image aren't text the agent can read. Put them on a page or in the agent's knowledge.
- No way to reach a personAdd your phone, email or WhatsApp to the handoff, so urgent questions reach you, not a dead end.
- No prices at all“From $35” is better than nothing — people leave when they can't get a rough idea.
- Outdated knowledgeOld prices and policies go straight to customers. Update the knowledge whenever something changes.
- Never reading the chatsThe first weeks of chats show what people really ask. Read them and fill the gaps.