AI & Automation7 min read

How to build an AI support chatbot that does not make things up

The three-step pipeline SoftBuildLab uses in REZVA: canned replies, human-approved answers, then a model call grounded in a fixed facts block and a "not available" list.

G George MihaylovPublished Updated
Support specialist at a laptop answering customer questions in a bright office
Photo by Mikhail Nilov on Pexels

An AI support chatbot stops making things up when the model is never the first or the only source of an answer. Route greetings to canned replies, reuse answers a human has approved, and only then call a model with a fixed facts block, a list of what the product does not offer, and a handful of retrieved help articles.

Why support chatbots make things up

A language model fills gaps. Ask it whether a product sends WhatsApp reminders and, if the prompt says nothing about it, the model will often answer yes because many similar products do. The answer sounds right and is wrong. That is the whole failure: the model is trained to continue a plausible text, not to check a fact.

The cost is real. A Canadian tribunal ordered Air Canada to pay $812.02 after its website chatbot gave a passenger inaccurate information about bereavement fares, and rejected the argument that the chatbot was a separate entity (AI Incident Database, incident 639, as of November 2026). A support bot speaks for the company.

The three-step pipeline REZVA uses

Our booking platform REZVA answers support questions with a three-step pipeline. Each step is cheaper and safer than the next, and a message only reaches the model if the first two steps cannot handle it.

StepHandlesSource of the answerModel call
1. Canned repliesGreetings, thanks, goodbyesFixed text per languageNo
2. Approved answersQuestions already answered wellStored answers rated thumbs-up or approved by an adminNo
3. Grounded model callEverything elseFacts block, retrieved articles, recent turnsYes

Step 1: Canned replies for greetings and thanks

"Hi", "thanks", "bye" and their variants match a short pattern list per language and get a fixed reply. No model is called, so there is no cost and no chance of error. Many support sessions start and end with exactly this kind of message.

Step 2: Reuse answers a human has approved

Every model answer is stored together with its question. When a user gives it a thumbs-up, or an admin approves it in the back office, it becomes a reusable answer. A new question that closely matches an approved one gets the stored text. The answer was checked by a person once and then serves many times. Admins can edit or retire it, so a policy change is a single edit rather than a prompt rewrite.

Step 3: A model call with a fixed facts block

Only now do we call the model. The prompt has four parts, always in the same order: a fixed facts block with plans, prices, limits such as the free plan's 50 bookings and 100 clients a month, and a "not available" list (see REZVA's published facts); three to five help articles chosen by retrieval; the last six turns of the conversation; and the user's message. The instruction is short: answer only from the facts and the articles, otherwise say "I don't have that information" and give the support email. We detect the language of the question and, if the reply comes back in a different language, retry once with an explicit language instruction.

Why a "not available" list prevents invented features

A list of what the product does not do is the most effective line in the prompt. A model that sees "WhatsApp and Viber reminders: not available" answers "no" with confidence. Without that line it has to infer from silence, and silence is where invention happens. Positive facts tell the model what exists; the negative list tells it where to stop.

Two things make the list work. First, it names the features people actually ask for, taken from the gap log described below, not features nobody wants. Second, every entry is a pair: the missing feature and the nearest thing that does exist, for example "no Apple Calendar reading, but two-way Google Calendar sync on the Pro and Team plans". The model then gives a useful "no" instead of a dead end.

Retrieval and caching at small scale

Term-overlap retrieval with synonym groups

At a few hundred help articles you do not need embeddings or a vector database. We split the question into terms, expand them through synonym groups ("cancel, refund, money back"; "SMS, text, message"), and score each article by the overlap between the expanded terms and the article's title and body. The top three to five go into the prompt. It runs in milliseconds, is fully inspectable, and when retrieval picks the wrong article you can see which word caused it and add a synonym. Move to embeddings when the article count or the number of languages makes synonym maintenance the bottleneck, not before.

Prompt caching of the fixed block

The facts block and the instructions are identical on every request, so the API should cache them. Anthropic's prompt caching reuses a prompt prefix across requests: the cache covers tools, system and messages in that order, up to the block you mark, and a hit requires the cached segment to be identical. The default cache lifetime is 5 minutes, refreshed each time it is used; a cache write costs 1.25 times the base input price and a cache read 0.1 times (Anthropic prompt caching documentation, as of November 2026). The design rule follows: put the fixed block first, the retrieved articles and the conversation after it, and never let a timestamp or request ID into the cached part. Check cache_read_input_tokens in the response; if it stays at zero, something in your "fixed" block is changing.

Launch checklist

  1. Write the canned replies for each language and test them with misspellings.
  2. Build the facts block: plans, prices, limits, and a "not available" list drawn from real questions.
  3. Pair every "not available" entry with the nearest existing alternative.
  4. Store every answer with its question and add thumbs-up and admin approval.
  5. Check approved answers before calling the model.
  6. Retrieve three to five articles by term overlap with synonym groups.
  7. Include only the last six turns of the conversation.
  8. Detect the language and retry once if the reply is in the wrong one.
  9. Instruct the model to say "I don't have that information" and to give the support channel.
  10. Log every unanswered question in a gap log and review it weekly.
  11. Keep an evaluation set of real questions with expected answers and run it after every prompt change.
  12. Throttle requests per IP address and cap the length of a message.

How SoftBuildLab builds this for clients

We build support chatbots with this pipeline as the starting point and adapt the facts block, the synonym groups and the approval flow to the client's product. The chatbot itself is part of our AI chatbot development service; the help articles and approved answers live in a knowledge base the client's team can edit without a developer; and the model call, caching and throttling are part of our AI integrations with Anthropic Claude, OpenAI or Google Gemini. Every project is quoted separately. Describe your product and support volume in the quote wizard and you will receive a free technical proposal within 3 to 5 business days.

Frequently asked questions

Do I need a vector database for a support chatbot?

Not at small scale. With a few hundred help articles, term-overlap retrieval with synonym groups finds the right articles, runs in milliseconds and is easy to debug. Embeddings and a vector database earn their place when the article count grows into the thousands, or when questions arrive in many languages and synonym lists become hard to maintain.

How does a "not available" list stop a chatbot inventing features?

A model infers from silence. If the prompt says nothing about a feature, the model guesses from similar products and often says yes. An explicit list of missing features gives it a fact to quote instead of a gap to fill. Pair each entry with the nearest alternative that exists, so the answer is a useful "no" rather than a dead end.

How do I know a prompt change did not make the chatbot worse?

Keep an evaluation set: real questions from your logs, each with the expected answer or the expected "I don't have that information". Run the whole set after every change to the prompt, the facts block or the retrieval rules, and compare the results before deploying. Add every corrected gap-log entry to the set so it grows with your product.

G

George Mihaylov

Technical Lead

Leads the engineering work at SoftBuildLab: architecture, delivery and the technical proposals clients receive.

Project brief template (PDF)

Nine questions that make a quote accurate: goals, users, must-have features, integrations, data, budget band, timeline. Fill it in and send it with your request.

Working on something similar?

Describe it in six short steps and get a free technical proposal within 3 to 5 business days.

Get a Free Quote