- Shipment PDF
- Invoice
- Bill of lading
- Packing list
- Agents
- Classify and split
- Extract fields
- Cross-check documents
- People
- Review screen
- Next step
- Internal workflow
- Email the right people
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.