# AI invoice processing: what to automate and what to keep human

> How an AI agent reads invoices in any format, matches them to purchase orders and flags what a person should check, but never pays alone.

URL: https://ottertailaistudio.com/blog/ai-invoice-processing  
Author: Akshay Jain  
Published: December 1, 2026  
Updated: December 1, 2026

## The short answer

An AI agent can read invoices in any format, extract the fields, match them to purchase orders and receipts, prepare the entry in your accounting system and flag mismatches. People should still approve payments, new vendors and any change to bank details. Flag-and-prepare is a safe design. Pay-without-review is not.

## Key takeaways

- Automate reading, matching and preparing the entry. Keep payment and bank-detail changes with people.
- An agent that flags a mismatch is more useful than one that guesses.
- Changed bank details are a common fraud pattern; always verify out of band.
- Start with a read-only or prepare-only agent and a person approving each entry.
- It pays back where invoices arrive in many formats and someone retypes each one.

Accounts payable is often the clearest first project for an agent. Invoices arrive by email in half a dozen formats, and someone types each one into the accounting system. The work repeats, the rules are mostly written down, and mistakes are catchable before money moves. This post explains what to automate, what to leave with people and what could go wrong.

## What does an invoice-processing agent do?

The agent handles the steps between an invoice arriving and an entry being ready for approval:

1. **Receives** the invoice from an inbox or upload, in PDF, image or email body.
1. **Reads** it and extracts vendor, invoice number, dates, line items, tax and totals.
1. **Matches** it to the purchase order and, where you use three-way matching, the goods receipt.
1. **Checks** it against rules: known vendor, duplicate invoice, amount within tolerance, correct tax.
1. **Prepares** the entry in your accounting or ERP system.
1. **Flags** anything that does not match, with the reason and the source field.
1. **Waits** for a person to approve the entry.

The agent reads and prepares. It does not pay.

![Five steps from inbox to a prepared entry: receive, read, match, check, prepare. A person then approves. The agent never releases a payment or changes vendor bank details.](/_emdash/api/media/file/01M8RFJQK5BAPEB7K5101WEN3W.webp)

## What should stay with a person?

| Let the agent do | A person approves | The agent never does |
| --- | --- | --- |
| Read and extract fields | Entries it flagged | Release a payment |
| Match to a PO | New vendors | Change vendor bank details |
| Spot duplicates | Amounts outside tolerance | Delete or edit posted entries |
| Prepare the draft entry | Any change to vendor details | Approve its own work |
| Route to the right approver | Exceptions to your policy | Contact a vendor on its own |

## Why are bank-detail changes a special case?

A request to change a supplier's bank account, arriving by email with a plausible invoice, is a well-known fraud pattern, often called business email compromise. An agent that reads the email and updates the record is exactly what a fraudster hopes for. The control is simple and non-negotiable: bank-detail changes are verified with the vendor through a known phone number or contact, by a person, and the agent cannot edit them. It should flag the change prominently.

## What does flag, not guess mean?

Language models can read a smudged scan and produce a confident, wrong number. A well-built agent treats uncertainty as a result: when a field is unreadable, a total does not reconcile or a PO is missing, it says so, shows the source region and leaves the decision to a person. Each field is logged with where it was read from, so a reviewer can check it in seconds.

That design also gives you the data to improve it. You can see which vendors and formats cause flags and adjust. Here is what that looks like for one invoice.

![An example of what an agent read from an invoice, with the source of each field. Four fields are marked OK. The total is flagged because the purchase order is CA$40 lower, and the agent leaves the decision to a person. The data is made up.](/_emdash/api/media/file/01M8RFJY62GTCYJQ7G4TKEF557.webp)

## What do you need before you build one?

- **A clear matching policy:** two-way or three-way, and your tolerance for price and quantity differences.
- **An accounting or ERP system with an API** or a reliable import route.
- **A sample of real invoices**, including the ugly ones, with the correct entries.
- **An owner in finance** who reviews flagged items and approves rule changes.

If your invoices all arrive as structured e-invoices from a few vendors, simple rules or your accounting software's own capture may be enough. Check that before commissioning anything; see [done-for-you, DIY or off-the-shelf](/blog/done-for-you-ai-vs-diy-vs-software).

## How do you work out if it pays back?

Count invoices per month, minutes per invoice including corrections, and the loaded hourly cost, then subtract the review time that remains. A company handling 400 invoices a month at 6 minutes each spends 40 hours a month on entry (an illustrative figure, not a benchmark). If an agent removes most of the typing but a person still reviews flagged items, the saving is real but smaller than the headline. [How much a custom AI agent costs](/blog/how-much-does-a-custom-ai-agent-cost) walks through the sum, and [which processes are worth an AI agent](/blog/which-processes-are-worth-an-ai-agent) shows how to rank it against other candidates.

## When is this the wrong project?

Few invoices a month, a single vendor sending structured data, a finance system with no integration route, or an approval process nobody has defined. In each case, fix the foundation first.

## What we would do

We would begin with prepare-only and 100% human review, measure how many fields needed correction on a sample of your real invoices, and widen automation only on the categories that prove reliable. For a sense of how we document this kind of design, see the [Builds library](/builds). If you want to talk through your own process, [book a free call](/book).


## FAQ

**Can AI process invoices without human review?**

For clean, matching invoices from known vendors, you can relax review over time. Payments, new vendors and changed bank details should always involve a person.

**Does it work with our accounting software?**

Usually, if it has an API or supports import. Confirm which system and what it exposes before scoping.

**How accurate is invoice extraction?**

It varies with document quality and format. Measure it on a sample of your own invoices and report how many fields needed correction, instead of relying on a vendor's headline figure.

**What about a ready-made AP product?**

If a product handles your formats and connects to your system, buy it. Custom work makes sense when your approvals, formats or systems do not fit.