In a hypothetical shipment, the commercial invoice and packing list agree on the number of cartons. The draft bill of lading shows fewer. The difference could reflect a split shipment, a stale document or a typing error. If the documents are linked to the wrong shipment leg, rechecking the extraction will still leave the operator with the wrong comparison.
A pre-submission customs document check gives the freight desk time to resolve that difference. AI extracts candidate values from the commercial invoice, packing list and bill of lading. Explicit rules flag missing fields, conflicting values and ambiguous matches. An operator reviews the evidence and gets corrections where needed. An authorized person or broker owns the filing decision. Keep the extraction service outside the filing path and route classification decisions to the designated reviewer.
Define the check for one filing workflow
Start with one trade lane, one filing type and the way your team hands documents to the filer. For each field, record its meaning, whether the approved workflow requires it, which evidence can satisfy it, what other values can be compared with it and who resolves exceptions. A check for a shipment-level field needs a different mapping from a check for an invoice line or a package. Record who owns the rules, what reference they came from and the version in effect when the check runs.
As a U.S. example, 19 CFR § 141.86(a) lists information such as merchandise descriptions, quantities, item purchase prices in the purchase currency for goods shipped under a purchase or agreement to purchase, and country of origin. Section 141.86(i) allows information required on the invoice under that subpart to appear on an attachment to the invoice. An invoice field with an empty cell and an invoice packet with missing evidence can therefore be different findings. Let the person responsible for the filing confirm how that distinction applies in your workflow. U.S. Government Publishing Office, 19 CFR § 141.86 (2025 edition)
The World Customs Organization publishes a Data Model with standardized data definitions and electronic messages for cross-border exchange. Use it as a reference when naming or mapping fields, then validate the mapping against the approved requirements for the filing in scope. WCO Data Model
Keep the source and the meaning of every value
Identify the document type and revision first. Link each document to the shipment, leg and subset of goods it covers using known references and line or package identifiers. Some packets contain several invoices or a packing list split across containers. If the linkage is ambiguous, send that issue to review before comparing values. Preserve superseded documents for the audit trail and require an explicit way to identify the accepted revision. Arrival order alone can put an older attachment back into use. The same problem shows up in carrier event processing. A Shipment Event Model for Freight Exception Alerts
For each candidate, retain the document and revision, page, source text, and a location the reviewer can open. Store the normalized value with its unit, party role or other meaning. Keep separate outcomes for a missing value, an unreadable value and competing candidates. A blank amount can otherwise look like zero by the time it reaches a comparison rule. When AI reads a table, preserve the row and column association so the reviewer can see whether a value came from the intended item.
Use typed representations for comparisons. A party record needs a role, and a weight needs a unit, gross or net meaning, and a scope such as package or shipment. Keep monetary amounts paired with currency and retain the original number format. Apply explicit, versioned normalization rules so a reviewer can reconstruct why two source strings appeared equal or different.
Flag conflicts only when the values are comparable
These are illustrative checks. Use the field definitions and evidence approved for your workflow to configure them.
| Field | What the check can surface |
|---|---|
| Consignee | Compare references for the same party role. Use approved aliases where available. An invoice buyer and a bill-of-lading consignee can be recorded as separate roles. Route an unresolved consignee match with both source locations. |
| Quantities and packages | Compare counts at the same level and for the same goods. If the invoice lists pieces and the packing list gives cartons, compare only after an approved conversion or package breakdown establishes the relationship. |
| Weights | Compare gross with gross or net with net for the same coverage. Convert known units before comparing and use a tolerance approved for that comparison. Route a missing unit or unknown weight basis to review. |
| Value and currency | Check currency alongside each amount. Reconcile invoice totals using documented line amounts and applicable charges or discounts as shown on that invoice. Keep invoice arithmetic and any determination of customs value as separate steps. |
| Origin | Flag conflicting stated origins for a matched item. Keep origin separate from dispatch country and port of loading. When the origin evidence is incomplete or disputed, refer it to the responsible reviewer. |
| HS or tariff code | Preserve the code as text so leading zeros survive. Check its format and, where available, membership in the approved tariff reference for the destination and effective date. Flag disagreements for the classification reviewer. |
| Incoterms® rule | Where your workflow captures the sales term, check the rule, named port, place or point, and edition against the agreed record. If one part is missing or differs, show the source wording and send it for review. |
The HS Convention uses six-digit HS codes and permits contracting parties to add tariff subdivisions beyond that level. The length and lookup check therefore need to know which code system the field expects. A lookup can establish that a code exists in the chosen reference. The classification reviewer decides whether it applies to the goods. WCO, HS Convention, Article 3
ICC’s Incoterms® 2020 guidance gives a contract format that includes the chosen rule, the named port, place or point, and the edition. Keeping those parts separately lets a rule detect two documents that spell out the same three-letter term but name different places. ICC, Incoterms® 2020 questions and answers
Put the evidence in the review queue
Give the operator one task per packet and group the findings inside it. Show the rule that fired, the two document excerpts where there is a conflict, the document versions and the comparison after normalization. Put a missing or unreadable mandatory field, an ambiguous shipment link or an unresolved material conflict in a queue that holds the packet back from handoff. Assign each finding to someone who can resolve it. The document desk can request a revised packing list, while tariff classification goes to the designated reviewer.
Return to the hypothetical carton mismatch. The operator can check whether the bill covers only part of the packing list. If a split is confirmed, record which packages belong to the leg and rerun the comparison against that subset. If the bill needs correction, link the accepted revision and rerun the checks against it. Tie sign-off to the document revisions, rule version, reviewer and review time. A replacement document should reopen any sign-off that relied on it. The operator hands off the checked packet through the existing process and the filer controls submission separately.
Test on packets the desk has already handled
Run the check alongside the manual process on one lane first. Save the packet as it looked before filing, including the revisions available at the time. Have a reviewer label the expected field values, genuine exceptions and harmless differences. Include corrected documents, multi-invoice packets, partial loads, repeated item IDs, scans with broken tables and cases where a valid-looking code needed specialist review. Replay these packets after changing the extractor, matching logic or rules. Turn Historical Operations Cases Into an AI Regression Test Set
Measure missed material issues against all material issues in the reviewed sample, unnecessary flags against all flags, and operator time per packet, including follow-up. Sample packets with no flags so you can see what the checks miss. Break results out by document type or supplier layout if a strong overall reading score could hide recurring errors in critical fields. Agree with the freight lead and filer which failures would block rollout and how the desk will handle a backlog before a cutoff. If extraction is unavailable, staff can take the original packet through the manual route.
Sources
- U.S. Government Publishing Office, 19 CFR § 141.86 (2025 edition)
- World Customs Organization, WCO Data Model
- World Customs Organization, International Convention on the Harmonized System, Article 3
- International Chamber of Commerce, Incoterms® 2020 questions and answers
Request a free AI workflow audit
Bring one shipment workflow, the documents your desk checks and an example of an issue that reached the filer. The audit is free. Insonl charges separately for any follow-on work you choose. Request a free AI workflow audit