menu
A customer asks your chatbot about a fee that changes every year. The answer is polite, well written and quotes an exact amount. It is last year’s amount.
Nothing was wrong with the AI model. It summarised the documents it was given, faithfully. The problem happened earlier: the old and the current versions of the document were both loaded, and nothing told the chatbot which one to use. During testing, the model happened to pick the most recent one, so nobody noticed.
Our teams have tested several AI chatbots for Swiss organisations, and this is a pattern we see again and again.
When an answer is wrong, the cause usually sits before the AI writes a single word: in how documents are loaded, split and retrieved. And the company stays responsible for every answer.
Air Canada learned this in 2024, when a tribunal made it honour a refund policy its chatbot had invented.
An AI chatbot will never be deterministic.
But it can be made more predictable, if you test the whole chain and not only the final answer.
correct, but from the wrong place
The most dangerous answer is not the absurd one. It is the one that is fluent, confident and plausible, so it survives a quick review. In our tests these took several forms:
The right fact from the wrong domain.
The information is true, but it belongs to another product, service or rule.
The right fact from the wrong year.
Archived and current pages sit side by side, and the chatbot cannot tell them apart, or it retrieves only last year’s version. Some outdated policies must be kept for the record, and the chatbot faithfully repeats them instead of the current one.
The gap filled from general knowledge.
When the documents don’t cover a question, the model completes the answer with what it “knows” from elsewhere, in your company’s voice.
A condition left out.
When an answer depends on several conditions, the chatbot may drop some of them. A discount for ages 12 to 25 becomes “up to age 25”; a university student becomes simply “a student”.
None of these looks like an error. That is exactly why they need to be tested for deliberately. By contrast, an honest “I don’t know” is a perfectly good answer, and your test cases should include questions where it is the right response.
Other failures appear as soon as testing goes beyond the happy path. The small, low-cost models behind many chatbots reason poorly: one concluded that a baby born in 2025 would be four years old in 2026. Chatbots also recommend products their company doesn’t sell, including competitors’, slip into role-play, write Python code on request, or reveal information they shouldn’t.
where failures really start
Most business chatbots don’t answer from the AI’s own knowledge. They first search your documents for relevant passages, then ask the AI to write an answer from them. In its simplest form, the process has five steps. Each one can fail, and usually only the last one involves the AI writing anything:
loading the documents
PDFs and slides are converted to text badly, tables fall apart, and nobody checks the result. We have seen an empty text fragment returned as the “best” source for an answer.
splitting them into passages
Documents are cut in the middle of sentences, and the passage loses its date, its title and its context.
finding the right passages
The search returns something similar instead of something relevant. Simple similarity search is often not enough; combining several search methods gives far better results.
deciding whether to search at all
A simple “How are you?” sent into the document search produces a strange answer. Small talk and out-of-scope questions need their own route.
writing the answer
In this simple setup, only here does the model’s quality matter, and only here do most teams focus their testing, often with a single question: “does it look good?”
This is the simplest setup. More advanced ones add steps, sometimes with several models, and each of them needs testing too.
One lesson stands out: teams skip the basics of software engineering “because it’s AI”. They don’t look closely at their data, and they test with a few simple cases. Loading and splitting documents is ordinary code. It can and should have ordinary unit tests.
why your usual test plan stops working
Classic software gives the same output for the same input. An AI chatbot does not: ask it “Can I cancel my contract online?” ten times, and you may get nine correct answers, each worded slightly differently, and a tenth that invents a cancellation fee or leaves out one that exists. Customers also ask the same thing in a hundred ways, with typos, in another language, or by pasting their personal details into the chat.
How random the answers are is partly linked to a setting called temperature. In one project, the setting was raised to the value the provider recommends for creative writing, to make answers sound more natural, and quality dropped to its worst level. When it was lowered again, results improved. For a chatbot that must give reliable information, more “creativity” means more risk.
So the test can no longer be “is the answer exactly X?”. It becomes two questions: does every answer respect the rules that must always hold, and how often? “It worked” is not a result. “It passed 48 times out of 50” is.
three false comforts
Most chatbots that fail in public were tested. They were tested in ways that create confidence without creating evidence.
"We tried it and it worked"
A few dozen conversations by the project team prove the happy path. They say nothing about the failure that appears once in fifty conversations, with unusual phrasing.
"Our generated test questions pass"
Test questions generated from your documents reuse the documents' own wording, so the chatbot finds the answer easily. Real users don't talk like your documentation. In our experience, their questions fail far more often.
"Users rarely complain"
Only a tiny fraction of users ever click thumbs-down. Most simply call your hotline, and after two bad answers they stop using the chatbot. Silence is not quality.
how we test: from the documents to the screen
We test an AI chatbot in eight campaigns, each answering one question. The first four run in sequence, because there is no point judging answers built on broken retrieval. The others run in parallel. Put simply: C0 and C1 test your data, C2 and C3 the answers, C4 to C7 the risks and the experience.
A few principles make the difference:
- Use synthetic questions for breadth. Generated questions are a cheap way to cover a wide range of questions and variants.
- Validate on real users' words, and keep the two separate. Real questions, then variations: spelling mistakes, rephrasings, other languages. In a recent project, several hundred official test cases grew to several thousand variations. Passing generated questions does not prove the chatbot works for real users, and the real questions used to validate it should never be used to build it.
- Repeat and automate. A campaign of a few hundred questions can run unattended in a few hours, so it can be repeated after every change.
- Let AI evaluate at scale, and humans decide. An AI model evaluates every answer; domain experts confirm each finding before it becomes a defect.
- Report classes of defects, not lists. Experts group findings into patterns, so the team fixes one cause instead of a hundred tickets for specific questions.
the evidence to demand before go-live
An AI chatbot works with probabilities, so nobody can promise zero errors. That makes it essential to decide in advance what “good enough” means. Before signing off a launch, ask for three things:
- Thresholds agreed before testing started. For example: zero invented amounts, every complaint handed to a human, a target rate of correct answers on the top customer questions. Set the bar first, so it is not quietly lowered once the results come in.
- Evidence by campaign. Dated results, from document loading to the final answer, not only a demo.
- Known and documented weak spots, each with a decision. Fix it, add guardrails on the input and the output, take the topic away from the AI, or consciously accept the risk.
go-live is when testing becomes routine
A chatbot that passed its tests in October can fail in November without anyone touching it: the AI provider updates its model, a page is republished, a setting is changed, or the provider changes the infrastructure the model runs on. And fixes break things. In our projects, a change meant to repair one problem regularly brought back another.
Treat answer quality like system availability. Re-run your core campaigns after every change and at least weekly, read a sample of real conversations, and turn every new failure into a test case so it cannot return unnoticed.
not just chatbots
Everything above applies to any application with AI inside whose output can vary: document summaries, email and claims triage, smart search, report drafting, translation. Replace “conversation” with “output” and the method is the same: test the data feeding the AI, define the rules that must always hold, repeat, measure the rate, and keep testing after launch.
Two rules worth knowing. In Switzerland, the Federal Data Protection and Information Commissioner has confirmed that the Data Protection Act applies directly to AI. That matters because users will type personal data into your chatbot, whatever you ask them. In the EU, the AI Act's transparency rules have applied since 2 August 2026: people must be told when they are talking to an AI. If your chatbot serves people in the EU, test that this notice appears reliably in every language and channel.
test the system, not just the answer or the model
AI chatbot quality is not a property of the language model. It is a property of the whole system, from the source information to the answer delivered to the customer. And that quality must be measurable before and after go-live.