Demonstration
Demonstration: accounts payable workflow with controls and an exception queue
A working demonstration on 66 synthetic supplier emails. Invoices are read, checked against fixed rules and either posted to a mock accounting system or sent to a person, with every step audited. Measured on our own test set, not client results.
Disclosure: Demonstration built on synthetic data. Every supplier, purchase order, invoice, bank detail and email is invented, and the results were measured on our own test set. They are not client results.
Context and challenge
Built on synthetic data: ten invented suppliers sending PDF invoices by email in four different layouts, with matching purchase orders. No live accounts are connected, no payment can be released, and the workflow can never change a supplier's bank details.
Show how invoice processing can be automated while keeping approvals, exception handling and an audit trail, and measure what happens when something is wrong or unfamiliar.
Approach
The test set has 66 emails, each with a known correct outcome: 34 clean invoices (including part deliveries and prices within tolerance), 29 invoices with one planted problem, and three emails that are not invoices: a statement, a request to change bank details and a payment query. The planted problems are a price or quantity above the purchase order, a missing or unknown purchase order, wrong VAT, totals that do not add up, a resent duplicate, an unknown supplier, changed bank details, and invoices above a £5,000 approval limit. Each email is read, its PDF converted to text and the invoice fields extracted. Fixed checks then compare the invoice with the supplier record, the purchase order and what has already been processed. Invoices that pass every check are posted as bills awaiting payment approval; everything else goes to an exception queue with its reasons, where a named person approves or rejects it. In this run, extraction used rule-based templates written for three of the four supplier layouts. The fourth layout comes from two suppliers the templates were not written for, which is what happens in practice when a new supplier starts sending invoices. The run was scored automatically against the known outcome for every email.
Architecture
Email intake, PDF text extraction and field extraction, then deterministic checks: supplier and bank details against the supplier record, duplicates, purchase order price (within the larger of 2% or £0.50) and quantity, line, VAT and total arithmetic, completeness and an approval limit. Clean invoices go to a mock accounting API that requires an idempotency key and has no payment capability. Everything else goes to an exception queue for a named approver. Every step is written to a hash-chained audit log, so any later edit is detectable.
Results
Measured on synthetic data. This is not a client outcome.
0 of 32
Faulty or unusual emails posted without a person
Measured on our demo test set (Each synthetic email has a known correct outcome; the run was scored automatically against it.)
32 of 34
Clean invoices posted with no manual step
Measured on our demo test set (The two that needed a person came from the supplier layout the templates were not written for.)
25 of 29 invoices
Planted problems identified by name
Measured on our demo test set (All 29 went to a person. The four not named were in the unfamiliar layout and were flagged as unreadable instead.)
57 of 57
Invoices read correctly, three known layouts
Measured on our demo test set (Every field compared with the known values: supplier VAT number, invoice and PO numbers, date, lines, totals and bank details.)
0 of 6
Invoices read correctly, unfamiliar supplier layout
Measured on our demo test set (Rule-based templates only. All six were routed to a person and none was posted.)
0 of 3
Duplicate bills from resent invoices
Measured on our demo test set (Caught by the duplicate check; the accounting API also refuses a second bill for the same supplier and invoice number.)
0 of 3
Statements, bank-detail requests and queries treated as invoices
Measured on our demo test set (All three were routed to a person.)
266 entries, tamper check passed
Audit log after the run
Measured on our demo test set (The hash-chained log was re-verified end to end after the run.)
Limitations
- Synthetic data only; results do not represent a client engagement.
- Extraction in this run used rule-based templates, not AI. They read none of the invoices in the unfamiliar supplier layout: the controls stopped anything wrong being posted, but the two clean invoices in that layout still needed manual handling.
- Digital PDFs only. Scanned or photographed invoices would need OCR first, and credit notes, other currencies and three-way matching against goods receipts are not covered.
- The human review step is demonstrated, not measured.
Discuss a similar project
Tell us about the workflow or problem. We will reply by email with suggested next steps.