Skip to content

Why did the bot give the wrong opening hours?

Blog: AI and automation

How to write a knowledge base an AI agent can answer from

An AI agent can only be as accurate as the information it answers from. Write short, single-topic answers in plain words, keep one current source for each fact, say clearly what it must not answer, and decide when it hands over to a person. Here is how to write and maintain that source.

Jusoor team10 September 20264 min read

The guide

Clear sources, honest gaps.

Why the source matters more than the tool

When an AI agent gets an answer wrong, the cause is often the material it was given rather than the agent itself. Two documents with different opening hours, a price list from last year, a policy written in legal language: the agent repeats the confusion, and in a confident tone.

Writing a knowledge base is mostly ordinary writing work: deciding what is true, saying it clearly and keeping it up to date. The same work helps new staff, your website and your saved replies too.

Start with the questions customers ask

Build the knowledge base from real questions, not from your company handbook. Look through recent chats and emails and list what customers ask most often, in their own words.

  • Practical facts: hours, areas served, delivery, payment methods and how to book.
  • Policies: returns, cancellations, warranties and what happens when something goes wrong.
  • Products or services: what each includes, who it suits and what it does not do.
  • Process questions: how long something takes, and what the customer must bring or send.

Keep a note of the exact words customers use. If they say "send it back" and your policy says "return authorisation", the knowledge base should use their words, or both.

Write one clear answer per topic

  • One topic per entry, with a plain title such as "Delivery times" or "Cancelling a booking".
  • The answer in the first sentence, then the conditions.
  • Exact facts: times, days and steps. Avoid "usually" and "soon" unless that is the truth, and then say what it depends on.
  • Conditions written as simple rules: "If the item is unused and you have the receipt, you can return it within [n] days."
  • Abbreviations and internal names spelled out.
  • If you serve customers in more than one language, a checked version of each entry in each language, with the same facts.
Delivery times: orders placed before [time] on a working day are delivered the next working day within [area]. Outside [area], delivery takes [n] working days. We do not deliver on [days].

Keep one source of truth

The most common problem is not missing information but conflicting information. The same fact appears in three places, one gets updated, and the agent finds one of the other two.

  • Each fact lives in one entry. Other entries point to it rather than repeat it.
  • Remove old versions instead of keeping them just in case.
  • Give every entry an owner and a last-checked date.
  • When a price, policy or opening time changes, update the knowledge base the same day, at the same time as the website.

Mark the gaps and the limits

An AI agent needs to know what it should not answer as much as what it should. Without that, it may fill a gap with a plausible guess.

  • List the topics that always go to a person: refunds, complaints, medical, legal or money decisions, and anything that needs an exception.
  • Write what the agent should say when it does not know: a short, honest line and a handover, not a guess.
  • Note questions that need data the agent cannot see, such as the status of a specific order, and say how those are handled.
  • Keep a list of questions the knowledge base could not answer. That list is your next writing task.
I don't have that information, so I'm passing you to a colleague who can help. They'll see this conversation, so you won't need to repeat anything.

Decide when to hand over, and test it

Handover rules belong in this work, not as an afterthought. Write them down: the customer asks for a person, is upset, repeats a question, or asks about a topic on the always-a-person list. When the agent hands over, the person should receive the conversation and the details collected so far.

Before going live, test with real questions, including awkward ones: misspellings, two questions in one message, a question in another language and a request the agent must refuse. Read the answers as a customer would. Fix the source, not just the single reply, and test again. After launch, review a sample of conversations every week at first, then on a regular schedule.

A note on Jusoor: its AI agent does not read a knowledge base, your website or your files today. It answers within the setup your team gives it, so the same habits apply: clear answers, one source for each fact and a list of topics that go to a person. Fixed answers and lookups of orders, stock or bookings sit in scripted bots that work through Jusoor's API, and when a chat needs a person, it goes to the right desk with the conversation and the details already collected.

Questions

Knowledge bases for AI: common questions.

Does an AI agent need a long knowledge base?

No. Clear and current matters more than long. Start with the questions customers ask most, write one good answer for each, and add entries as real gaps appear.

How often should we update it?

Whenever a fact changes, on the same day, and in a regular review on top of that. Give each entry an owner and a last-checked date so nothing is forgotten.

What should the agent do when the answer is not there?

Say plainly that it does not have the information and hand the chat to a person with the conversation so far. A guess that sounds right does more harm than an honest handover.

Let AI take the routine, and your team the rest.

Tell us the questions your customers ask most. We'll show what the AI agent and scripted bots can answer, and where the chat goes to your team.