From a pile of invoices to the accounting system, with a person checking every one
AI document intake · accounts payable automation module
The problem
Accounts payable is mostly reading and retyping: working out what a document is, copying its details across, finding the supplier and the purchase order, choosing the right codes and checking it against the business’s rules before it goes into the accounting system.
AI can do most of that reading. What it should not do is send anything to the books on its own. The aim was a module where the AI does the routine work and a person still signs off every document.
What I built
Every document moves through the same stages: intake, classification, extraction, matching, coding, rule checks, review and export. Each stage sits behind a small interface, so the AI provider, the document types and the accounting connectors can each be swapped without touching the others.
- Invoices, credit notes and receipt photos are classified and their details extracted, using the OpenAI and Anthropic (Claude) APIs behind one provider interface
- Each document is matched to its supplier and purchase order, coded, and checked against business rules
- A keyboard-driven review queue: a person reviews each document before it reaches the accounting system
- Bills and credit notes are pushed to Xero and QuickBooks Online with the source file attached, over OAuth 2.0, with tokens stored server-side and refreshed automatically
- Purchase orders are imported from Xero; payloads are built for MYOB and Sage; CSV and JSON export are available for everything else
- Every export attempt is logged
Why it matters
The AI prepares the work and a person decides what goes into the accounting system. Because the provider, the document types and the connectors are separate, the module can follow a client’s existing accounting system rather than asking them to change it.
The walkthrough on this page starts on the dashboard, then follows the work: an invoice read by AI, the review queue and purchase order match, approval, a dispute with a drafted email to the supplier, the credit note that settles it, expenses, and export into Xero.
Built with
Next.js 15, React and TypeScript; Tailwind 4 and shadcn/ui; react-pdf; Supabase (PostgreSQL, Storage, Realtime); OpenAI and Anthropic SDKs; Xero and QuickBooks Online over OAuth 2.0; Vercel. 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.