Invoice Intake
Document AI pipelines with measured accuracy
For any business that pays suppliers: restaurants, clinics, property managers, contractors. The agent reads each invoice, proves every field against the page, and catches the expensive mistakes: math errors, duplicates, and the fake "new bank details" email.
- Who pays for this
- Businesses with a few hundred supplier invoices a month and one person typing them in.
- What it replaces
- Retyping fields, adding up lines, and checking the books for the same invoice twice.
- What it never does
- Post or pay. It says "ready to post" or "needs review", with reasons.
Try it live
Twelve invented invoices. The books already hold 2 posted invoices and 4 open purchase orders; anything over $500 needs a PO.
The result appears here.
Pick a sample on the left, or paste your own, then run the agent. You'll see what it decided, the draft it wrote for a person to approve, and every step it took.
Scoreboard
Computed from the code on this page every time the site is built, using the rules parser alone on the 12 test invoices.
| Clean invoice with a PO | Correct |
|---|---|
| Line items don't add up | Correct |
| Already paid (duplicate) | Correct |
| Total doesn't match subtotal plus tax | Correct |
| New bank details (fraud check) | Correct |
| Small invoice, no PO needed | Correct |
| More than the PO has left | Correct |
| Due before it was issued | Correct |
| Different layout | Correct |
| Same amount, new number (possible duplicate) | Correct |
| Unusual labels (hard for rules) | Sent to review instead of ready; missed invoiceNumber, invoiceDate, dueDate, subtotal, total, lineItems |
| Invoice pasted from an email | Sent to review instead of ready; missed vendor, invoiceNumber, invoiceDate, dueDate, subtotal, total, lineItems |
The two misses are the point: unusual layouts and invoices pasted from an email beat the rules parser, and it fails safe by sending them to a person. That gap is what the model is for. The model's own accuracy is checked live on every request by the same evidence checks, but it isn't scored on this page yet.
How it works
- Two readers.A rules parser and the model both read the invoice. The model returns every field with the exact text it copied it from.
- Proof, field by field.A model value is kept only if its quoted text is really on the page and really contains that number or date. Otherwise the rules value stands, and the trace says why.
- The math.Each line's quantity times price, the lines against the subtotal, and subtotal plus tax and shipping against the total, to the cent.
- The books.Same supplier and number already posted, or same supplier and amount within 30 days. PO open, for that supplier, with enough left on it.
- Fraud check.Any request to pay a new account stops the invoice and says to confirm by phone using a number you already have.
Trade-offs, stated plainly
| Evidence required for every field | The model can't fill a gap with a plausible guess, so some invoices go to review that a looser system would pass. For accounts payable, a false "ready" costs far more than an extra look. |
|---|---|
| Text in, not scans | The demo takes invoice text. Scanned PDFs and photos need an OCR or vision step first, which a client build adds, along with a scoreboard on that client's own invoices. |
| Test set size | Twelve invoices, written alongside the parser. It proves the checks work as designed; it doesn't prove accuracy on your suppliers. A real engagement starts by labeling 50 to 100 of your past invoices. |
| Small, open model | Gemma 4 on Workers AI keeps the demo free to run. A frontier model reads odd layouts better; the evidence checks stay the same either way. |
For your business
The same pipeline reading from a shared inbox, posting drafts to QuickBooks, Xero or Bill.com, with your approval rules and a scoreboard built from your own history.
Want this built for your business?
Send me a message on Upwork. I'll scope it against your tools, your rules and a test set from your own past cases.
Built and run by Prateek Mulye, senior software engineer. The businesses in these demos are fictional; the code, checks and model calls are real.