Blog & Insights

What controls should be in place before you connect an AI agent to business systems?

Limit what the agent can do, what it can reach and what it may do without a person: narrow tools, its own identity, approval for actions that are hard to undo, a log and a way to switch it off.

Before an AI agent touches a real system, limit what it can do, what it can reach and what it may do without a person. Give it a short list of narrow tools and its own identity with the least access that does the job, and decide which actions it may take alone and which need a person’s approval. Log what it reads and does, and make sure someone can switch it off. Put those in place first, because an agent acts on the text it reads, and that text can be wrong or planted.

Why an agent needs its own set of controls

A chat assistant answers a question and a person decides what to do with the answer. An agent decides which tools to call and then calls them: it looks up a record, updates a field, sends a message. Whatever it reads along the way can change what it does next.

OWASP’s list of the top risks for applications that use language models names two that matter here. Prompt injection is input that changes the model’s behavior in ways nobody intended, and it includes instructions hidden in outside content such as a web page or a file. Excessive agency is what lets a damaging action happen when the model’s output is unexpected, ambiguous or manipulated. OWASP gives its usual root causes as excessive functionality, excessive permissions and excessive autonomy.

Those three causes are the plan for the steps below, which are in the order we would do them.

1. Write down the job and what it touches

You cannot scope access for a job nobody has described. Put on one page:

  • the job in one sentence, such as “draft replies to order-status questions”;
  • every system it will read from and every system it will change;
  • the actions it needs in each: read, create, update, delete, send;
  • an owner in the business for the outcome and an owner in IT for the controls.

If the list of systems is longer than the job seems to need, the job is too wide. Split it. How to hire and manage AI agents like employees covers the role and the supervisor from the business side.

2. Give it its own identity and the least access

This comes before anything else technical, because every later control depends on knowing which actions were the agent’s. Create an account for this agent alone, a service account or an application identity, and do not let it borrow a person’s sign-in or a shared administrator account. Grant read-only access where reading is enough, and limit writes to the records and fields the job needs. If the agent works on behalf of a person, it should never see more than that person can. Keep its credentials out of the prompt, with short-lived tokens where the system supports them, and put its access on the same review schedule as people’s access.

3. Give it narrow tools

Permissions limit what the account can reach. Tools limit what the agent can ask for. A tool called “look up an order by its number” is safer than one that runs any query, and “save a draft reply” is safer than “send email.”

Write the rules into the tool’s code, where they hold even when the model has been manipulated. The tool checks that the record belongs to the customer in the conversation, that an amount is under the limit, and that a recipient is on the approved list. Add rate limits and a cap on what one run can do, in records, messages and spend, so that a mistake repeated quickly is caught while it is still small.

4. Decide which actions need a person

Sort every action on your page from step 1.

  • The agent may act alone when the action is easy to reverse and a mistake costs little: reading, drafting, tagging, filing.
  • A person approves first when it moves money, sends something to a customer, deletes or overwrites a record the business relies on, or changes anyone’s access.

For those, the agent prepares the action and a person approves it, which is how we build AI workflows. Show the approver what the agent proposes and what it based that on. Keep the approval in the system that carries out the action, so it is recorded with the action. Keep the approval list short as well. A person asked to approve hundreds of items a day stops reading them, and then the control exists only on paper.

5. Log what it read, what it decided and what it did

When something goes wrong, you will need to reconstruct it. An agent’s log has to hold more than a record of who signed in: the request, the content the agent retrieved, each tool call with its parameters, the result, and who approved what. Keep it somewhere the company controls, and name the person who receives the alerts for denied actions and unusual volume.

6. Treat everything it reads as untrusted

Email from outside, uploaded documents, web pages and free-text fields that customers fill in can all carry instructions aimed at the agent. Assume some will.

The most useful rule is separation. An agent that reads outside content should not also hold a tool that can send data out of the company or change access. If the job seems to need both, split it into two steps with a person or a fixed rule between them.

Never treat something the agent read as an approval. An email saying a payment was authorized is content, and the authorization has to come from a person.

7. Test it on real cases, and know how to stop it

Collect real examples of the work, including unclear ones and a few written to trick it, and agree on the pass mark before testing starts. Run them in a test environment with test data. How We Test AI Before It Touches Your Business describes how we do this.

The work we did for Q Investments is a small case of the same pattern. In his review on Clutch, Kenneth Croft, the firm’s IT Manager, describes a system that reads requests sent by email and turns them into commands for the firm’s existing office and home automation, such as lights, HVAC and motorized shades. The model’s part is to work out which action was meant, and the firm’s existing software carries it out. Success was defined in advance as identifying 95% of unambiguous requests on the first try, measured on 100 test cases that Q supplied, and he reports that the target was met by the end of the project.

Before go-live, write down how to stop the agent: who may disable its identity, how, and how to reverse what it changed. Try it once.

Mistakes that are easy to make

  • Connecting the agent with an administrator’s credentials because it was quicker than creating an account.
  • Giving it one general-purpose tool, such as a database connection, in place of several narrow ones.
  • Requiring approval for everything, which trains people to approve without reading.
  • Keeping logs that nobody is assigned to read.

Common questions

Does every action need a person’s approval? No. A person who has to approve everything stops reading what they approve. Let the agent do reversible, low-stakes work alone, and require approval for money, messages to customers, deletions and changes to access.

Are the safety features in the vendor’s product enough? They help, and they do not replace limits in your own systems. The permissions on the agent’s account and the checks inside each tool still hold when the model is wrong or has been manipulated.

What do we do if the agent does something it should not have? Disable its identity first, which stops it without touching anyone else’s access. Then use the logs to see what it read and did, reverse what can be reversed, and fix the permission or the tool that allowed it before you turn it back on.

If you want a second opinion on the design before an agent is connected, setting the rules for what AI may touch, who approves and what gets logged is part of Strategic IT Advisory.

Related service: Security & Compliance

More like this, in your inbox. Subscribe for our latest thinking, resources, and events.

Get started

Want results like these?