Skip to content

How to make an AI agent safe for customers

An AI agent is safe enough for customers when its limits are decided before it is built: what it may read, what it may never do, which actions need a person to sign off, and what it says when it does not know. Then those limits are tested as hard as the answers. Here is how we do it.

By , Technical leadPublished Updated 5 min read

Can AI agents be safe to use?

Yes, if safety is designed in rather than hoped for. Language models can be wrong and can make things up, so a safe agent never relies on the model alone. It reads only what it is allowed to, answers only from sources it can cite, and needs a person before any action that is hard to undo.

The risk with an agent is not that the model is unreliable. Every model is, sometimes. The risk is an agent built so that one wrong output turns straight into a wrong message to a customer, a wrong refund or a file leaked to the wrong person. Safety is the set of checks between the model and those outcomes.

Why write the limits of an AI agent first?

Because limits shape the whole build. What the agent must never do decides what data it can reach, which tools it gets, where a person signs off and what the tests check. Written down before the first line of code, the limits become part of the scope. Added at the end, they become patches.

Every build of ours starts with a short list of refusals, each tied to a real risk. Buddhi AI never gives an agent context the person asking is not cleared for. TokenCap never uploads your code. In our trip operations workflow, a trip record is never closed until the driver confirms the details the model read.

A good limit is specific and testable. A rule to be careful cannot be tested. A rule that the agent never quotes a price missing from the published list can.

What does read-only by default mean for an AI agent?

It means the agent starts with permission to read and nothing else. Writing, sending, deleting or paying are each added one at a time, only where the job needs them, with their own limits. Most of the value of an agent comes from reading and drafting, so most agents never need more than that.

How we set permissions for what an agent can do
ActionDefaultWhat it needs
Read data the asker may seeAllowedIdentity and role checks on every request
Draft a reply or a documentAllowedA person sends or approves it
Update a recordOffExplicit permission and a confirmation step
Send to a customerOffOpt-in, approved wording and limits on content
Refund, pay, deleteOffA person signs off every time

Which AI agent actions should a person sign off?

Any action that moves money, changes a customer record in a way that is hard to undo, sends something in your name that has not been approved, or deletes data. The agent prepares the action with its reasons and sources, and a person approves it in one click. The sign-off is logged with the action.

Sign-off sounds slow, but it rarely is. The agent does the reading, matching and drafting, which is the slow part. The person checks a prepared decision. For actions that repeat safely, the rule can be relaxed later, on evidence from the logs.

Can AI agents hallucinate, and how do you stop it?

Yes. Any language model can produce a confident answer that is not true. You cannot remove that from the model, so you design around it: the agent answers only from retrieved sources and shows the citation, says plainly when nothing matches, and uses fixed rules, not the model, for numbers, dates and prices.

Every answer is logged with its sources, so when something is wrong you can see why. In Buddhi AI every allow and deny is in an audit log, and answers carry their source, author and timestamp.

Can AI agents be deterministic?

The model inside is not fully predictable, but the parts that need trust can be. Checks, permissions, calculations and the fallback when the model fails can all be fixed rules that behave the same way every time. FeatureSmith, one of our builds, works this way: every finding is computed by fixed rules and the AI only explains.

How do you test an AI agent before launch?

Test the refusals as hard as the answers. Build a list of questions and requests from real conversations, add the ones it must refuse, people trying to get around the limits, and messy inputs. Run the list before every release. A launch is ready when the refusals pass, not only when the answers sound good.

  • Normal questions with known correct answers
  • Questions it must not answer, from the written limits
  • Requests for data the asker may not see
  • Attempts to talk it out of its rules
  • Broken, partial or unexpected input
  • What happens when the model or a tool is down

AI agent guardrails checklist

  • A written list of what the agent must never do, agreed before the build.
  • Read-only access by default, with each write action added on purpose.
  • Identity and role checks on every request: no anonymous queries.
  • A person signs off on money, deletion and sends that are not approved.
  • Every answer cites its source, or the agent says it does not know.
  • A fixed, rule-based fallback when the model fails.
  • Every answer and action logged.
  • Refusal tests that run before every release.

Where to go next