The challenge
Cargolens received around 30,000 carrier invoices a month as PDFs, scans and emails in roughly 40 layouts. A team of twelve keyed them into the ERP by hand, matched them against shipments and chased discrepancies, and the backlog grew every peak season.
What we built
A tool-using agent that runs the whole workflow: it extracts line items, looks up the shipment, checks rates against the contract, flags accessorial charges that don’t match and posts clean invoices straight to the ERP. Anything uncertain goes to a review queue with the agent’s reasoning attached, and every human correction is fed back into the evaluation set.
- Layout-agnostic extraction with field-level confidence
- Contract-rate validation through tools, not guesswork
- Review queue with one-click approve, edit or dispute
- Nightly evals on 2,000 labelled invoices before every model change
The results
91% of invoices now flow through with no human touch. Processing time fell from four minutes to nine seconds per invoice, and the operations team moved from data entry to carrier negotiations.