AI Invoice Gatekeeper — supplier invoices checked before anyone pays
01The project
A company receives supplier invoices by email and someone retypes and checks each one.
This workflow does it: AI reads each PDF into a fixed JSON schema, then rules check it against the purchase orders in PostgreSQL — duplicates, price or quantity above the order, totals that don't add up, unknown supplier, approval limit. Clean invoices go to the ledger; exceptions go to a manager by email with the reasons and Approve / Reject buttons. The AI only reads; code and SQL decide, so every decision is predictable and auditable.
02How it's built
03The result
Tested on 20 synthetic invoices (French and English) with 7 planted problems. Demo project: all companies and invoices are fictional.





