AI in logistics, where it pays off and where it breaks

AI in logistics pays off where people spend their day reading and matching paperwork: document intake, exception triage, demand signals and procurement. It breaks when you point it at routing you already solved, at decisions that need certainty, or at work with no way to score the answer. Measure it by cost per exception, because model accuracy can look excellent while the operation saves nothing.
TL;DR: Four places where AI in logistics pays: document intake, exception triage, the demand signal and procurement. Four places it does not: routing you already solved, anything that needs certainty, anything with no ground truth, and anything that replaces a checked handoff. The highest-return project in most operations is the exception queue. The hard part is the WMS, the ERP, the carrier APIs and the EDI you cannot avoid, and the model is the easy piece.
Start from the operation, then pick the model
Most conversations about AI in logistics start at the wrong end. Someone picks a model and then looks for something to point it at. An operation works the other way round. The problem shows up first, as a stack of unread waybills, pallets that do not match their paperwork, or a carrier call about an order the system cannot find.

Before you fund a project, answer four questions about the process you want to change:
- Is the work mostly reading, matching or routing, with a person confirming rather than thinking?
- Is the cost of a wrong answer a redo, or a safety, stock or compliance problem?
- Can you tell, after the fact, whether the model's answer was right?
- Does a person sign off at a control point that you would be removing?
A good candidate answers yes, a redo, yes and no. Any other combination tells you to stop or redesign the scope before you write code.
Where does AI in logistics and supply chain work pay off?
Across the operations we build for, AI earns its keep in four places. Each is a spot where the input is messy, the work repeats, and a mistake costs a redo rather than a disaster.
- Document intake turns waybills, proofs of delivery, packing lists and invoices into structured fields. Most operations lose more hours here to manual entry than anywhere else.
- Exception triage finds the small share of orders that need a person and tells that person what is wrong, so nobody reads the whole queue.
- The demand signal consolidates orders, sell-through and lead times into a forecast that a buyer or a replenishment rule can act on.
- Procurement drafts supplier requests, compares quotes and chases responses across email and messaging.

Where it breaks
A model pointed at the wrong problem adds cost. Four patterns account for most of the failures.
- Routing you already solved. If your TMS or WMS already produces routes you trust, a new model adds a second source of truth that will drift from the first.
- Anything needing certainty. A model gives you a probability. Where a wrong answer means a safety incident, a stock write-off or a compliance breach, probability is the wrong tool.
- Anything with no ground truth. If you cannot score a prediction after the fact, you cannot improve it or tell when it drifts. No ground truth means no evaluation, and without evaluation you are guessing.
- Anything replacing a checked handoff. The point where a person signs off before goods ship or money pays out is a control. Automate up to that point and stop there.
The NIST AI Risk Management Framework makes the same point in general terms: you have to be able to measure a system before you can manage its risk. In a warehouse, that means ground truth first.
Document intelligence, end to end
Document intake is the AI in logistics project most operations should do first, because the input already exists and the value is easy to measure. A shipment produces the same paperwork every time: waybill, packing list, proof of delivery, invoice. Every field someone types from that paperwork is a field a model can read.

Done properly, document intelligence is a four-stage pipeline.
- Capture. Ingest the PDF, scan, phone photo or EDI message into one place.
- Extract. Pull the fields that matter: order number, SKUs, quantities, addresses, dates, signatures and totals.
- Validate. Check each field against a source of truth. Flag a quantity that disagrees with the order, a total that disagrees with the invoice, or a proof of delivery with no signature.
- Route. Pass clean documents straight through and send the rest to a person with the specific mismatch called out.
The value sits in validation. A model that extracts a field without checking it against the order moves the typo downstream faster. Our automated warehouse fulfillment system uses barcode validation for this reason: the system checks each pack's barcodes against the Shopify order before it ships, so a mismatch stops at the packing station instead of at the customer's dock.
Why the exception queue is the highest-return AI project
Most orders are boring, and boring is good. A small share of orders create most of the work: the shipment that does not match the purchase order, the label a carrier rejected, the invoice that will not reconcile, the customer email saying the pallet arrived short.
The exception queue pays best because the work is already triage. Someone opens a case, reads a pile of documents, works out what is wrong, then fixes it or escalates. A model can do the reading and the diagnosis and leave the fix or the decision to the person. Three design choices make that work:
- Route by diagnosis. "Quantity mismatch on SKU 4, order 1123" is useful. "This document needs review" wastes the reviewer's time.
- Attach the evidence. Hand the reviewer the two documents and the field that disagrees, so they verify instead of re-reading.
- Keep a person on the close. The model proposes, the person confirms, and you log the confirmation. That log becomes your ground truth for the next round of tuning.
Run the model in shadow mode for the first few weeks. It diagnoses every exception, your team works the queue as usual, and you compare the two. You get a labeled evaluation set from real traffic before the model touches a single case, and a clear answer on whether it is ready. Our guide on how to evaluate an AI agent covers how to turn that log into a repeatable test.
The procurement agent we built follows the same pattern. Supplier outreach runs on its own across WhatsApp and email, every exchange is logged inside the CRM, and a person steps in only when a request needs judgment. The log doubles as the audit trail, so anyone can see what the automation did.
How AI in supply chain and logistics connects to the WMS, ERP, carriers and EDI
AI in supply chain and logistics lives inside the systems the operation already runs: the WMS that tracks stock, the ERP that tracks money, the carrier APIs that move freight, and the EDI you cannot avoid however much you would like to. Most projects stall at this integration layer, and the cause is almost always data rather than the model.
- The WMS and ERP stay the source of truth. The model reads from them and writes back only what a person or rule has confirmed. If the model keeps its own copy of inventory, you now have two inventories.
- Carrier APIs disagree with each other. Each carrier has its own fields, its own error codes and its own idea of what "delivered" means, and normalizing them is the work. The warehouse system we shipped unified three carrier and invoicing systems, SmartBill, Sameday and DHL, so a pack and its paperwork stay consistent from pick to proof of delivery.
- EDI is staying. Large retailers and carriers still exchange X12 transaction sets such as the 850 purchase order, 856 ship notice and 810 invoice. You map them, translate them and keep the mapping honest. You do not replace them.
- Shipment events need a shared format. If you exchange tracking events with partners, the GS1 EPCIS standard records what happened, when, where and why, which gives a model clean event history to read.

Treat integration as the project and budget for it first. That is what API integration work consists of: contracts, retries, error handling and a mapping layer that survives when either end changes. If you are weighing a wider build, our logistics software development page describes how we scope the systems around the model.
How to measure AI in logistics with cost per exception
The wrong metric can make a project look good while it does nothing. Model accuracy is that metric. Picture a model that clears its eval suite but still hands every hard case to a person untouched. It saved the operation nothing, because the hard cases were the whole cost.

Measure the operation instead.
- Cost per exception is the total labor cost of resolving exceptions divided by the number of exceptions. It starts high because a person reads every case from scratch, and it should fall once the model does the reading and hands over a diagnosed case. If it does not move, the project failed, whatever the model scored.
- Recall on the exception queue asks, of the cases that needed a person, how many the model caught and routed correctly. A model that "resolves" cases by silently passing bad ones through makes recall worse. Watch this number most closely.
- Time to close runs from exception raised to exception resolved. A shorter close at the same error rate is a real saving.
A worked example with made-up round numbers shows the arithmetic. Say your team handles 400 exceptions a week at 12 minutes each, with a loaded labor rate of $36 an hour. That is 80 hours and $2,880 a week, or $7.20 per exception. If diagnosed cases drop handling to 5 minutes, the same queue costs $1,200, or $3 per exception. Subtract the model and infrastructure bill from the difference and you know whether it pays. Our breakdown of what an AI agent costs to run covers the other side of that sum.
None of these are model metrics. They measure whether the work moved. Report cost per exception to the operator who runs the dock, and within a month they will tell you whether the system is paying for itself.
What to do first
Pull last month's exceptions, tag each one by cause, and time a sample of 30 to get your baseline cost per exception. Pick the top cause that passes the four questions above, run a model against it in shadow mode, and compare. If the numbers hold, wire it into the queue with a person on the close.
If you run a logistics operation and want to start with the exception queue, see how we build logistics systems.
Written by
Tayyab Hanif
Leading client builds since 2019Founder & CEO
Founder & CEO of Robust Devs. Leads delivery and works directly with every client, across AI marketing, healthtech, and fintech builds, and has done since 2019.
More notes from production
Tactical writing for founders building AI products. Browse the archive for more field notes like this one.
Browse all articles
Put these notes to work.
If you are building in this space, schedule your call or get in touch.