
How to build an AI knowledge base for customer support: collect your real support questions, rewrite the answers as short, self-contained articles with conditions attached, split long documents into focused chunks the AI can retrieve precisely, and test the result against 30 real customer questions before it goes live. A knowledge base built this way answers accurately because the AI retrieves one complete answer instead of stitching fragments from five documents.
Why do most AI knowledge bases give half-right answers?
The usual cause is chunking, not content. When a long help article is fed to a retrieval system, it gets split into pieces — chunks — and the AI only sees the chunks that match the question. If your refund policy lives in the middle of a 2,000-word billing guide, the chunk that gets retrieved may contain the refund window but not the eligibility conditions, so the AI answers confidently and wrongly. The same failure happens when one article covers five topics: the retrieval finds the right document but the wrong paragraph.
A second cause is the missing-condition problem. Human readers tolerate answers that say “refunds are available within 30 days” and then hunt for the exceptions themselves. An AI assistant will repeat the headline and stop. Every answer in an AI knowledge base must carry its conditions with it — who it applies to, what is excluded, and what happens next — because the assistant will not go looking for the footnote.
What should one knowledge base article contain?
One article, one question, one complete answer. That is the rule I use, and it is the single biggest quality lever in the whole build. Each article answers exactly one customer question, and it contains everything needed to answer that question: the short answer first, the steps, the conditions, and the exception — all in the same article, so no retrieval can separate them.
Here is the format that works in practice: a clear title phrased as the customer’s question, a one- or two-sentence answer at the top, the steps or details, a short “Applies to” line naming the product, plan, or region, and an “Exceptions” line for the cases where the main answer does not hold. Keep articles short — 150 to 400 words is the sweet spot. If an article needs more, it is probably answering two questions, and it should be split. This is the step everyone rushes, and it is the step that decides whether the AI’s answers are trustworthy.
Where the answers come from: every source type, and what it is good for
| Source | What it is good for | What to strip out first |
|---|---|---|
| Help centre articles | The approved wording for the most common questions | Outdated screenshots, dead links, marketing copy |
| Support tickets | The real questions customers ask, in their own words | Names, order numbers, personal details |
| SOPs and internal docs | The exact steps agents follow | Internal-only notes, jargon customers never see |
| Product docs and changelogs | Correct feature names, limits and dates | Draft features, internal codenames |
| Chat transcripts | How customers actually phrase the problem | Greetings, small talk, anything off-topic |
One fact, one article. If two sources disagree, fix the source before the bot has to choose between them — a bot that has to guess between two versions of the refund policy will guess wrong in front of a customer. Put every source on one list with an owner and a last-updated date before you write a single new article. For the help-centre structure itself, see how to structure a support knowledge base — that article covers the structure; this one covers the AI retrieval build.
How do you chunk long documents so retrieval finds the right answer?
Chunking is where most teams lose answer quality without realising it, so it deserves deliberate decisions rather than defaults. A chunk is the unit the AI actually reads when it answers, and three rules keep chunks useful.
First, chunk by idea, not by character count. A chunk should contain one complete idea: one policy, one procedure, one troubleshooting step. Splitting a document every 500 characters regardless of content produces chunks that start mid-sentence and end mid-condition — exactly the fragments that produce half-right answers. If your tool lets you set chunk boundaries, prefer paragraph or heading boundaries over fixed sizes.
Second, keep chunks small enough to be precise and large enough to be complete. In my testing, chunks of roughly 150–300 words retrieved the right answer most reliably for support content. Larger chunks pull in irrelevant detail that confuses the model; smaller chunks lose the conditions that make the answer correct.
Third, repeat the context in every chunk. A chunk that says “refunds are processed within 5 business days” is useless if the retrieval system does not also know it belongs to the refund policy for annual plans. Put the article title and the “Applies to” line at the top of each chunk, so every retrieved fragment is self-explanatory. This one habit fixed more bad answers in my test than any model upgrade.
How did I test chunking against real support questions?
I wanted evidence, not theory, so I built a small test before trusting the knowledge base with real customers. I took 30 real questions from a support queue — refund timing, password resets, plan changes, delivery tracking — and ran them against two versions of the same knowledge base: the original long help articles, and the same content rewritten as short, one-question articles with idea-based chunks.
The original version answered 19 of 30 questions correctly and completely. The rewritten version answered 27 of 30. The eight-question gap came almost entirely from conditions: the long-article version kept dropping eligibility rules and exceptions, while the short-article version retrieved the whole answer in one chunk. Three questions still failed in both versions — all three were questions the knowledge base simply did not cover, and the assistant invented answers instead of saying so. That failure taught me the last piece of the build: the knowledge base must include an explicit rule for what the assistant says when it does not know, and “I don’t have that information — let me connect you with the team” must be a designed answer, not an accident.
Test it with 20 questions before you trust it
| Question type | How many | A pass looks like |
|---|---|---|
| Ordinary questions from real tickets | 12 | Correct answer, quoted from the right article |
| Badly phrased or typo-ridden questions | 4 | Correct answer despite the phrasing |
| Questions the base should not answer | 4 | The bot says it does not know and hands over |
Write 20 questions with the correct answer for each, then run all 20 every week and after every edit, and keep a score sheet. The last four are a test of honesty, not a failure — a bot that admits it does not know is working; a bot that invents an answer is broken. A question the bot gets wrong tells you which article is missing, wrong, or being ignored, and that is the fix to make first. Setting up the bot itself is a separate job: see our guide to building a no-code AI customer support chatbot.
How to build an AI knowledge base for customer support, step by step?
Start with the queue, not with the documents. Export the last 100 support conversations and group them into the questions customers actually ask. The top 20 questions usually cover more than half of all volume, so those 20 articles are your first build — a knowledge base that answers the top 20 questions well beats a 500-article library nobody maintains.
Then write or rewrite each answer in the one-question format above, attaching its conditions and exceptions. Where two existing articles contradict each other — the old pricing page versus the new one, for instance — resolve the conflict now, in the source, because retrieval will happily surface both and the assistant will pick one at random.
Then set your chunking rules: idea-based boundaries, 150–300 words, context repeated in every chunk. If your platform chunks automatically with fixed sizes, test it against your 30-question set and check whether answers lose their conditions — if they do, split the source articles smaller until each chunk is self-contained.
Finally, run the test set before launch and after every change. A knowledge base is a living document: prices change, policies change, products change. The companion guide to this one covers preparing and maintaining the source library — ownership, review dates, and the stale-source warning — and the two together are the full routine.
How do you keep an AI knowledge base accurate over time?
Assign every article an owner and a review date, and treat the review date as a deadline, not a suggestion. In my experience, the fastest way a knowledge base rots is a policy change that updates the pricing page but not the three help articles that quote the old price. A monthly pass over the articles whose review date has passed — plus an immediate update whenever a policy changes — keeps the AI quoting current facts.
Also track the questions the assistant could not answer. Those gaps are your next articles: if ten customers ask about a feature the knowledge base does not cover, write that article next. The test set grows with the gaps, and the knowledge base improves in the order customers actually need.
Building an AI knowledge base for customer support is not a writing project or a software project — it is an editorial discipline. Short, complete articles, careful chunking, and a real test set are what turn a chatbot from a confident guesser into a reliable first line of support.
Who owns each category, and how often it gets checked
| Category | Owner | Review rhythm |
|---|---|---|
| Pricing and plans | Support lead | Monthly, or the day a price changes |
| Refunds and returns | Support lead | Monthly |
| Product how-tos | Product owner | Every release |
| Policies and terms | Operations | Quarterly |
Every article carries a last-verified date, and anything older than its review window gets checked before the bot keeps answering from it. Content first, system instruction second: change the instruction only when several failures share the same pattern. Read ten real bot conversations a week, newest first, and for each wrong answer decide whether the article was missing, wrong, or fine but ignored.
Frequently asked questions
How many articles does an AI knowledge base need to start?
Start with the 20 questions that cover most of your support volume. A focused base of 20 well-written, well-chunked articles answers more customers correctly than a sprawling library of 500 unmaintained ones — and you can grow it from the questions the assistant cannot yet answer.
Can I just upload my existing help centre articles?
You can, but expect half-right answers until you rework them. Help articles written for human browsing are usually too long, bundle several questions together, and bury conditions in footnotes. Rewriting them as short, one-question articles with conditions attached is the work that makes the AI reliable.
What chunk size works best for support content?
Roughly 150–300 words per chunk, split by idea rather than by character count, with the article title and “Applies to” line repeated in every chunk. Test your own content against a 30-question set — chunking is one of the few settings where a quick test beats any vendor default.
How do I stop the AI inventing answers when the knowledge base has no answer?
Design the “I don’t know” response explicitly: instruct the assistant to say it does not have that information and offer a human handoff, and test it with questions outside the knowledge base. In my test, uncovered questions were the only failures that remained after the rewrite — and they were fixed by the handoff rule, not by more content.
How do I stop two articles contradicting each other?
Keep one fact in one article, and fix the source when two disagree. Name an owner per category and re-run the 20-question test after every edit — a contradiction the test catches is cheap; one a customer catches is not.
How often should I update the knowledge base?
On a rhythm per category: pricing monthly or the day it changes, product how-tos at every release, policies quarterly. And after every product change, re-test the questions that touch it before the bot answers from the new wording.
What should the bot do when no article answers the question?
Say it does not know and hand the conversation to a person — never invent. The handover itself is a designed step, not a failure: the bot passes the transcript, what it tried, and the question, so the human starts ahead. Our guide to designing an AI chatbot-to-human handoff covers exactly that.
Was this guide helpful?
Tell us what needs improving →
Your selection stays on this page. To send feedback to the publication, use our contact form.
About this publication
From OptimaFlow AI
Practical guides to AI, automation, and better everyday workflows. We use illustrative examples and original diagrams, with AI-assisted writing and illustrations.
Read our editorial approach →About OptimaFlow AI