Invoice Processing Automation: One Bill From Inbox to Approved, Step by Step

Invoice processing automation walked through one bill: which steps an AI agent takes, which stay with a person, and how it connects to your accounting software.

Invoice processing automation means software takes a supplier bill from the moment it lands in your inbox to a coded draft in your accounting system, ready for someone to approve. An AI agent can do the reading, checking, matching and coding. A person should still approve the bill and release the payment. That split is the whole design, and most AP software marketing blurs it.

Rather than describe it in the abstract, this article follows one bill through every stop on its way to being paid, marks who handles each step, and shows where the agent plugs into Xero, QuickBooks or MYOB.

The bill we are following

To keep it concrete, here is an invented example. It is not a client’s bill, just a typical one.

A packaging supplier emails a PDF to your accounts address. Invoice number INV-20418. Three line items adding up to $1,840.00, GST at 15% of $276.00, total $2,116.00, due in 20 days. It quotes your purchase order number in a field labelled “Your ref”. At the bottom are the supplier’s bank details.

Each stop below is labelled with who does the work: the agent, a person, or your accounting software.

Following one invoice from inbox to approved bill

Stop 1: The bill lands

Who: the agent.

The agent watches a dedicated bills address, or the shared accounts inbox. It picks up the email, saves the attachment and records where it came from and when. Some suppliers send a link to a portal instead of a PDF; the agent either fetches the document or, if the portal needs a login it does not have, flags the email for a person.

If your accounts inbox is a mess of bills, client questions and newsletters, sorting it is a job in its own right. Our Triage Agent does exactly that for a morning inbox, and the same sorting step sits at the front of a bills workflow.

Stop 2: Is it actually a bill?

Who: the agent.

Accounts inboxes receive plenty of things that look like invoices and are not: statements, payment reminders, quotes, receipts for things already paid, credit notes, and copies of bills you have already processed. Getting this wrong has a real cost. Treat a statement as a new bill and you can pay the same invoices twice.

The agent classifies the document. INV-20418 is a tax invoice from a known supplier, so it moves on. A reminder for an invoice already in the system gets linked to the original and goes nowhere else.

Stop 3: Read the fields

Who: the agent.

This is the intelligent document processing step. The agent extracts the supplier name and tax number, invoice number, issue and due dates, each line item, subtotal, tax, total, the PO reference and the bank details. Modern language models read a layout they have never seen before, so a new supplier does not need a template set up first. Our explainer on intelligent document processing covers how that works and where it goes wrong.

Stop 4: Check it

Who: the agent, running checks that do not depend on the AI.

Before anything goes near your ledger, the extracted data is tested:

  • Do the three line items add up to $1,840.00, and does $1,840.00 plus $276.00 equal $2,116.00?
  • Is $276.00 the correct tax on $1,840.00?
  • Does the supplier exist in your accounting system, and does the tax number on the invoice match the one on file?
  • Has invoice number INV-20418 from this supplier been processed before?
  • Is $2,116.00 within the normal range for this supplier?
  • Do the bank details on the invoice match the bank details already held for this supplier?

INV-20418 passes everything. If any check had failed, the bill would stop here and go to the exception queue, with the failed check named, the PDF attached, and nothing written anywhere.

Stop 5: Match it

Who: the agent, where the records exist.

If you raise purchase orders, the agent finds the PO quoted on the invoice and compares quantities and prices. If you also record goods received, it can check that too. That is the two-way and three-way matching most AP software is built around.

Here is an opinion that will not appear on many AP vendors’ websites: if your business does not raise purchase orders, do not buy software designed around three-way matching, and do not start raising POs just to feed it. Most smaller businesses do not run on POs. For them, the useful match is against history: the same supplier, similar amounts, the same items as last month. An agent can do that well, and it reflects how your business actually buys.

Stop 6: Code it

Who: the agent proposes; rules and history decide.

The agent suggests the expense account, tax code and any tracking category for each line, based on how this supplier’s bills have been coded before. Packaging from this supplier has always gone to the same cost of sales account, so that is what it proposes. A brand new supplier, or a line item it has never seen, gets no guess: it goes to a person to code once, and that decision becomes the pattern for next time.

Stop 7: Create the draft bill

Who: your accounting software, written to by the agent.

The agent creates the bill through the accounting platform’s API and attaches the original PDF. In Xero’s API, a bill is an invoice of type ACCPAY, and it can be created with a status of draft, submitted for approval, or authorised (Xero developer documentation). The agent should create bills as drafts or as submitted for approval, and never as authorised. QuickBooks Online and MYOB have their own equivalents, and the same principle applies to both.

A note on the bill records what the agent did: which checks passed, which PO it matched, why it chose those account codes. When someone asks in six months why a bill was coded a certain way, the answer is on the bill.

Stop 8: Approve

Who: a person.

Someone with authority opens the bill, sees the PDF, the extracted values, the checks and the proposed coding in one place, and approves it. Because the evidence is already assembled, this takes seconds for a clean bill like INV-20418. Approval limits work as they do now: bills above a set amount go to a more senior approver.

This is the step people expect to automate first and the one we would automate last. Approval is where the business accepts that it owes the money. It costs very little time once everything before it is done well, and it keeps a named person accountable.

Stop 9: Pay

Who: a person.

The agent can prepare a list of approved bills falling due this week, grouped by due date. A person reviews the list and releases the payment batch in your bank. The agent never holds the ability to move money.

Stop 10: Reconcile

Who: the agent, with an exception path.

When the payment leaves your account, the bank line has to be matched to the bill it paid. This is where our own work sits. Our Reconciliation Agent does this matching on the receivables side: it reads live bank transactions directly from the business’s accounts, matches every credit against outstanding invoices, records the payment once a match is confirmed, and flags anything it cannot match with confidence for a person to review. A payables version follows the same pattern in the other direction, matching outgoing payments against approved bills.

Who does what, at a glance

Step Agent Person Why it sits there
1. Bill lands Yes Only if access fails Pure collection work
2. Classify Yes Ambiguous documents Errors here cause double payments, so ambiguity goes to a person
3. Extract fields Yes Reading is what models do well
4. Check Yes Every failed check Checks are rules; failures need judgement
5. Match Yes Mismatches Comparing records is mechanical
6. Code Proposes New suppliers, new items History makes coding predictable once set
7. Draft bill Writes it Draft status keeps it reversible
8. Approve Yes Accountability for what the business owes
9. Pay Prepares the list Releases payment Money movement stays human
10. Reconcile Yes Unmatched lines Same match-or-flag pattern

Two lines an agent should never cross

Some AP products are sold on “touchless” processing, where a bill goes from email to payment with nobody involved. We will not build that, for two reasons.

An agent should never release a payment. The whole value of the system is that a person approves a bill with all the evidence in front of them. Removing that person saves a few seconds per bill and removes the last point where a fraudulent or mistaken bill gets caught.

An agent should never accept new bank details from a document or an email. Changing a supplier’s bank account on the strength of an invoice is the classic setup for business email compromise, where a criminal impersonates a supplier, or takes over their mailbox, and sends a genuine-looking bill with their own account number on it. The FBI’s Internet Crime Complaint Center recorded US$2.77 billion in reported business email compromise losses in 2024 (IC3 2024 Internet Crime Report). In our design, bank details on an invoice that differ from the supplier record are a hard stop: the bill goes to the exception queue, and a person confirms the change by phone using a number already on file, never one printed on the invoice.

How the agent connects to your accounting software

The connection is the least glamorous part and the one that decides whether the system can be trusted. A few principles we hold to:

  • Use the platform’s official API with an account that has only the permissions it needs: create draft bills, read suppliers and accounts. No permission to authorise bills or make payments.
  • Write drafts, never final records. Anything the agent creates can be edited or deleted by a person before it counts.
  • Never create the same bill twice. Every bill is keyed on supplier plus invoice number, so a resent email or a retry after a timeout does not produce a duplicate.
  • Attach the source document and the reasoning to every bill, so the audit trail lives in the accounting system rather than in a separate tool.
  • Read before you write. The agent checks supplier details, open POs and existing bills in the ledger at the moment it processes the document, not from a copy taken last week.

Accounting practices running this across many client files face the same design with more variety in the inputs; we cover that in AI for accounting firms.

Is invoice processing automation worth it at your volume?

Run the arithmetic on your own numbers. If your team processes 200 bills a month and each takes five minutes to open, key, code and file, that is 1,000 minutes, roughly 17 hours a month. Automation does not take that to zero. Flagged bills still need a person, and approvals still take a moment each. What changes is the kind of time left: a person reviewing exceptions with the evidence laid out, instead of typing totals from PDFs.

At a few dozen bills a month, the bill capture tools built into many accounting platforms may well be enough, and a custom agent would be hard to justify. The case gets stronger with volume, with variety in suppliers and formats, and when the bills feed other work, such as job costing or client recharges, where a coding error spreads.

Frequently Asked Questions

What does processing an invoice entail?

Receiving the bill, confirming it is a genuine new invoice, capturing the supplier, dates, amounts, tax and line items, checking them against purchase orders or past bills, coding each line to the right account, entering it in the accounting system, getting it approved, paying it on time and reconciling the payment against the bank. Automation can take on most of that; approval and payment release should stay with a person.

Is AI going to take over accounts payable jobs?

It takes over the keying, not the accountability. In the workflow above, a person still approves every bill, releases every payment, verifies any bank detail change and resolves every exception. What disappears is the typing of totals from PDFs. In a workflow built this way, the work shifts towards checking, supplier queries and month-end rather than going away.

Can AI generate an invoice?

Yes, but that is the other side of the ledger. Generating and sending invoices to your customers is accounts receivable. This article covers accounts payable: bills you receive from suppliers. An agent can draft outgoing invoices from timesheets or completed jobs, and the same rule applies: a person reviews before anything is sent.

Is billing AP or AR?

Billing your customers is accounts receivable (AR): money owed to you. Paying supplier bills is accounts payable (AP): money you owe. Invoice processing automation usually refers to AP, though the matching pattern applies to both, which is why the match-or-flag design behind our receivables Reconciliation Agent carries straight over to payables.

If supplier bills are eating hours of your team’s week, Tensor Partners can map your bill workflow, show which of these steps are worth automating at your volume, and build it on the accounting software you already use. Start with our AI automation service.

Start here

What you get
A straight answer on whether AI pays off in your business, and what it would take.
Office
2 Wakefield Street, Auckland CBD, Auckland 1010, New Zealand
Response time
Within one working day

Start here

Book a free discovery call.

30 minutes, no pitch deck, no obligation. Tell us what's eating your team's time and we'll tell you straight whether AI is the answer, and roughly what it would take.