LeadtoMarginAdvisory(336) 444-6509Call
Menu

Case study · Finance · Accounts payable · Uses Claude

Vendor invoices that read, check and route themselves.

Every vendor invoice used to be typed in by hand. I led the build of an AI pipeline that reads them, verifies its own work field by field, catches duplicates, and only sends a person the ones it isn't sure about.

95%+Confidence needed to approve automatically
To the centAmounts cross-checked against the source
3 waysDuplicates caught: name, rename and content
Multi-modelAI that checks its own work, including Claude

The problem

Vendor invoices arrived as PDFs and scans, in every format a supplier could invent. Someone opened each one, typed the vendor, invoice number, date, PO and amounts into the system, and hoped nothing was entered twice or paid twice.

It was slow, it didn't scale with the business, and the most common errors (a transposed digit, the same invoice saved under two file names) are exactly the kind people miss at the end of a long day.

What we built

I led the build of an AI pipeline that reads vendor invoices, checks its own work, and only asks a person when it isn't sure.

  1. Invoice comes inPDFs and scanned images, from any vendor, in any layout.
  2. AI reads itVendor, invoice number, date, PO number, amounts and a short description, pulled into a structured record.
  3. A second set of AI models checks the firstA validator re-reads the source and cross-checks every field. Amounts must match to the cent. Invoice numbers, dates and POs are checked against known patterns. A reasoning step handles edge cases and signs of fraud, and a final pass checks that the numbers add up.
  4. Duplicates are caught three waysThe same file name, a file the computer renamed, or identical content saved under a different name.
  5. Routed by confidenceEvery invoice gets a confidence score and goes where it belongs:
    95%+Approved automatically
    70–95%Approved, flagged for a look
    Under 70%Sent to a person

The system also keeps score on itself: accuracy by field, the most common errors, and how often it needs a person. It gets measured, not trusted on faith.

What changed

Before

  • Every invoice typed in by hand
  • Duplicates caught only by memory
  • No way to tell a confident entry from a guess
  • Processing time grew with every new vendor

After

  • Invoices read and entered automatically
  • Duplicates caught before they're paid
  • Only the uncertain ones reach a person
  • Accuracy tracked by field

Work my team and I did in an executive operating role. Results describe that business and aren't a promise for yours.

How it was built

A Python pipeline with background workers. It uses different AI models for different jobs: OpenAI models to read and validate documents, and Claude as a correction pass that returns a fixed, structured record when a check fails. Each model does the step it's best at, and none of them gets the last word on anything a person should see.

Where is your business still running on workarounds?

Fifteen minutes. I'll tell you where I'd look first, and whether I'm the right person for it.