Guide

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):

  1. Your content is split into small chunks

    Each chunk is stored in a searchable index.

  2. A visitor asks a question

    The system finds the chunks closest in meaning — not just matching keywords.

  3. 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.

Priority
Content
Where to find it
First
Top 10–15 questions, products and services, prices, returns, refunds, shipping, account and billing basics, getting started
Support tickets, emails, chat logs, your website
Second
Troubleshooting steps, feature comparisons, contacts and hours, order tracking, setup instructions
Help docs, manuals, team notes
Third
Evergreen blog posts, a glossary, case studies, video transcripts
Blog, marketing materials, videos turned into text

First

Content

Top 10–15 questions, products and services, prices, returns, refunds, shipping, account and billing basics, getting started

Where to find it

Support tickets, emails, chat logs, your website

Second

Content

Troubleshooting steps, feature comparisons, contacts and hours, order tracking, setup instructions

Where to find it

Help docs, manuals, team notes

Third

Content

Evergreen blog posts, a glossary, case studies, video transcripts

Where to find it

Blog, marketing materials, videos turned into text

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:

  1. 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.

  2. 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.

  3. Structure

    One topic per section, short sections, clear headings — ideally phrased as questions.

  4. 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

Source
Best for
Web pages
Content already on your site: products, services, pricing, help pages. It stays in sync with what visitors see.
Files
Manuals, policies, price lists, specs and other documents that aren’t on the website.
Q&A pairs
Questions where the exact wording matters: refunds, guarantees, legal terms.
Text blocks
Details nobody wrote down: delivery rules, exceptions, things you usually explain by phone.
Business info
Hours, address and contacts — asked constantly, so keep them in one place.

Web pages

Best for

Content already on your site: products, services, pricing, help pages. It stays in sync with what visitors see.

Files

Best for

Manuals, policies, price lists, specs and other documents that aren’t on the website.

Q&A pairs

Best for

Questions where the exact wording matters: refunds, guarantees, legal terms.

Text blocks

Best for

Details nobody wrote down: delivery rules, exceptions, things you usually explain by phone.

Business info

Best for

Hours, address and contacts — asked constantly, so keep them in one place.

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:

  1. 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.

  2. Review the pages

    Keep the pages that answer customer questions and remove the ones that would confuse it.

  3. 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.

  4. 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.

Free playbook

The AI agent playbook

What works best for an AI agent on a website: what it should know, how to greet people, which questions to suggest, the rules worth adding and the skills to switch on. Start with the rules for any business, or pick your industry — every piece is ready to copy into your agent.

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

Frequently asked questions

Related

Knowledge

Train your agent on your website, files and FAQ.Knowledge

Automatic setup

Enter your website's address, and the agent sets itself up from it.Automatic setup

Agent profile

Give your agent a role, a tone of voice and rules to follow.Agent profile

How to train an AI chatbot

Training an AI chatbot for a website rarely means changing the model: you give it a knowledge base (your website, documents, FAQs), instructions on how to behave, and then improve it from real conversations.How to train an AI chatbot