ZenAI
Back to Caseslogistics-global-trade

AI Customs Document Automation for a Freight Forwarder

ZenAI built an AI customs document automation platform for a freight forwarding and customs brokerage company, helping its operations team parse bills of lading, commercial invoices, packing lists, and compliance documents, then cross-check key fields and generate customs entry drafts.

·June 12, 2026·10 min read

Client Background

The client was an international freight forwarding and customs brokerage company serving importers, exporters, NVOCCs, and cross-border supply chain customers.

In daily operations, the team processed a large volume of trade documents, including bills of lading, commercial invoices, packing lists, certificates of origin, customs entry materials, ISF information, and compliance declarations.

These documents came from different countries, suppliers, and carriers. Their formats varied widely.

Some were standard PDFs. Others were converted spreadsheets, scanned files, or images with handwritten notes.

For entry writers and operations teams, document processing speed, accuracy, and compliance directly affected clearance efficiency, customer experience, and cost exposure.

To protect client confidentiality, company identifiers, trade data, supply chain information, customs materials, and system details have been anonymized and sanitized. This case study is based on real enterprise AI delivery experience and presented through a representative freight forwarding and customs clearance scenario.


The Challenge

The client did not lack an operating system.

The real issue was that customs documentation still depended heavily on manual data entry, manual cross-checking, and individual judgment.

In freight forwarding and customs clearance, a small document error can lead to exams, holds, demurrage, penalties, or customer escalations.

Non-Standard Documents Were Hard to Parse Reliably

International trade documents do not follow one fixed format.

Even the same supplier might change the layout of a packing list, commercial invoice, or bill of lading from month to month.

Some files included stamps, blurry scans, handwritten notes, multilingual text, or wide tables.

Traditional template-based OCR struggled with this level of variation and often required staff to re-enter fields manually.

This created risk around invoice numbers, item descriptions, package counts, weights, amounts, and currencies.

Cross-Document Validation Took Too Much Manual Work

Customs declarations require consistency across documents.

For example:

  • Gross weight and package count on the bill of lading should match the packing list
  • Item descriptions, quantities, and values on the commercial invoice should match declaration data
  • HS codes should align with product descriptions
  • Shipper, consignee, vessel, and voyage information should not conflict
  • LCL shipments may include dozens of SKUs that need line-level review

Previously, much of this work depended on entry writers manually comparing documents.

As volume increased, the risk of missing inconsistencies also increased.

Compliance Risks Needed Earlier Detection

Customs work has very low tolerance for errors.

If document data does not match, shipments may trigger customs exams, document requests, cargo holds, penalties, or demurrage and detention charges.

For goods involving FDA, EPA, anti-dumping, countervailing duty, or other special requirements, the risk is even higher.

The client wanted potential compliance issues to be flagged before formal filing, so senior entry writers could review exceptions earlier.

Existing Freight Systems Had Limited Document Intelligence

The client already used a freight ERP or similar operating system to manage shipments, customers, charges, and customs data.

But these systems were built primarily to record workflows, not to understand complex documents, validate data across files, or detect risk.

The client wanted to add AI document intelligence and automated review capabilities without replacing its existing systems.


What ZenAI Built

This project was not about building a simple OCR tool.

The goal was to create an AI document flow and compliance validation system designed for customs operations.

ZenAI designed an AI customs document automation platform using VLM-based document parsing, multi-agent cross-validation, rule-based compliance checks, and freight system API integration.

The system parsed trade documents, compared key fields across files, identified exceptions, and generated customs entry drafts.

It followed a human-in-the-loop model. AI handled initial parsing, validation, and risk flagging, while senior entry writers reviewed key exceptions.


1. VLM-Based Trade Document Parsing

ZenAI built an intelligent document parsing engine for international trade documentation.

The system processed:

  • Bills of lading
  • Commercial invoices
  • Packing lists
  • Certificates of origin
  • Customs entry materials
  • ISF information
  • Compliance declarations
  • Multilingual PDFs
  • Scanned files and handwritten notes

Using OCR and vision-language model techniques, the system understood non-standard layouts and extracted key fields such as shipper, consignee, vessel, voyage, HS code, product description, quantity, gross weight, CBM, unit price, and total amount.

Compared with template-based OCR, the system was better suited for varied layouts, languages, and document formats.


2. Cross-Document Validation Engine

ZenAI configured a validation engine to compare key fields across documents automatically.

The system checked:

  • Whether package count, gross weight, and volume matched between the bill of lading and packing list
  • Whether descriptions, quantities, and SKUs matched between the commercial invoice and packing list
  • Whether invoice amount matched order or contract data
  • Whether HS codes aligned with English product descriptions
  • Whether shipper, consignee, and notify party information was consistent
  • Whether vessel, voyage, origin port, and destination port data conflicted

When a difference was found, the system flagged the field, source document, and reason for review.


3. Compliance Risk Agent

The compliance risk agent identified potential issues before filing.

Based on product descriptions, HS codes, countries, regulatory requirements, and historical rules, the system helped flag risks such as:

  • Anti-dumping or countervailing duty exposure
  • FDA or EPA additional filing requirements
  • HS code and product description mismatch
  • Abnormal value, weight, or package count
  • Sensitive product category risk
  • Missing documents or certificates

The system did not replace licensed customs professionals. It highlighted possible risks so the team could review them before submission.


4. Freight ERP and Customs Interface Integration

ZenAI connected the validated structured data to the client’s existing systems.

Depending on the client’s environment, the platform could integrate with:

  • Freight ERP systems such as CargoWise
  • Internal shipment systems
  • Customs workflow tools
  • Customs EDI / ACE interfaces
  • Finance and charge settlement modules

The system helped generate ISF data, customs entry drafts, and CBP Form 3461 / 7501 draft data, reducing repeated manual entry.


5. Exception Review Workflow

The platform used an exception-based workflow.

Documents with consistent fields and low risk could move forward automatically.

Files with inconsistencies or compliance concerns were routed to senior entry writers for review.

Each exception included:

  • Problem field
  • Source documents
  • Difference explanation
  • Risk level
  • Suggested handling
  • Human approval path

This shifted the team from full manual review to focused exception handling.


6. Private Deployment and Data Security

Trade documents contain customer information, product details, pricing, supplier data, and commercial contract information.

For that reason, the platform was designed around private deployment and permission control.

The architecture supported:

  • Local or private cloud deployment
  • No public cloud processing for trade and customs data
  • File-level access control
  • Auditable operations and exception handling
  • Data isolation across customers and business lines
  • Sensitive field masking and access control

This allowed the client to improve document processing efficiency while protecting trade data and customer information.


How the Platform Worked

The system was designed around the actual document workflow used by freight forwarding and customs teams.

Phase 1: Document Intake

The client uploaded bills of lading, commercial invoices, packing lists, certificates of origin, and compliance documents.

The system supported PDFs, spreadsheets, images, scanned files, and mixed-format document sets.

Phase 2: Field Extraction

OCR and VLM modules extracted parties, transportation details, line items, amounts, weights, package counts, volumes, and HS codes.

The parsed results entered a structured data layer.

Phase 3: Cross-Document Comparison

The validation engine compared key fields across bills of lading, invoices, packing lists, and declaration materials.

The system identified matches, differences, and missing fields.

Phase 4: Compliance Risk Scanning

The compliance agent checked product descriptions, HS codes, regulatory requirements, and historical rules.

High-risk items were flagged for human review.

Phase 5: Entry Draft Generation

The system organized validated data into customs entry drafts or structured data usable by downstream filing systems.

The client could push the results into a freight ERP, customs workflow system, or customs interface.

Phase 6: Human Review and Workflow Routing

Entry writers reviewed exceptions and high-risk items.

After approval, documents moved into formal filing, customer communication, or downstream charge settlement.


Project Snapshot

Key Changes

  • Document processing: Complex import document handling time was reduced from 40–60 minutes to under 2 minutes.
  • Field extraction: Bills of lading, invoices, packing lists, and compliance documents could be parsed into structured fields.
  • Cross-validation: The system compared weights, package counts, values, descriptions, and HS codes automatically.
  • Exception handling: Entry writers shifted from full manual review to focused exception review.
  • System integration: Structured results could be connected to freight ERP or customs filing systems.

Core Technologies Used

ZenAI combined VLM document parsing, multi-agent validation, and freight system integration.

The project involved:

  • OCR and VLM trade document parsing
  • Multilingual document processing
  • Cross-document validation rules engine
  • HS code semantic matching
  • Compliance risk agent
  • CargoWise / freight ERP API integration
  • Customs EDI / ACE integration
  • Human-in-the-loop exception review
  • Private AI deployment
  • Permission control and audit mechanisms

Business Impact

The project helped the client move from highly manual customs document processing to an AI-assisted, exception-driven workflow.

Document Processing Became Much Faster

Before the platform, processing an import shipment with complex document details often took 40 to 60 minutes of manual entry, review, and draft preparation.

After implementation, the workflow from document parsing to customs entry draft generation could be completed in under 2 minutes for typical cases.

This significantly improved productivity for entry writers and operations teams.


Manual Entry Errors Were Reduced

The system automatically extracted key fields from bills of lading, invoices, and packing lists.

This reduced manual entry of invoice numbers, weights, amounts, package counts, and product descriptions.

When differences appeared, the system highlighted the source and reason for review, making human validation faster and more focused.


Compliance Risks Were Flagged Earlier

The system performed cross-document checks and rule-based validation before formal filing.

Potential HS code mismatches, weight differences, value anomalies, or missing documents could be detected earlier.

This helped reduce the risk of document requests, customs exams, cargo holds, and demurrage or detention exposure.


Entry Writers Focused on Judgment, Not Data Entry

Previously, entry writers spent a large portion of their time entering data and comparing documents manually.

With the platform, the team could focus more on exception judgment, compliance handling, customer communication, and complex filing strategy.

This shifted the role from data entry toward expert review.


Existing Systems Became More Capable

The client did not need to replace its freight ERP or customs workflow system.

ZenAI connected AI document parsing and validation into the existing workflow through APIs and structured data interfaces.

This reduced implementation risk while improving automation around the existing operating system.


Why This Project Mattered

Freight forwarding and customs clearance may look like process work, but the business depends on accurate data and strict compliance judgment.

A single shipment may involve documents from multiple countries, suppliers, and carriers. One incorrect field can create delays, penalties, or customer losses.

ZenAI helped the client build more than an OCR tool.

It created an AI document flow and risk validation system for customs operations, bringing document parsing, cross-document comparison, compliance alerting, and entry draft generation into one workflow while keeping entry writers in control of final decisions.


Frequently Asked Questions

Does this system replace entry writers?

No.

The system handles document parsing, field comparison, and risk flagging. Final filing judgment remains with entry writers and compliance professionals.

Can it handle non-standard documents from different countries?

Yes.

The system uses OCR and vision-language models to process multilingual documents, varied layouts, scanned files, and non-standard formats. It is more adaptable than traditional template OCR.

Can it integrate with CargoWise or other freight systems?

Yes.

ZenAI can integrate with CargoWise, internal freight ERPs, customs workflow systems, or customs filing interfaces depending on the client’s environment.

How does AI reduce compliance risk?

The system checks document consistency and applies validation rules before filing. It flags field differences, HS code issues, value or weight mismatches, missing documents, and other potential risks for review.

Can this be deployed privately?

Yes.

For companies handling customer data, trade details, cargo values, and supply chain records, ZenAI can design local or private cloud deployment architectures.


Build an AI Customs Document Automation Platform

If your team is slowed down by non-standard trade documents, manual data entry, cross-document checking, HS code risk, and customs filing pressure, ZenAI can help you build a secure, controllable, production-ready AI customs document automation platform.

Explore more ZenAI case studies, learn more about ZenAI, or contact us through the ZenAI website to discuss your project.