Case Study7 min

Intelligent document processing in logistics: same-day, 98% accuracy

Logistics runs on paper that isn't paper anymore but behaves exactly like it. A single shipment drags a folder of documents behind it — bills of lading, customs declarations, commercial invoices, proofs of delivery — arriving as PDFs, scans, and photos, from carriers, brokers, and customers who each format things their own way. Every one of those documents has to be read, the numbers pulled out, checked against what the system already believes, and reconciled when they disagree. Multiply by every shipment, every day.

The old way to keep up is a room full of people keying fields off screens. It's slow, it's expensive, and it's exactly where a wrong digit turns into a delayed release, a misdeclared value, or an invoice paid against the wrong amount. So teams trade speed for care, documents pile up, and "we'll process it tomorrow" becomes the operating tempo.

0%
extraction accuracy, with documents processed the same day they arrive

Same-day processing at 98% accuracy is the target this flow hit — and the two numbers only matter together. Fast and wrong is a compliance problem. Accurate but three days late is a demurrage problem. The point is to get both, and the way you get both is not by trusting a model blindly. It's by letting the model handle what it's sure about and routing the rest to a human before it does damage.

Why the documents are the hard part

The instinct is to treat document processing as a data-entry problem you can throw OCR at. It isn't, and the reason is that logistics documents are adversarial by nature. A bill of lading and a commercial invoice for the same shipment should agree — but they arrive from different parties, in different layouts, and they often don't agree, and the disagreement is the entire point of checking them.

So the work isn't just extraction. It's extraction, then validation, then reconciliation — and each stage has its own failure mode. Extract a weight wrong and everything downstream is poisoned. Validate against the wrong record and you pass an error through. Reconcile a genuine mismatch by "just picking one" and you've hidden a problem that will surface as a chargeback later. A tool that only does the first step and calls it done leaves the hard 40% for a human anyway, with no help.

The flow we deployed

We built a four-stage flow that runs on every document as it arrives. The agent moves through extraction, validation, and reconciliation on its own — and instead of stopping at every document to ask a human, it only pulls a person in when its own confidence says it should.

Interactive · the flow

Click a step. The agent runs all of them; a human confirms the last call.

Extract

The agent reads each document — BOL, customs declaration, commercial invoice, proof of delivery — in whatever format it arrives, and pulls the fields into structured data. Each extracted value carries a confidence score, not just a value.

The stage that makes this work is the last one, and specifically the word exceptions. A human isn't confirming every document — that would put you right back at the room full of people keying fields. A human is confirming only the documents the agent flagged as uncertain or contradictory. On a clean shipment folder, no one gets interrupted. On a messy one, the exact mismatch is on screen with both sources, and the operator resolves the one thing that's actually wrong.

The dial that runs the whole thing: confidence routing

Everything above hinges on a single tunable decision: how confident does an extraction have to be before it clears without a human? Set the bar too low and errors slip through. Set it too high and you're routing clean documents to people for no reason and losing the speed. The right threshold is the one that catches the genuine problems while letting the routine volume flow.

Interactive · confidence threshold

Set the bar the agent must clear to act on its own. Below it, the case goes to a human. This one dial is how you trade speed for control.

32% auto-actioned68% to human

Conservative: a human sees almost everything borderline. Right for high-stakes, regulated flows.

Slide it and watch the trade-off directly. As you raise the confidence bar, fewer documents auto-clear and more go to a human — safer, slower. Lower it and more clears automatically — faster, with more riding on the agent. There's no universal right answer; there's the right answer for a given document type and a given tolerance for risk. A customs declaration might sit at a stricter threshold than an internal proof of delivery. The threshold is yours to set, and to move as trust builds.

Why the audit trail is the real product

In logistics, being right isn't enough — you have to be able to show you were right. Customs disputes a declared value. A customer contests an invoice. A carrier claims a delivery never happened. In every one of these, the question is the same: what did the document say, what did we extract, and who decided?

That's why every extraction, every validation result, every reconciliation, and every human resolution is logged against the source document. When a dispute lands, the answer isn't someone reconstructing what probably happened from memory — it's a clean chain from the original scan to the final decision, with the operator's call and its rationale attached. This is what makes an automated document pipeline something a compliance and finance team will actually stand behind, instead of a speed win they quietly don't trust.

A fully autonomous pipeline with no human and no record is fast right up until the first dispute it can't explain. An agent that clears the easy 90%, routes the hard 10% to a named human, and logs every decision is the version that survives an audit.

Four documents, one reconciliation problem

It helps to be concrete about the documents, because the value isn't in reading any one of them — it's in reading them against each other. A bill of lading says what a carrier accepted. A commercial invoice says what a seller charged. A customs declaration says what was declared to the authorities. A proof of delivery says what actually showed up. On a clean shipment these four agree, and the agent clears the whole folder without a person.

The interesting shipments are the ones where they don't. The BOL weight doesn't match the invoice. The declared value undershoots what the invoice shows. The POD lists a short delivery. Each of those is a real financial or compliance exposure hiding in a stack of PDFs, and the manual process catches them only when someone happens to notice — which, under a backlog, is often too late to do anything but write it off. The reconciliation stage exists to make sure those mismatches are caught every time, surfaced as a specific flagged question with both documents on screen, and put in front of a human while there's still time to act. Same-day matters here for exactly this reason: a discrepancy found today can be fixed; the same discrepancy found next week is a chargeback.

Where this fits in your operation

This flow is built around shipping documents, but the shape generalizes across logistics operations: a flood of semi-structured documents, a hard accuracy requirement, discrepancies that matter, and an audit trail that has to hold up. Freight billing, customs clearance, POD reconciliation, exception-PO handling — same problem, same design. Extract with confidence scores, validate and reconcile, auto-clear what's certain, route the rest to a human, and log everything.

The same mechanism runs in verticals that look nothing like freight — the SAP order desk is document intake and a human check wearing different clothes. What carries over is never the document type. It's the discipline of letting confidence decide who handles what, and keeping a person accountable for the calls that need one.

If your document backlog grows faster than your team can key it, and your only levers today are "hire more" or "go slower to stay accurate," confidence routing is the third one. Put one real document flow — your actual BOLs, invoices, and declarations — in front of us and we'll map it, with an honest go / no-go at the end.

See document processing on your paperwork.

Bring a stack of your real documents. We'll show extraction, confidence routing, and the audit trail live.