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.

Four steps in AI invoice processing: reads, matches, flags mismatches, and never pays, which stays with a person.

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.
  2. Reads it and extracts vendor, invoice number, dates, line items, tax and totals.
  3. Matches it to the purchase order and, where you use three-way matching, the goods receipt.
  4. Checks it against rules: known vendor, duplicate invoice, amount within tolerance, correct tax.
  5. Prepares the entry in your accounting or ERP system.
  6. Flags anything that does not match, with the reason and the source field.
  7. 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.

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.

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.

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 walks through the sum, and 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. If you want to talk through your own process, book a free call.

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.

Akshay Jain

Founder of Ottertail AI Studio in Vancouver. Akshay has spent his career building production systems, and now designs and builds custom AI agents for growing companies.

Want this working in your business?

Tell us where you're stuck. We'll tell you what we'd do first.

Book a free call
Book a free call