Work · No. 002 · In-house
AP vendors were selling invoice reading as secret sauce
- Who it's for
- The accounts payable team at a large manufacturer
- Problem
- The AP team’s software misread invoices and routed them poorly, so people spent their time rechecking everything it pulled off the PDF. Vendors pitching a replacement were selling that same invoice reading as their secret sauce.
- What I built
- A working AP demo. Upload an invoice PDF and Azure Document Intelligence pulls out the fields, showing where on the page each one came from. Plain rule-based checks test the math and match it to purchase orders, then an AI agent explains any problems and recommends a decision for a person to make.
- Built with
- Next.js · Azure AI Document Intelligence · Azure AI Foundry Agent Service · Azure SQL · Azure Blob Storage · Azure App Service · GitHub Actions · Claude Code
- Status
- Done (demo)
What was going wrong
The AP team was shopping for a new AP automation product. Their current one was supposed to read invoices and fill in the fields, but it was inaccurate and routed invoices poorly. Nobody was keying in much by hand, yet people spent a lot of time checking what the system had read, because they didn’t trust it. At their volume, that added up. A system you can’t trust isn’t much help.
Every vendor pitching a replacement led with the same thing: getting the data off the invoice. They sold it as the hard, expensive part. I wanted to show that it isn’t.
What I built
A small AP app, deployed to Azure. You upload an invoice PDF and Azure Document Intelligence pulls out the vendor, totals and line items. The screen shows each step as it runs, and draws boxes on the PDF so you can see where every value came from.
Next come ten plain checks with no AI in them: do the lines add up to the total, is a required field missing, is it a duplicate, does it match an open purchase order and what was actually received. After that, an AI agent in Azure AI Foundry reads the results, looks up the invoice, PO and vendor history, explains any problems and recommends a decision. It can also draft a follow-up email to the vendor.
Why AI only does part of it
Not everything needs AI. Code decides whether an invoice passes. The agent explains and recommends, but it can’t turn a failed check into an approval. An invoice only goes through on its own if every check passes and the agent agrees. Everything else goes to a person.
What was hard
Technically, it was my first hands-on time with Azure AI Foundry, which the company hadn’t adopted yet. That was the point: it was a good, low-risk project to learn it on.
The harder part was people. It’s easy to see a nice-looking app and stop there. I wanted IT to see what Foundry could do and that I could lead this kind of work, and I wanted the AP team to see what they’d really be paying for in the RFP.
What changed
I demoed it to IT first, then to a handful of people on the finance side. IT started using Foundry and finding real uses for it, which led to the wholesale order agent and the start of an AI engineering team. The AP team went into vendor demos better informed.
It also showed how quick this kind of build can be. Nobody there was using AI coding tools yet. I built it with Claude Code in under three hours, and it costs less than a cent per invoice to run.
Result
IT started using Azure AI Foundry, which led to an AI agent for wholesale order emails and a new AI engineering team. The AP team went into vendor demos knowing invoice reading is neither secret nor expensive — the demo took under three hours to build and costs less than a cent per invoice.