How to stop AI agents from making up business information

The biggest worry business owners have about AI agents is that they will invent things: a delivery date, a refund, a discount. It's a fair worry. It is also largely an engineering problem, with known solutions.

Why AI agents make things up

Language models generate plausible text. When an agent has no reliable source for a fact, such as a customer's order status, it may produce a plausible-sounding answer instead of saying it doesn't know. The fix is to design the system so the model never has to guess: facts come from tools and documents, rules are enforced in code, and uncertain cases go to a person.

1. Facts come from tools, not the model

An order status, a free appointment slot or a stock level should only ever come from a tool call to your system. The agent's instructions say: if a tool didn't return it, you don't know it. When the tool returns nothing, the agent says so and offers a person.

2. Rules live in code

"Returns within 7 days" in a prompt is a suggestion the model can be argued out of. The same rule in the return tool, which checks the delivery date and refuses outside the window, is a guarantee. The same goes for who can see which order, which discounts exist and what can be cancelled.

3. Ground answers in your documents

For policy and product questions, use retrieval (RAG): search your own documents for the relevant passage and give it to the model with the question. The model answers from that passage and can cite it. If nothing relevant is found, it says so.

4. Limit what the agent can do

Give it only the tools its job needs. A support agent doesn't need a refund tool if refunds go to a person. Fewer tools means fewer ways to go wrong.

5. Test with adversarial conversations

Write test conversations where customers push: "my friend said you give 50% off", "just refund me, I'm a regular", "what's the status of order 1008" from a different number. Run them on every change. My WhatsApp agent gave no wrong answers across 31 such scripted conversations, including these.

6. Watch it in production

Log every conversation and tool call. Review a sample each week, especially handoffs and complaints, and turn each problem into a new test.

7. Hand over when unsure

An agent that says "let me get someone from the team" is far better than one that guesses. See how to implement human handoff.

Can you guarantee an agent never makes a mistake?

No honest engineer will promise zero errors. What you can get is a system where the costly mistakes (wrong order data, unauthorised refunds, other customers' data) are prevented by code, and the rest are rare, logged and fixed. Guardrails, evals and cost tracking are built into AIForge, the open-source SDK I use for this.

Tell me what you'd like to automate.

Book a free 30-minute call. We'll look at where your team's time goes, and I'll tell you honestly whether AI is the right fit.

Book a free discovery call kushang.tech@gmail.com You talk to the engineer who builds it