AI Invoice Processing & Audit Agent
Problem
Accounts payable teams get invoices as PDFs and photos, by email and through shared folders. Someone has to type each one in, then check it: does the math add up, is the vendor approved, does it match the purchase order, have we paid it already? It's slow, repetitive work, and the mistakes that slip through (duplicate payments, wrong totals, unknown vendors) cost real money.
Approach
Four n8n workflows, shown here with every node. Main picks up invoices from a Gmail label and a Google Drive folder (plus a 15-minute sweep for missed files), reads text PDFs directly and sends scans and photos to the AI as images, cleans the data and runs the bookkeeper checks: math, duplicates, approved vendor with fuzzy matching, purchase order within 2%, the $5,000 approval limit, low AI confidence, and whether the AI's numbers really appear in the PDF. Every invoice is saved to Supabase and filed in Drive. Review Request emails each flagged invoice to a reviewer with Approve / Reject buttons. Weekly Report emails a summary every Monday, and Crash Alerts logs and emails any failure.
Outcome
Clean invoices go straight through and only problem invoices reach a person, with the reasons spelled out. About 6 minutes of manual entry saved per invoice (estimate). In testing, 19 sample invoices gave 19 correct results, and nothing disappears silently: every step retries, failures are flagged, and crashes are reported.
Tools used
Illustrative savings
Estimate what this workflow could save you. Change the three numbers to match your business. The results update as you type. This is a rough guide, not a client result.
Hours saved / month
30
Saved / month
$450
300 invoices processed × 6 min ÷ 60 = 30 h × $15 = $450
Illustrative replay with sample data. No real workflows are executed.
Ready
Execution log
0 entries
Press "Execute workflow" to start the replay.
Live results
0 of 5 app updates
Want this running in your business?
Book a call about the AI Invoice Processing & Audit Agent. I'll adapt it to your tools and the way your team works.