Logisticsapiemailbatch

Customs document preparation

HS codes, invoice and packing list prepared in minutes; only low-confidence lines reach a customs specialist.

In short

Customs document preparation is an agent scenario in the Logistics sector running on the api, email, batch channels. Trigger: An export order is released as ready to ship in the WMS. The Customs Supervisor coordinates 3 specialist agents (Tariff Agent, Document Agent, Broker Agent) across 5 systems (SAP S/4HANA, WMS, Tariff & Regulation Vector Store, Customs Broker Portal, Document Store (S3)); of 9 steps, 3 write to systems and 2 are checks or approvals. Outcome: Document set generated, handed to the customs broker, shipment marked "docs ready". Approval rule: HS confidence < 0.90 or duty difference > 2,000 € → customs specialist approval.

Logistics

Customs document preparation

SUPERVISORAGENTSSYSTEMSCustoms Supervisorplan · route · approveTariff Agentaginies-tulpar-4on-premDocument Agentaginies-sunkar-1on-premBroker Agentaginies-talay-2on-premSAP S/4HANAWMSTariff &Regulation VectorCustoms BrokerPortalDocument Store(S3)
run #41,287,522elapsed 0 mstokens 0est. cost $0.000status —Approval rule: HS confidence < 0.90 or duty difference > 2,000 € → customs specialist approval
Agents in this run
Customs Supervisorsupervisorplans, routes, approves
Tariff Agentaginies-tulpar-4 · on-premDetermines HS codes against the tariff schedule
Document Agentaginies-sunkar-1 · on-premPrepares invoice, packing list and origin documents
Broker Agentaginies-talay-2 · on-premHands documents to the broker and updates the shipment
Audit trail00:00.00
  1. ■completed 

Simulation · derived from real agent definitions · every agent can be built by dialogue with the Autonomous Agent and validated with a test corpus

Trigger

An export order is released as ready to ship in the WMS

Outcome

Document set generated, handed to the customs broker, shipment marked "docs ready"

Agents

SUPERVISOR

Customs Supervisor

Decomposes the objective, delegates to agents, manages approval points, merges the result.

aginies-tulpar-4 · on-prem

Tariff Agent

Determines HS codes against the tariff schedule

search_tariff_scheduleclassify_hs_codeget_duty_rate
aginies-sunkar-1 · on-prem

Document Agent

Prepares invoice, packing list and origin documents

get_order_linesbuild_commercial_invoicebuild_packing_listcheck_origin_rules
aginies-talay-2 · on-prem

Broker Agent

Hands documents to the broker and updates the shipment

submit_to_brokerupdate_shipmentsend_email

Steps

#KindAgentWhat happensSystemmstok
01 ingest Customs Supervisor Export order EX-20931 to Germany released from the WMS, 22 line items — 200 —
02 tool Document Agent Order lines, Incoterm DAP and invoice value of 148,600 € pulled SAP S/4HANA 420 —
03 retrieve Tariff Agent Tariff chapters 84 and 85 plus the 2026 EU explanatory notes retrieved Tariff & Regulation Vector Store 480 720
04 reason Tariff Agent 22 lines classified; 19 high-confidence, 3 flagged (e.g. 8479.89 vs 8428.90) — 1,100 1,450
05 verify Document Agent Origin check: 22/22 lines meet EU–TR customs union rules, A.TR eligible — 520 480
06 approval Customs Supervisor 3 low-confidence HS lines → customs specialist confirmed the codes — 2,600 —
07 write Document Agent Commercial invoice, packing list and A.TR generated (PDF, 9 pages) Document Store (S3) 640 —
08 write Broker Agent Document set submitted to the broker, declaration pre-check reference BR-55120 Customs Broker Portal 560 —
09 write Broker Agent Shipment status "customs docs ready", pickup slot Thu 14:00 confirmed WMS 380 —

Time to move from experimenting with AI to transforming with it.

In a 30-minute discovery session we take your 2–3 priority business problems, show a live demo of a similar scenario, and draft a roadmap that starts with the Value layer.

Book a 30-minute discovery session → dahi@aginies.com
  1. Your 2–3 priority problems
  2. Live demo of a similar scenario
  3. Roadmap starting with value analysis