8 min read

AI Agents for Logistics: A Practical Stack for US Importers

Editorial illustration of a laptop with a small assistant icon and connected nodes, beside a person signing a shipping document, with a seaport and cranes at sunset
AI agents do the legwork; a person signs off.

Written for US importers, customs brokers, freight forwarders, and teams building landed-cost or checkout tools.

Short answer: AI agents for logistics are worth using for the slow, repetitive parts of moving goods: chasing missing documents, reading messy invoices, drafting quotes, and checking numbers against a live source. They are not worth trusting with the decisions the law puts on a person, like the final classification on an entry. A practical stack keeps those two jobs apart: the agent does the legwork, a licensed customs broker (or the importer acting for itself) signs off on the code, and a live tariff source supplies the duty.

This is the third post in our AI and logistics series. The first covered where AI helps and fails on HTS classification. The second covered what brokers are automating with customs AI. This one steps back and asks how the pieces fit together when you build an agent around a real import workflow.

What an AI agent is (and is not) in logistics

“Agent” gets used loosely, so it helps to borrow a clean definition. Anthropic’s engineering guide, Building effective agents, separates two kinds of agentic system:

  • Workflows, where language models and tools are orchestrated through predefined code paths.
  • Agents, where the model dynamically directs its own process and tool use.

The same guide recommends finding the simplest solution that works and adding complexity only when you need it, because agentic systems often trade latency and cost for better task performance. That advice fits logistics well. A lot of what gets sold as an “agent” in a freight or customs setting is really a fixed workflow with a model reading text at one step, and for many teams that is the right design. Reach for a free-roaming agent only when the path really can’t be written down in advance.

Whichever you pick, agentic AI in the supply chain comes down to one question: what is the model allowed to do on its own, and what has to wait for a person?

A practical stack for agentic AI in logistics, step by step

Here is a layout that works for an importer, a forwarder, or a broker’s back office. Each layer has one job.

1. Intake: turn messy paperwork into clean facts

Supplier documents rarely arrive tidy. Commercial invoices come as PDFs, packing lists as spreadsheets, and product names as internal nicknames. This is where a language model earns its keep: it reads the document, pulls out the fields, and flags what is missing (no country of origin, no material, no unit value). The output is a structured draft, not a decision. Our post on customs AI for brokers goes deeper on document cleanup.

2. Classification: a person decides

The agent can suggest candidate Harmonized Tariff Schedule (HTS) headings and explain the trade-offs. It cannot make the call. We say this plainly: Tariffs API does not classify products. A licensed customs broker does, or an importer acting on its own account. If you want the rules a classifier has to follow, read our guide to the General Rules of Interpretation. For the AI-specific failure modes, see AI HTS classification.

The law is clear about who owns this step. Under 19 U.S.C. 1484, the importer of record, or an agent it authorizes in writing, must use reasonable care when it completes the entry by filing the declared value, classification, and rate of duty. Software does not take that duty over for you.

3. Duty lookup: ask a live source, not the model’s memory

Once a person confirms the HTS code and the country of origin, the agent can ask for the duty. This is the step where a model’s memory fails most often, because the base rate is only part of the answer. Section 301, Section 232, and other Chapter 99 measures can sit on top, and they change by proclamation and Federal Register notice. An agent that answers from training data will be confidently out of date. An agent that calls a maintained tariff source gets the current stack, with the effective dates.

You have two ways to wire that up:

  • REST. Call /resolve for one code and origin, or the batch endpoint for many lines at once. This suits checkouts, ERPs, and workflows you control end to end.
  • MCP. The Model Context Protocol lets an assistant discover and call the same lookups as tools. Setup for ours is in the MCP integration section of the API docs.

4. Quote and landed cost: the agent does the arithmetic and the wording

With a confirmed code and a live duty stack, the agent can draft the quote, line up the freight, and show the buyer a landed cost. Duty is only one part of that number. Our guide to calculating landed cost for US imports walks through the other pieces, so we won’t repeat it here. What matters for the agent is that every figure in the quote should come from a source it called, not from something it recalled.

5. Filing prep: the broker closes the loop

Entry and security filings still run through CBP’s systems and through people who are allowed to file them. Take the Importer Security Filing (ISF), which applies to cargo arriving by vessel. Under 19 CFR 149.2, the importer or its authorized agent must send the filing elements through a CBP-approved electronic system. The commodity HTSUS number, the country of origin, the manufacturer or supplier, and the ship-to party are due no later than 24 hours before the cargo is laden aboard the vessel at the foreign port. If the information changes, or better information becomes available, the filer has to update the filing before the goods enter a US port.

That is a good test for any agent design. If the HTS number on the filing came from a model’s guess, a person is on the hook for it. So the agent drafts and checks, and the person confirms and files.

Illustration of a logistics pipeline: documents entering a scanner, a laptop, a person with a clipboard at an approval checkpoint, then containers moving toward a ship
A practical stack: the agent reads and drafts, a person approves, then the shipment moves.

AI agents in supply chain tools: how MCP fits in, and why a human stays in the loop

MCP is an open protocol for connecting AI applications to outside tools and data. In its tools specification, a server describes each tool with a name and an input schema, the client lists them with a tools/list request, and the model asks the client to run one with tools/call. A failed call comes back flagged with isError, so the agent can tell a lookup that failed from a lookup that returned nothing.

The specification is also direct about oversight. Tools are model-controlled, meaning the model can discover and invoke them on its own. But it says there SHOULD always be a human in the loop with the ability to deny tool invocations, and that applications SHOULD make clear which tools are exposed and show when they are called. For a logistics team, read that as a design rule: let the agent call read-only lookups freely, and put a confirmation step in front of anything that files, pays, or commits.

Our MCP server exposes five read-only tools: resolve a tariff for an HTS code and origin, resolve in batch, search the published schedule by keyword, fetch a code with its base duties, and list trade agreements. The schedule search is navigation, not classification. It matches your term against official code names and descriptions, and the code you file is still yours and your broker’s to decide. MCP access needs a paid plan; details are in the docs.

Illustration of an assistant chat window connected by a cable to a small data server while a colleague reviews a printed checklist, with a port visible through the window
With MCP, an assistant calls a live data source while a person keeps the final say.

Where the license line sits

If the agent only works inside your own company, on your own entries, you are mostly dealing with reasonable care. Acting for other people is different. Under 19 CFR 111.2, a person generally needs a customs broker license to transact customs business, and an importer doing it solely on its own account is not required to be licensed. And “customs business” under 19 CFR 111.1 is wider than filing. It covers transactions with CBP on entry and admissibility, classification and valuation, and the payment of duties, and it includes preparing documents intended to be filed with CBP, whether or not the preparer signs or files them.

So a freight forwarder or software vendor that builds an agent which prepares entry documents for clients should talk to a licensed broker before launch, not after. And when you do want an official answer on a product, CBP can issue written rulings on prospective transactions under 19 CFR Part 177, and its CROSS database of past rulings is a useful place to check how similar goods were treated.

Checklist before you ship an agentic AI supply chain workflow

  1. Write down what the agent may do alone. Reading documents and calling read-only lookups are usually fine. Filing, paying, and final classification are not.
  2. Keep classification and duty lookup as separate steps. A person confirms the code, then the agent looks up the duty.
  3. Use a live tariff source for every rate and measure. Don’t let the model quote from memory.
  4. Log the trail. Save the document the agent read, the code a person confirmed, and the duty response, all with the shipment file.
  5. Add a human confirmation before anything is submitted. Treat it as a hard stop, not a suggestion.
  6. Re-check when measures move. Chapter 99 layers can change without the base heading changing.

Try it on a code you already have

If you have a confirmed HTS code and a country of origin, you can see the live duty stack in the free tariff calculator or browse the HTS index. Developers can go straight to the API docs and connect an agent over REST or MCP.

This article is general information, not legal or customs advice. For a binding answer on a specific product or filing, talk to a licensed customs broker or request a ruling from CBP.

Explore the data

Related news