Skip to content
Prateek Mulye
Product 2 of 4

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.

Start from a sample

0 of 6000 characters. Nothing you type is stored.

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.

89%fields correct
83%right ready or review call
100%known problems caught by the right check
0problem invoices marked ready
Clean invoice with a POCorrect
Line items don't add upCorrect
Already paid (duplicate)Correct
Total doesn't match subtotal plus taxCorrect
New bank details (fraud check)Correct
Small invoice, no PO neededCorrect
More than the PO has leftCorrect
Due before it was issuedCorrect
Different layoutCorrect
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 emailSent 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 fieldThe 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 scansThe 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 sizeTwelve 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 modelGemma 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.