Invoice processing cut from 11 days to 40 minutes, for a forwarder moving 30,000 shipments a month.

The problem
Every shipment arrived with a stack of PDFs from carriers, customs brokers and warehouses, each in its own layout.
A team of nine spent the week re-keying documents into the finance system. Roughly one invoice in twelve went out with a wrong line item, and month-end close routinely slipped by a week while corrections were chased.
The difficulty was never reading one document. It was that carriers, customs brokers and warehouses each describe the same shipment in their own layout, and an invoice is only right when all of them agree with the booking record. At 30,000 shipments a month, a team re-keying by hand cannot check that agreement on every line, which is how roughly one invoice in twelve went out wrong.
Each wrong invoice then had to be found, disputed and corrected after the fact. That correction loop, more than the typing itself, is what pushed month-end close back by a week.
What we built
Scale: 30,000 shipments a month
We engineered a document-understanding pipeline with a multi-agent layer on top: one agent extracts, one reconciles against the booking record, one drafts the invoice, and a fourth decides whether a human needs to see it.
The finance system stayed exactly as it was. A thin integration was written against the version already in production, and the confidence threshold for human review was tuned with the client over the first six weeks.
Results · 2026
Measured outcomes
Logistics Agentic AI
30,000 shipments a month.
- < 40 minInvoice turnaroundFrom 11 days
- 0.3%Invoice error rateFrom ~8%
- 7 of 9Of the re-keying team moved into client-facing roles
- On timeMonth-end close, every month since launch
Key decisions
- Four agents, one job each
- No rewrite of the finance system
- Humans keep the final say
How it works
The system is a layout-agnostic document-understanding pipeline with a multi-agent orchestration layer above it. Each shipment's documents are ingested as one unit of work. An extraction agent normalises every PDF, whatever its template, into structured fields. A reconciliation agent diffs those fields against the booking record and emits each discrepancy as a typed exception. A drafting agent composes the invoice from the reconciled state, and a routing agent scores the upstream confidence signals and gates the draft: straight-through processing below the review threshold, human-in-the-loop above it.
The integration surface is deliberately thin: one adapter written against the finance system version already in production, with no schema migration and no change to the system of record. The review threshold is a tunable parameter, not a constant. It was calibrated against live traffic with the client over the first six weeks.
The decisions that made it work
- 1
Four agents, one job each
Extraction, reconciliation, drafting and routing are separate agents with defined handoffs, so every decision is traceable.
- 2
No rewrite of the finance system
A thin integration against the existing version delivered the gain without a migration project.
- 3
Humans keep the final say
Final approval was deliberately not automated. A person still clicks send on anything above the agreed confidence threshold.
Why we built it this way
Decomposing the workload into four single-responsibility agents with explicit handoff contracts gives per-stage observability and fault isolation. A defective invoice is attributable to one stage, extraction, reconciliation or drafting, and that stage can be corrected and redeployed without regression risk to the others. A monolithic agent would have collapsed those failure domains into one opaque step.
Final approval stays outside the automation boundary by design. The confidence gate bounds the blast radius of a model error, and accountability for what reaches a customer remains with a named person.
What changed
Invoice turnaround dropped from 11 days to under 40 minutes and the error rate fell from roughly 8% to 0.3%. Seven of the nine people on the re-keying team moved into client-facing roles, and month-end close has landed on time every month since launch.

Engineering that holds up
Tell us what you are building.
Every engagement is led by senior engineers.
Write to us

