Own Weights

AI for customs brokers: drafting entries from documents

AI for customs brokers: a private model pulls fields from invoices, packing lists and bills of lading into a draft entry. A licensed broker decides.

Updated

Part of: AI for customs and logistics

AI for customs brokers works best on one job: reading the commercial invoice, packing list and bill of lading for a shipment and filling a draft entry or declaration, so a licensed broker reviews fields instead of typing them. HS code suggestion can come later as a second step, and the broker still makes the call. Nothing in this setup files anything on its own, and a model only goes live if it beats your current process on a test built from your own shipments.

This guide is for US licensed brokerages and for clearing agents and forwarders in Saudi Arabia and the UAE who file through Fasah or Dubai Trade. Freight operations more broadly are covered in AI for logistics.

Which tasks fit, and who decides

Task Fit for a trained model Who makes the final decision
Header fields from the commercial invoice (seller, buyer, invoice number, date, currency, incoterm, total) Strong. The layouts repeat by shipper. Broker reviews the draft
Line items (description, quantity, unit price, line value, country of origin) Strong, and it saves the most typing Broker reviews the draft
Packing list totals (packages, gross and net weight) checked against the invoice Strong. Totals can be checked by rule. Broker resolves any mismatch
Bill of lading fields (vessel, voyage, container numbers, ports) Strong Broker reviews the draft
HS code suggestion A second step, only after extraction is proven Licensed broker, always
Valuation judgments, related-party questions, rulings requests Not a model task Licensed broker and counsel

The first four rows are extraction: the answer is printed somewhere on the documents, and a test can check it. Classification is a judgment, and the liability sits with the broker. That is why extraction comes first.

What the US rules say about automated tools

This section is information, not legal advice. Check with counsel before you put any automated tool into your entry workflow.

Under 19 CFR 111.28, a licensed broker “must exercise responsible supervision and control” over the customs business it conducts. In January 2026, CBP applied that framework to software directly in ruling HQ H350722. The ruling looked at an unlicensed company offering an OCR tool that pre-filled entry data and an AI tool that suggested tariff subheadings. Three points matter for any brokerage thinking about AI:

  • CBP held that “an unlicensed entity cannot decide what data should appear on an entry,” whether the data is pulled by hand or by an OCR tool.
  • When automated tools are used for customs business, “an individual broker or other licensed person must have a role in specifying what information, like value or classification, is automatically generated.” CBP added that “a tool does not constitute a ‘person’,” so the actual decision must be made by a licensed broker.
  • The company was found to be conducting customs business by “deriving HTSUS subheading suggestions beyond the six-digit level” for merchandise that would be entered. The same ruling also reminded the company that customs business must be conducted within the US customs territory.

In practice that shapes how we set up a US project. Your licensed staff define the field list and the rules for what goes where. The model runs as your tool, in your environment. A broker approves every draft before it is filed. Whether a particular setup satisfies Part 111 is a question for your counsel, and we would rather you ask it before the pilot than after.

The documents themselves are familiar. 19 CFR 142.3 lists the entry documentation: the entry form or its electronic equivalent, evidence of the right to make entry, a commercial invoice, and “a packing list, where appropriate.” The commercial invoice and packing list are what the model reads, along with the bill of lading.

Saudi and UAE filings

In Saudi Arabia, an importer or exporter appoints a customs broker through ZATCA’s customs broker authorization service, which requires “an activated account at Fasah platform” and the “customs broker’s license number.” In Dubai, the WTO’s trade facilitation database lists Dubai Customs and Dubai Trade as where the single window is implemented. The Dubai Trade portal describes “over 700 E-services under a single window.”

The model does not connect to Fasah or Dubai Trade, and it files nothing. It produces a draft that your clearing agent checks and enters through your existing system, whether you work at Jebel Ali, a free zone or an airport. Licensing and data rules differ between Saudi Arabia, mainland UAE and the free zones, so check your obligations with local counsel.

Invoices in more than one language

Your invoices may arrive in several languages, sometimes mixed on one page or scanned at an angle. We make no claim about any language until it has been scored on your own documents. The test set includes your real mix of languages, and the results are reported per language, so a weak language is visible instead of averaged away. The method is in multilingual fine-tuning.

A worked volume example (hypothetical numbers)

Suppose a brokerage files 1,500 entries a month. Each shipment has 15 header fields and an average of 20 invoice lines with 6 fields each. That is 135 fields per entry and 202,500 fields a month.

  • At 99% field accuracy, about 2,025 fields a month need a correction.
  • At 97%, about 6,075 do.

Both numbers are hypothetical. The point is that a percentage hides the workload: your broker’s review time depends on how many fields are wrong and which ones. A wrong line value matters far more than a misspelled street name. The pilot therefore reports errors per field type, sets a hard limit for the fields that cannot be wrong (values, quantities, country of origin), and compares the result with your current process on the same shipments.

The audit trail

Each draft should be traceable from the filed entry back to the source page. For each field, the record should hold:

  1. The source document and the page or line it came from.
  2. The exact model version that produced the value.
  3. The value as extracted, and the value after the broker’s edits.
  4. The broker who approved it, and when.

Because you own the weights, the model version you tested stays fixed until you choose to change it, and every change gets re-scored on the same test set. Keep these records alongside the ones your regulator already requires. More on the design is in AI audit trails.

Where it runs

The model runs in your cloud account, on your own servers, or hosted privately by us, and you own the weights in each case. Shipping documents carry client prices, supplier names and margins, so many brokerages prefer the first two options. For US entries, also weigh the customs-territory point from HQ H350722 when choosing.

What a pilot looks like

  1. Start with a free AI cost audit of how your entries are prepared today: who types what, which tools already run, and what it costs.
  2. Pick one document set and one lane, such as commercial invoices plus packing lists for ocean imports.
  3. Your licensed brokers write the field list and the rules for each field.
  4. Collect past shipments with broker-checked answers, and split them by shipper so the test uses shippers the model never saw.
  5. Score your current process or tool on the held-out set first.
  6. Train a model on your training shipments and score it on the same held-out set.
  7. Go live only if it beats your current process, keep broker sign-off on every draft, and keep sampling its output.

None of our published results are on customs documents. They come from a 77-intent banking test, where our model scored 93.3% accuracy against 87.6% for Claude Opus 5.5, and from a 510-contract test (0.717 against Claude Opus at 0.635). Both are on the benchmark page. Neither is a customs result. We are building a public invoice test, and until it is published the only number that counts is the score on your own shipments. Invoice extraction outside customs is covered in AI invoice processing.

Questions

What can AI do for a customs brokerage?

The useful first job is data entry. A model reads commercial invoices, packing lists and bills of lading and fills a draft entry or declaration with the shipper, consignee, values, quantities, weights and line descriptions. A licensed broker reviews every field before anything is filed. Tariff classification comes later, if at all, as a suggestion the broker accepts or rejects.

Can an AI model classify HS codes for me?

It can suggest codes, but we make no accuracy claim for classification, and the decision stays with the licensed broker. In a January 2026 ruling, CBP said the actual decision on classification and other entry data must be made by a licensed broker. This is information, not legal advice; check with counsel.

Will it read invoices that are not in English?

We do not promise any language in advance. We score the model on your own invoices in each language you receive, next to your current tool, and you see the error rate per language before you decide anything.

Where does the model run?

In your cloud account, on your own servers, or hosted privately by us. You own the weights in every case. For US entries, decide the hosting with counsel, because CBP rules say customs business must be conducted within the US customs territory.