Insights

What should you check before letting an AI agent into your back office?

By Yury Primakov ·

Before an AI agent touches invoices, customer records or your ERP, confirm five things: it runs in accounts you own, it has only the access the job needs, your data isn't used to train the model, every action it takes is logged, and anything outside its rules goes to a person instead of being guessed. Then test it on your own history before it writes to a live system.

Accounts and ownership

Start with whose name is on everything. The agent should run in your cloud, your AI provider accounts and your repositories, with credentials your team holds. If you part ways with whoever built it, you should keep the code, the data, the logs and the keys, and be able to switch off the vendor's access in one step. MadeFire builds this way by default and writes the handover into the agreement.

Access: give it the least it needs

Give the agent its own service account, not a person's login, so its actions are traceable and its access can be cut on its own. Start read-only. When it does need to write, let it write to the narrowest place possible, such as an import batch or a staging table that your normal posting step validates, rather than straight into the ledger.

Some things an agent shouldn't do at all in most back offices: release payments, change vendor bank details, or approve its own exceptions. A change to who gets paid, or where, is a classic fraud pattern and belongs with a person every time.

Data: know where it goes

Ask which AI model provider the agent uses, under which terms, and what is sent to it. On business API terms, providers generally don't train on your data by default. Anthropic, for example, states that it does not use inputs or outputs from its commercial products, including its API, to train its models, unless you opt in, for example by sending feedback (Anthropic privacy center). Check the terms of whichever provider your agent uses, how long it retains data, and send only the fields the task needs.

Documents can carry instructions

An agent that reads email and PDFs reads text written by outsiders. The OWASP Top 10 for LLM Applications lists prompt injection, where text in the input tries to steer the model, and excessive agency, where a model has more permissions or autonomy than its task needs, among the main risks for these systems (OWASP GenAI Security Project). A vendor invoice that says to send payment to a new account is the back-office version.

The defenses are mostly design, not clever prompts: treat everything in a document as data, give the agent a short fixed list of actions, check what it extracts against your master data, and send anything that asks it to change a rule or a payee to a person.

Logging, review and an off switch

Every action should be logged with the document it came from, what the agent decided and why. Set thresholds above which a person approves, such as a dollar amount, a new vendor or a price variance. And make sure someone can pause the agent without calling the vendor.

Test on your own history first

Before an agent writes to a live system, run it on documents your team has already processed and compare its answers with theirs. At a multi-entity distribution company, MadeFire's AP agent matched 1,602 of 1,605 invoice lines in that kind of test before it went live, and in its pilot it routed 131 of 799 invoices to a person rather than guess. See the AP invoice case study.

For a fuller framework, NIST's AI Risk Management Framework organizes this work into four functions: govern, map, measure and manage (NIST AI RMF core). A small business doesn't need to adopt it formally, but it is a useful check that someone owns each part.

The checklist

Copy this into your vendor review:

  • The agent runs in accounts we own, and we hold the credentials
  • It has its own service account, with read-only access wherever possible
  • It writes only to an import, a staging area or a draft, not straight to the ledger
  • It can't release payments, change bank details or approve its own exceptions
  • We know the model provider, its training and retention terms, and what is sent
  • Document text is treated as data, and the agent has a fixed list of actions
  • Every action is logged with its source document and reason
  • Approval thresholds are set, and someone on our side can pause it
  • It was tested on our own history before go live
  • We keep the code, data, logs and runbooks if we part ways

Common questions

Does the AI model provider see our data?

The provider processes what the agent sends it, so send only the fields the task needs. On business API terms, major providers generally don't train on that data by default, but check your provider's terms and retention period.

Can an AI agent be tricked by a malicious invoice or email?

It can try to be. That is why the agent should treat document text as data, have a short fixed list of actions, check what it reads against your master data, and send anything that tries to change a payee or a rule to a person.

Should an AI agent be allowed to pay vendors?

In most back offices, no. Let it prepare and check the batch, and keep payment release and bank detail changes with a person. That keeps the riskiest step behind human approval.

What should we ask an AI vendor before signing?

Whose accounts it runs in, what access it needs, which model provider it uses and on what terms, how actions are logged, how it was tested on your data, and what you keep if you part ways.

Want a second opinion on your own process? Book a free 30-minute review, or start the free intake and see MadeFire pricing.