Logistics document agents

Document intelligence for shipping paperwork - a mixture-of-experts setup of specialist agents that reads invoices, bills of lading and packing lists far more accurately, and automates the tedious internal processes around them.

Agno
Document intelligence
Multi-agent
Workflows
OCR
FastAPI

Client project for a customs and logistics software company. I improved document intelligence with a multi-agent, mixture-of-experts approach, and built the extraction, processing APIs, records and review screens.

Private repository - described here, code not public

  1. Shipment PDF
    • Invoice
    • Bill of lading
    • Packing list
  2. Agents
    • Classify and split
    • Extract fields
    • Cross-check documents
  3. People
    • Review screen
  4. Next step
    • Internal workflow
    • Email the right people
A coordinating agent fans each document out to a specialist sub-agent.

The project

A customs and logistics software company wanted its document handling to run on agents. A shipment arrives as one long PDF; the system works out which pages are the invoice, the bill of lading and the packing list, splits them, extracts every field into a typed record, checks the documents against each other, and kicks off the next step of the internal workflow - including emailing the right people.

Under the hood it’s agents and workflows working together: a coordinating agent that fans work out to specialist sub-agents per document type, with each step’s state tracked so nothing gets lost. The longer-term architecture aimed at running thousands of these agents side by side on shared servers.

My part

  • Improved document intelligence with a mixture-of-experts approach - a specialist agent for each document type, with a coordinator routing every page to the right expert - which made results much more accurate.
  • Helped automate a range of tedious internal business processes around that paperwork.
  • Built invoice extraction and validation, background processing with status endpoints, and the database models and automatic migrations.
  • Built the review screens where operations staff check extracted fields.
  • Contributed to the pipeline that classifies and splits multi-document shipment PDFs.
Back to Projects