Work

Workflow automationWorking demo

AI invoice inbox: supplier emails to draft bills in Xero, with n8n and Claude

AI invoice inbox · n8n and Claude workflow, demo build

Walkthrough A supplier email read by Claude and posted to Xero as a draft bill, and the results on a 30-document test set

The problem

Supplier invoices arrive by email as PDFs, scans or phone photos. Someone has to open each one, read it, check it and enter it into the accounting system.

Most invoices are routine. The ones that matter are the exceptions: a duplicate, a total that does not add up, a supplier nobody approved. Those must never reach the books unchecked.

What I built

A workflow in n8n that starts where the invoices already arrive: the inbox. Once published, it checks the inbox every minute, with no clicks.

  • Claude reads each document, whether it is a PDF, a scan or a tilted phone photo
  • Each invoice is checked against an approved-supplier list kept in Google Sheets
  • Invoices that pass become draft bills in Xero, and the total is checked against Xero’s own figure before the invoice is marked accepted
  • Anything that fails a check goes to a review queue with the reason, and never reaches Xero: duplicate invoice numbers, totals that do not add up, unapproved suppliers, unusual amounts and the wrong currency
  • Every document is logged with a link back to the email it came from

Tested

On a 30-document test set of PDFs, a scan and phone photos, all 30 were routed correctly. 17 invoices were posted to Xero as draft bills, 9 problem documents were held for review with none reaching Xero, 2 credit notes were logged and 2 documents that were not invoices were skipped.

The test was a single run on made-up test documents, against the Xero Demo Company.

A different way in

This solves the same accounts payable problem as the AI invoice matching prototype and the document intake module. The difference is the intake: nothing is uploaded, because the workflow reads the inbox the invoices already arrive in. It is built on n8n, a workflow tool, rather than as custom software, so it fits a business that wants the result without a new application to run.

Built with

n8n; Claude (Anthropic API); Gmail; Google Sheets; Xero. 2026.

Have a challenge like this one?

A free 20-minute conversation about your business, what’s getting in the way, and what it would take to fix it.

Working withAsia-Pacific, the Middle East and Europe, remote or on site
Based inIndonesia (UTC+7)