How to structure a knowledge base for an AI chatbot
An AI agent reads your articles in pieces and quotes them. Here is how to structure a knowledge base for an AI chatbot, from titles and dates to ownership and review.
Read articleA hands-on walkthrough for building an AI chatbot: choose one job, load knowledge, write instructions, add one action, test with real questions and publish on one channel.
By the Askocto team · · 5 min read
To build an AI chatbot, you give it one job, load the knowledge it needs, write instructions for how to behave, connect one action, test it on real questions and then put it on a channel. You can do all of this without code on a platform that supports it, and in about a day for a first version. This walkthrough uses a hypothetical online bookshop as the example, so you can see each step on a concrete case.
Our hypothetical shop sells books online, ships within a country and has a help page with about twenty articles. Customers ask about delivery times, returns, gift wrapping and where their order is. The owner wants a chatbot on the website that handles these four topics and passes everything else to her.
Notice what she did first: she picked four topics, not "everything about the shop". That choice makes every later step easier.
Write: "This chatbot helps [who] with [what], and hands over [when]."
For the bookshop: "This chatbot helps website visitors with delivery, returns, gift wrapping and order status, and hands over anything about wholesale, complaints or payments."
Keep this sentence. Paste it at the top of your instructions in step 3, and use it to decide what belongs in the knowledge in step 2.
A chatbot answers from what you give it. Collect the sources that cover your chosen topics:
Check the content for contradictions before you load it. If the returns page says 14 days and the footer says 30, the bot will pick one. In Askocto this is Build > Sources, where each source shows a status of Queued, Training, Ready or Failed. Wait for Ready on all of them.
For the content side in detail, see how to train an AI agent on your help center.
Instructions tell the chatbot how to behave. Keep them short and concrete. A good first version has five parts:
You are the website assistant for a small online bookshop.
Help with delivery, returns, gift wrapping and order status.
Be friendly, plain and brief. Answer from the sources only.
If the answer is not in the sources, say so and offer to
pass the question to a person. Say you are an AI assistant
in your first message.
For repeatable processes, such as returns, write a procedure with numbered steps. The article on writing procedures for an AI support agent shows how.
A chatbot that only answers is useful. One that can look up an order is more so. Pick one action:
The bookshop starts with order lookup and hand over. Keep actions read-only at first. Add anything that changes data after you have reviewed a few weeks of conversations.
Write 30 questions the way customers ask them, including typos and vague ones. Example set for the bookshop:
| Question | What good looks like |
|---|---|
| "how long does delivery take" | Quotes the delivery window from the policy |
| "can I send it back if I don't like it" | States the return period and the steps |
| "where is my order" | Asks for order number and email, then looks it up |
| "do you sell used books" | Says it is not in the sources and offers a person |
| "I want to speak to someone" | Hands over right away |
Run all of them and grade each answer. For every wrong one, find the cause: missing content, a contradiction or an unclear instruction. Fix it and rerun. The playground in Askocto shows which sources and procedure an answer used, which makes the causes easier to find. More detail is in how to test an AI support agent before launch.
Start with the website. Most platforms give you a one-line script to paste into your site. Test it on your own site in a private window, on a phone too. If you want a no-code path in your own site builder, how to create your own chatbot without coding covers the common options.
Launch to a slice first: one page, or a few hours a day. Read every conversation for the first few days.
A first version is rarely perfect, and it does not need to be. It needs to be honest about what it does not know and quick to hand over. Over a month of weekly reviews it will cover more topics and handle them better. When you want a platform to try this on, create a free Askocto workspace and follow the same six steps with your own content.
Yes. Many platforms let you load content, write instructions in plain language and paste one script into your site. Code helps for custom actions but is not needed for a first version.
A basic version can run in a day if your content is ready. Reaching a dependable level takes several weeks of testing and review.
Content that answers your customers' questions: help pages, policies and Q&A pairs. Clean, current and consistent content matters more than a large volume of it.
Answer only from your sources, tell it to say when it does not know, test with real questions and review live conversations weekly.
Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.
An AI agent reads your articles in pieces and quotes them. Here is how to structure a knowledge base for an AI chatbot, from titles and dates to ownership and review.
Read articleTraining an AI support agent is mostly content work. Here is which articles to connect first, how to clean them, how to check the agent uses them, and when to stop.
Read articleWrong answers have a handful of causes. Sort yours into missing, conflicting, outdated, misread or out-of-scope, then fix the content or rule behind each one.
Read article