How do I use AI to read invoices and receipts?
8 min read · Updated
The short answer
AI reads invoices and receipts well today: the supplier, dates, amounts, tax and often the line items. The time goes on what happens next, which is checking each bill, matching it to a supplier, order or job, coding it, getting it approved and posting it to Xero, and that's where a system helps. If all you need is bills into Xero, Xero's own capture or an app like Dext is probably enough. Once bills have to be tied to jobs, clients or recharges, or need more than one person to approve them, the steps around the reading need joining up too.
Reading the invoice is the easy part now
A few years ago, getting software to read an invoice meant setting up a template for each supplier, and it broke whenever a supplier changed their layout. Today's AI reads a PDF or a phone photo much as a person does. It finds the supplier, invoice number, dates, net, tax and total wherever they sit on the page, and usually the line items too. It struggles with blurred photos, handwriting and very unusual layouts, but on ordinary typed invoices it's good. We explain how it works in document extraction.
So if reading were the whole job, this would be a short page. It isn't. Watch someone process a pile of bills and most of their time goes on the questions around each one. Is this a supplier we know? Have we paid it already? Which job was this for? Which code does it go to? Is that the price we agreed? Who needs to approve it? The reading takes seconds. The deciding is the work.
If you just need bills in Xero, start with what Xero gives you
Xero includes its own document capture, Hubdoc, with most of its UK plans (check yours, because the entry-level ones have differed). You email or upload a bill, it pulls out the details and creates a draft bill in Xero for you to check and publish. Apps such as Dext go further, with rules per supplier and tools for accountants handling many clients' books. QuickBooks and Sage have their own equivalents.
For a business with a few dozen bills a month, mostly overheads that go to the same code every time, that's often all you need. We'd tell you so, and it's far cheaper than anything built. Ignore the accuracy figures on vendors' websites: take last month's bills, run them through a free trial and count how many come out right.
It stops being enough when a bill belongs to something
Capture apps make a good draft bill. What they don't know is what the bill is for, and in many businesses that's the part that matters.
Take a plumbing firm with six vans. Materials bills from the merchants need to land against the job they were bought for, or the job's margin is wrong and the parts never make it onto the customer's invoice. Or a Jersey trust company paying registry fees, couriers and third-party professional fees on behalf of client structures. Each of those disbursements has to be recharged to the right entity, and a courier invoice can cover three of them. Add purchase orders that need matching to the invoice, and approval rules where anything over a certain amount needs a second person, and you have work a capture app leaves to a human.
So someone still opens every draft and does that part by hand, from memory, the job board or a spreadsheet. That's where the hours and the missed recharges are.
Xero's capture or an app like Dext
- Reads the invoice
- Yes
- Matches to a supplier
- Yes, to your Xero contacts
- Matches to a job, order or client
- No, a person does that
- Recharges
- Spotted when someone remembers
- Approvals
- Basic, or a separate approval app
- What a person reviews
- Every draft bill
- Enough when
- Bills are overheads that code the same way each time
A system built around your work
- Reads the invoice
- Yes, often using the same kind of AI
- Matches to a supplier
- Yes, and flags new suppliers and changed bank details
- Matches to a job, order or client
- Yes, from your job, order and client records
- Recharges
- Added to the right client's next invoice
- Approvals
- Your own rules, such as two people over a set amount
- What a person reviews
- Only the exceptions
- Enough when
- Bills link to jobs, orders, clients or recharges
Six steps, and only some of them are AI
This is how a joined-up bills process runs. Notice how little of it is AI. Most of it is rules that you could write down, and that's a good sign, because rules behave the same way every time.
Step 1: Arrive
Bills come to one address, whether emailed by the supplier, forwarded by a colleague or photographed on site. Rules: the system collects them and records when each one came in.
Step 2: Read
AI reads the supplier, invoice number, dates, amounts, tax and line items, and says how sure it is of each field.
Step 3: Match
Rules first: the supplier against your Xero contacts, the order number against open purchase orders, the job reference against live jobs. AI helps when the reference is missing, suggesting the likely job from the description or site address for a person to confirm.
Step 4: Check
Rules: do the lines add up, has this invoice number from this supplier been seen before, is the price what was agreed, is it over the approval limit, have the supplier's bank details changed?
Step 5: Approve the exceptions
A person sees only what failed a check or came back unsure, with the invoice image beside the details. Everything else carries on.
Step 6: Post to Xero
Rules: the bill goes into Xero coded, with the job or client attached and the PDF filed, and any recharge lands on the client's next invoice.
A person approves the exceptions, and you decide what counts as one
A good setup still asks people things. It just asks the right person about the right bills. You set what counts as an exception: a new supplier, any change to a supplier's bank details, anything over an amount you choose, any field the AI wasn't sure of, any bill it couldn't match. Changed bank details deserve their own mention, because a genuine-looking invoice with new payment details is a well-worn fraud. Voice and video are no longer proof of identity covers the checks that stop it.
Everything a person does is recorded: who approved what, when, and what they changed. Over a few months you'll see which exceptions are noise and which catch real problems, and you can tune the rules. Our article on human-in-the-loop AI calls this exception mode, and explains why the person reviewing needs enough time and information to actually catch something.
Before and after: the retyping goes, the checking stays
Today
- Bills arrive in three inboxes, the post and the van's dashboard
- Someone retypes each one into Xero
- Someone else checks the typing
- Job costs updated from the bills at month end, if at all
- Recharges added when someone remembers
Joined up
- Bills arrive at one address
- Details read and matched to the supplier, order and job
- Every bill checked against the same rules
- A person reviews only the exceptions
- Posted to Xero with the job and any recharge attached
The line that matters on the left is the second one. Retyping a bill that's already been typed once, by the supplier, is the cost, and the checking on the third line only exists because retyping goes wrong. We make the wider case in spreadsheets aren't the problem, retyping is. To put a number on it for your business, the retyping cost calculator takes about a minute.
If you're an accountancy practice doing this across clients' books, the same pattern applies at a larger scale, and AI for accountancy practices covers where else it fits.
A useful next step
Pull last month's bills and sort them into two piles: bills where the supplier and the code were all anyone needed, and bills that needed something more, such as a job, an order number, a client to recharge or a second approver. If the second pile is small, switch on Xero's capture or try a capture app and stop there. If it's most of them, the reading was never the problem, and is AI the right tool for this job? will help you work out what is.
Questions people ask next
Can it read handwritten receipts?
Sometimes. Neatly written receipts are usually fine. Faded till slips, scrawled trade counter dockets and photos taken at an angle in a dark van are where reading goes wrong. A good setup flags the fields it isn't sure of for a person to check instead of guessing, so test your own worst receipts before you rely on it.
What about duplicates?
Duplicates are caught by rules, not AI: the same supplier and invoice number, or the same amount and date arriving twice, often once by email and once on paper. Xero and the capture apps have some duplicate checks of their own. A system can also check against what's already been paid, and it holds anything suspicious for a person instead of posting it.
Does it work with QuickBooks or Sage?
Yes. QuickBooks has its own receipt capture, Sage owns a capture app called AutoEntry, and the main capture apps connect to both. A system built around your work can post to whichever accounts package you use, as long as it lets other software connect to it, which all the main ones do.
What happens when it misreads a figure?
The checks are there for that. If the lines don't add up to the total, the tax doesn't match the rate, or the amount is well outside what this supplier usually charges, the bill stops for a person. The real risk is a misread that passes every check, which is why the checks matter more than the reading. What happens when AI gets something wrong? covers how to design for it.