EDI · AI

The Last Mile of AI in Supply Chain Is a Mapping Problem

Illustration of a bridge of data cells being built between a glowing AI model and a warehouse

Every AI demo in supply chain runs on clean data.

A tidy spreadsheet. A well-formed order file. Fields that mean what their names say. Then the demo ends, and someone points the model at a real retailer's 850.

The trouble starts immediately. EDI is a set of agreements wearing a file format.

The standard gives you segments and elements. After that, every trading partner pair negotiates its own dialect. This retailer puts the buyer's item number in a REF segment, a choice somebody made in 2009 and never documented. That one sends quantities in eaches on the 850 and cases on the 856. Ship-to codes in the file match no location in anyone's master data, and everyone in the building knows which dock they mean.

None of this is in the implementation guide. The guide covers the standard. The dialect lives in old mapping specs, email threads, and the memory of whoever survived the last onboarding.

This is the last mile. The model can read the file. Reading was never the hard part.

The hard part is knowing what correct looks like for this partner. When the 850 and the item master disagree, which one wins. How much quantity tolerance this retailer allows before the ASN draws a chargeback. Whether the ship notice goes out when the label prints or when the truck leaves. Those answers are business decisions. They live in the map.

A map is a pile of small decisions written down as transformations. Change this code to that one. Take the date from this segment, in this format. If the pack size is missing, use the eaches and flag it. Every EDI analyst has written thousands of these. The map is where the business rules actually live, long after the meetings that made them are forgotten.

AI changes the economics of that work. It does not erase it.

A model can draft a map from a spec and a sample file in minutes. It can propose the transformations, spot the fields that match nothing, and flag the values that break the pattern of the last thousand files. What took a week of staring takes an afternoon of review.

Review is the key word. The model proposes. A person who knows the partner decides. Put the model in charge of correctness and it will happily map the buyer's item number from the wrong segment for ten thousand orders, fluently and at scale.

That deciding seat is forward deployed work. You sit between the model and the mapping table, inside the operation, learning the dialect from the people who get the chargebacks. You turn business intent into schemas, validations, and prompts, and you stay close enough to catch the model being confidently wrong.

The model is the engine. The map is still the road.

Nobody ships freight on an engine alone.

Working on something like this?

I build EDI and AI automation for supply chain teams. If your analysts are reading documents a machine should read first, we should talk.

Work with me →