Why an AI Agent Makes Up Answers, and How to Build One That Says "I Don't Know"

An AI agent makes up answers because a language model is built to produce an answer that sounds right, not to check whether it is right. This post explains why that happens, and what you build around the model so the agent answers only from real information, says so when it has no answer, and hands the customer to a person instead of guessing.

By

Why an AI Agent Makes Up Answers, and How to Build One That Says "I Don't Know"

An AI agent makes up answers because a language model is built to produce an answer that sounds right, not to check whether it is right. To get it to say "I don't know", you have to build that around it: let it answer only from information the system retrieved, give it explicit permission not to know, and define what happens next.

This is the moment everyone considering an AI agent is afraid of. A customer asks a question, and the agent answers with full confidence something that never existed. A delivery date nobody promised. A discount that isn't there. A return policy it wrote by itself, and nicely phrased too.

It isn't lying. It's filling in

A language model doesn't look answers up in a database. It generates the most plausible continuation of the text it was given. When it has the information, the plausible continuation is also the correct one. When the information is missing, it continues with the same confidence, because from its point of view nothing has changed. It has no red light that turns on when it doesn't know.

Don't believe it? Ask a general model for the opening hours of your branch. There is a good chance you will get hours. Polite, reasonable, and not necessarily yours.

So what do you do?

Three things, and none of them is "a better prompt".

Answer only from what was retrieved. The agent doesn't answer from the model's memory. Before every answer the system retrieves the relevant information: the open orders, this customer's prices, the previous calls. The system supplies the facts, and the model phrases them. In a service center I'm building for a manufacturer, the voice agent knows the customer's open orders and previous calls for exactly this reason.

Give it permission not to know. It sounds odd, but you have to say it explicitly: if the answer is not in the information you were given, say you don't have it. Without that instruction it will try to help, and that is exactly the problem.

Define what happens after "I don't know". "I don't know" on its own is a bad agent. "I don't have that information, I'm passing your question to a representative and they will get back to you by tomorrow" is service. The handoff to a person is part of the product, not a failure.

How to tell it works

Test it with questions that have no answer. Most tests ask the agent things it is supposed to know. The interesting test is the opposite: questions about a product that doesn't exist, a customer with no orders, a policy nobody wrote. A good agent fails them gracefully. A bad agent answers all of them.

And keep testing after launch. Real conversations bring questions nobody thought of.

Does this solve the problem?

Not completely. Anyone who promises you zero made-up answers is selling you something. What you do get is a risk you can manage, and a customer who reaches a person the moment the agent doesn't know, instead of getting an invented answer.

That's about it. A good AI agent is measured less by what it knows, and more by what it does when it doesn't know.

Does your agent need to know things only you know?

If you're considering an AI agent and aren't sure where it will get its answers, write me a few lines about what your customers ask and where the information lives today. I'll come back with a direction. The contact form is right below.

Questions About This Topic

Because it doesn't look answers up in a database. It generates the most plausible continuation of the text it was given. When it has the information, the plausible continuation is also the correct one. When the information is missing, it continues with the same confidence, because it has no built-in mechanism that detects that it doesn't know.

No. You can reduce them a lot by having the agent answer only from information retrieved from your own systems, and by making sure that when it has no answer it says so and hands off to a person. The goal is a risk you can manage, not zero errors.

RAG is a method where the system retrieves the relevant information from your organization's sources before every answer, and passes it to the model together with the question. The model then phrases an answer based on facts it was given, not on what sounds plausible to it.

Say so plainly, hand the request to a person together with the context of the conversation, and log the question. Questions that keep coming back unanswered show which information the system is missing.

Contact

A Quick Message is Enough to Get Started

Share a short overview of what you're looking to achieve and any relevant context. You'll get a reply by email or phone with next steps and whether it looks like a good fit.