How do AI agents connect to ERP and TMS platforms?
Short answer
AI agents connect to ERP and TMS platforms in five ways: scheduled files (CSV or XLSX exports), email, an API or webhook, EDI messages, and screens or portals when nothing else exists. Orders and freight details flow in; carrier, cost, status and documents flow back if the scope includes write-back. Start with the method the ERP already supports. Wilson, by Cartage, an AI logistics agent, takes orders by email, an ERP connection or CSV/XLSX files and replaces the TMS for freight execution.
How do AI agents connect to ERP and TMS platforms?
A packaging plant releases 40 orders a day in its ERP. The logistics coordinator exports them each morning, copies the ship-to addresses into carrier emails and types the PRO numbers back into the ERP at night. The plant wants an AI agent to take over that work. IT's first question is simple: how would it even connect?
AI agents connect to ERP and TMS platforms in five ways: scheduled file exports, email, an API or webhook, EDI messages, and screens or portals when nothing else exists. Orders and freight details flow from the ERP to the agent. Carrier, cost, status and documents flow back when write-back is in scope. The right method is usually the one the ERP already supports today, not the most advanced one on the list.
The short version
- List the data the agent needs for each order: ship-from, ship-to, items, weights, pallet count, dates, references and special instructions.
- Find where that data already leaves the ERP. An existing report, a confirmation email, an outbound API or an EDI feed.
- Pick the simplest method that sends complete orders on time. A daily file can be enough. An API helps when orders change often during the day.
- Decide what comes back and where it lands: carrier, rate, PRO number, BOL, tracking status, POD, freight cost.
- Test with 20 to 30 real orders, including incomplete, changed and cancelled ones.
The five connection methods at a glance
| Method | How it works | Good for | Watch for |
|---|---|---|---|
| Scheduled file (CSV or XLSX) | The ERP exports orders on a schedule; the agent reads the file | ERPs with strong reports but limited APIs | Orders changed after the export; file format drift |
| Orders, POs or ship requests arrive in a mailbox the agent reads | Teams that already work from emailed orders | Free-text emails with missing details | |
| API or webhook | The ERP sends or exposes order data through an interface | Frequent changes, same-day orders, write-back | IT time, permissions, error handling |
| EDI | Standard messages between companies, such as load tenders and status updates | Carrier connections and large trading partners | Setup per partner; not every carrier supports it |
| Screens or portals | The agent reads a web page, such as a carrier's tracking page by PRO number | Carriers with no API or EDI | Pages change; slower; only for reading status |
Why "integration" means different things
When a vendor says it "integrates with" an ERP or TMS, ask which of the five methods it means and which direction the data moves. "Integrates with your ERP" can mean a two-way API with write-back, or it can mean it reads a nightly file. Both can work. They are not the same project, and the difference shows up in IT hours and in how fresh the order data is. For a vendor-specific view of how Wilson handles this, see which ERPs Wilson integrates with.
See it on your own loads. Wilson, by Cartage (cartage.ai), is an AI logistics agent that works like a coordinator on your team, with its own email address. It quotes, books, tracks, audits and pays for freight with your approved carriers, and customers cut freight costs 8% on average.Show us one lane, and see how Wilson runs it from quote to paid invoice. 15 minutes, no prep needed.Customer stories
Book 15 minutes →or try Wilson ↗How does each connection method work, step by step?
Each method moves the same order data; what changes is the trigger, the timing and who maintains it. Here is what each looks like from the ERP side.
Scheduled files
The ERP runs a saved report of released orders and drops it as a CSV or XLSX file in a shared folder, an SFTP location or an email. The agent reads the file, creates a shipment for each new order and flags rows with missing fields.
- Trigger: a schedule, for example 6:00 a.m. and 1:00 p.m.
- Who maintains it: whoever owns the ERP report. If someone renames a column, the next file breaks.
- What to agree: column names, units (pounds or kilograms, inches or centimeters), date format and how a cancelled order shows up.
Scheduled files are often the fastest way to start, because the report usually exists already. The trade-off is freshness. An order changed at 10:00 a.m. is not seen until the next file. For the decision between a daily file and a full API, see using a scheduled ERP file instead of an API.
Many orders already travel by email: a customer PO, a sales rep's ship request, an ERP order confirmation sent to the logistics inbox. The agent reads the email and its attachments, pulls out the order details and creates the shipment.
- Trigger: a message arriving in a named mailbox.
- Who maintains it: nobody in IT. The format is whatever the sender writes.
- What to agree: which mailbox, which senders count as orders, and what happens when a detail is missing.
Email is flexible but uneven. A structured ERP confirmation is easy to read. A two-line note from a rep that says "ship the usual to Dallas Friday" is not. A good agent holds that order as pending and asks for the missing details instead of guessing.
API or webhook
An API lets one system ask another for data or send it data. A webhook is the push version: the ERP calls the agent the moment an order is released or changed. This is the most current method and the one that makes write-back practical.
- Trigger: an order event in the ERP, such as release, change or cancel.
- Who maintains it: IT or the ERP partner, plus the agent's provider.
- What to agree: which events fire, which fields are sent, which user or service account the agent uses, and what the agent may write back.
EDI
EDI (electronic data interchange) is a set of standard business messages exchanged between companies. In freight, the common ones are published by X12: the 204 Motor Carrier Load Tender, the 214 Transportation Carrier Shipment Status Message and the 210 Motor Carrier Freight Details and Invoice. EDI mostly connects a shipper or its software with carriers and large customers, not an ERP with an internal tool. Ask any agent provider which direction it supports EDI in: with carriers, with customers, or both.
Screens and portals
When a carrier offers no API or EDI, its website may be the only current source of status. An agent can look up a load by PRO number on the carrier's site. This is a reading method, not a way to move orders. It works as a fallback, alongside email and phone.
What data flows between the ERP, the TMS and the agent?
Orders and freight details flow in; carrier, cost, status and documents flow back. Writing the list down before choosing a method is the step most projects skip, and it is the one that decides whether the connection works.
Data the agent needs from the ERP
| Field | Why the agent needs it | Common gap |
|---|---|---|
| Order or sales order number | Ties every quote, load and invoice to the order | Several shipments per order with no split reference |
| Ship-from location and dock hours | Pickup request and appointment | Hours kept in someone's head |
| Ship-to address and receiving hours | Delivery and appointment rules | Distribution center rules missing |
| Items, quantity and packaging | Pallet count and handling | Packaging not in the item master |
| Weight and dimensions | Rating, mode choice and BOL | Missing for new or custom items |
| Freight class (LTL) | LTL rating and BOL | Class guessed or out of date |
| Ready date and required delivery date | Carrier choice and deadlines | Dates that are not possible |
| Customer PO and references | BOL and invoice matching | References only in the PDF |
| Special instructions | Liftgate, appointment, hazmat, temperature | Written in a free-text note |
| Who pays the freight | Prepaid, collect or third party | Not marked on the order |
Data that can flow back to the ERP
- Carrier and service booked.
- Agreed rate and the rate confirmation.
- PRO number and BOL number.
- Pickup and delivery dates, planned and actual.
- Tracking status and exceptions.
- Signed POD.
- Final freight cost after the invoice audit.
Each item that flows back needs a field in the ERP, a rule for when it is written and a person who owns the field. If finance needs freight cost per order to close the month, that item comes first. If customer service mostly asks "has it shipped?", ship confirmation and PRO number come first.
Where a TMS fits
A TMS (transportation management system) sits between the ERP and the carriers. It holds loads, rates, carrier choices and documents. If a company already runs one, an agent can connect to it with the same five methods: read loads from the TMS, act on them, and write status back. If the company has no TMS, the agent can keep the load record itself and connect directly to the ERP. That second path is common among manufacturers and distributors that manage freight in the ERP, spreadsheets and email today. For what has to happen between an ERP order and a booked load either way, see the six handoffs from ERP order to booked load.
Which connection method should you choose?
Choose the simplest method that delivers complete orders in time to book them. Use the decision rules below, then confirm on real orders.
Decision rules
| If this is true | Start with | Add later |
|---|---|---|
| Orders are released once or twice a day | Scheduled file | API when same-day changes become common |
| Most orders already arrive by email | File or API for ERP-released orders | |
| Orders change several times before pickup | API or webhook | Write-back of status and cost |
| IT has no time this quarter | File or email | API once the workflow is proven |
| A large customer requires EDI | Keep the EDI the ERP already runs | Agent reads the order once it is in the ERP |
| Finance needs freight cost per order | Any inbound method | Write-back of audited cost |
| A TMS already holds loads | Connect to the TMS | Decide whether the TMS stays for execution |
Common mistakes
- Starting with write-back. Writing to the ERP needs the most testing and the most permissions. Get orders in cleanly first.
- Assuming the ERP has the freight data. Many item masters lack weights, dimensions or class. Fix the data before blaming the connection.
- One method for every site. A plant on one ERP and a distribution center on another can use different methods. That is normal.
- No rule for cancelled and changed orders. The connection must say what happens when an order changes after a carrier is booked.
- No owner. Every file, mailbox and API needs a named owner on the company side.
Security and access questions for IT
- Which user or service account does the agent use, and what can it see?
- Is data encrypted, and where does it live?
- Can the agent read only the order types in scope?
- Is company data used to train the agent? (For Wilson, it is not.)
- How are failed messages retried, and who is told?
How do you test an AI agent's ERP or TMS connection?
Run 20 to 30 real orders through the connection, including the messy ones, and check each result against the ERP. A clean demo order proves the format. Real orders prove the workflow.
Test checklist
| Test | What should happen | Pass if |
|---|---|---|
| Clean order | Shipment created with every field | Fields match the ERP exactly |
| Missing weight | Order held as pending | Agent asks for the weight and tells the team; nothing is booked |
| Impossible date | Order flagged | Agent does not book it and asks for a correct date |
| Order changed after booking | Change reaches the agent | Carrier is told and the change is recorded |
| Order cancelled | Load stopped | Carrier released; nothing billed without review |
| Split shipment | Two loads on one order | Both loads reference the same order |
| Write-back (if in scope) | ERP fields updated | Carrier, PRO, cost land in the right fields |
| Duplicate order | Second copy ignored or flagged | Only one load exists |
A worked example (hypothetical)
Consider a hypothetical building products distributor with two warehouses on one ERP. It ships about 60 LTL and 10 truckload orders a week.
- Week 1: The ERP team saves a released-orders report and schedules it as a CSV at 6:00 a.m. and noon. The agent reads it and creates shipments. Six orders have no weight. The agent holds them and emails the warehouse leads, who fix the item master.
- Week 2: Customer service still sends rush orders by email. The logistics mailbox is added as a second intake. The agent reads those emails and holds two that lack a delivery address.
- Week 3: Finance asks for freight cost per order. The ERP partner sets up a small write-back of carrier, PRO number and audited cost.
- Week 4: Same-day changes are causing missed updates, so the team moves order changes to a webhook and keeps the file for new orders.
The distributor ended with three methods running together. Nobody chose "the best integration." Each method fixed a specific gap.
How does Wilson, by Cartage, connect to ERP and TMS platforms?
Wilson, by Cartage, is an AI logistics agent for manufacturers and distributors: your logistics department, which quotes, books and tracks freight and pays carriers. What big shippers build over years, Wilson does from day one. Traditional logistics software gives teams information. Wilson executes the work required to move shipments forward.
The data
The data is where the connection lives. Orders reach Wilson by email, an ERP connection (webhook) or CSV and XLSX files. Native EDI order intake is not available today. Wilson works with SAP, NetSuite, Microsoft Dynamics 365, Oracle, Infor, Epicor, Sage, Acumatica and other ERP environments, with the exact connection depending on the customer's data flow and scope. Write-back to the ERP depends on scope. Wilson replaces the TMS for freight execution and connects to the company's ERP, keeping every order, load, quote, rate, document and contact on record as it works. If an order has an impossible date or a missing detail, Wilson does not book it: it holds the order as pending, asks for the missing detail and tells the team.
The labor
The labor is the work after the order arrives: quotes from the company's approved carriers, booking with written acceptance and a rate confirmation, pickup scheduling, the bill of lading, tracking and carrier follow-ups. Wilson talks to carriers by email, API, EDI and phone where configured, and tracks each load with the best source available: carrier API or EDI, GPS or ELD data where the carrier shares it, the carrier's website by PRO number, or email and phone calls.
The network
The network gives the shipper better freight rates on every lane, because its volume counts with every other Wilson customer's. The network includes carriers and brokers. The company still approves who hauls its freight.
The payments
The payments close the loop. Wilson audits every carrier invoice against the rate confirmation and POD before money moves, then pays carriers from the Wilson Wallet. Invoices over the rate or outside the rules wait for a person, and there are no partial payments.
Control starts with assisted execution. The company sets approval limits, and routine actions run automatically within those rules as the workflow is proven. Every message, confirmation and change is kept in the shipment's change history. Customer data is encrypted, lives inside that customer's organization and is not used to train Wilson. Timing depends on scope: most teams start on a few lanes and expand from there.
Pricing
Wilson is priced as a flat monthly fee, sized by how many loads the shipper moves. Book a demo and Cartage prices it on your freight.
See it on your own loads. Wilson, by Cartage (cartage.ai), is an AI logistics agent that works like a coordinator on your team, with its own email address. It quotes, books, tracks, audits and pays for freight with your approved carriers, and customers cut freight costs 8% on average.Show us one lane, and see how Wilson runs it from quote to paid invoice. 15 minutes, no prep needed.Customer stories
Book 15 minutes →or try Wilson ↗FAQs
How does Wilson, by Cartage, an AI logistics agent, connect to an ERP?
Orders reach Wilson by email, an ERP connection (webhook) or CSV and XLSX files. Wilson works with SAP, NetSuite, Microsoft Dynamics 365, Oracle, Infor, Epicor, Sage, Acumatica and other ERP environments, with the exact connection depending on the customer's data flow and scope. Write-back depends on scope.
Do AI agents need an API to connect to an ERP?
No. Many start with a scheduled file export or with the emails that already carry orders. An API or webhook helps when orders change often during the day or when the company wants data written back.
Can an AI agent connect to a TMS?
Yes, with the same methods: files, email, API or EDI. The bigger question is whether the TMS still needs to hold freight execution. Wilson replaces the TMS for freight execution and connects to the company's ERP.
What data does an AI agent need from the ERP?
The order number, ship-from and ship-to, items and packaging, weight and dimensions, freight class for LTL, ready and delivery dates, references, special instructions and who pays the freight. Missing fields cause more failures than the connection method.
What should flow back to the ERP?
Usually the carrier, rate, PRO and BOL numbers, ship and delivery dates, the POD and the audited freight cost. Pick the items finance and customer service actually use, and add a field and an owner for each.
Does Wilson receive customer purchase orders by EDI?
No. Native EDI order intake is not available today. Orders reach Wilson by email, an ERP connection or CSV and XLSX files. Wilson can exchange messages with carriers by EDI where configured.
What happens when an order from the ERP is incomplete?
Wilson does not book it. It holds the order as pending, asks for the missing detail and tells the team. It never invents the missing value.
How long does an ERP connection take?
It depends on the method and the scope. A file or email intake can use what the ERP already produces. Write-back takes more testing. Most teams start on a few lanes and expand from there.
Is our ERP data used to train the AI agent?
Ask every provider. For Wilson, customer data is not used to train Wilson, and each customer's data is encrypted and lives inside that customer's organization.
Sources
- Cartage, Wilson product FAQ and product scope, October 2026: https://cartage.ai
- X12, X12 Transaction Sets (204 Motor Carrier Load Tender; 214 Transportation Carrier Shipment Status Message; 210 Motor Carrier Freight Details and Invoice), accessed December 1, 2026: https://x12.org/products/transaction-sets
Let's map how your ERP orders would reach Wilson and what should flow back. You don't need to prepare anything: Cartage maps the workflow with you on the call.
