1. Monitor the inbox. The flow watches the shared customs inbox for new CIPL emails. PDFs and Excel attachments get picked up automatically.
2. Extract line items from the PDF. Item description, declared quantity, declared value, country of origin, HTS code if it's on the document. The AI step handles the layout variation between suppliers.
3. Pull the PO from the reference file. Whether it lives in Excel, a shared drive, or your ERP. The flow grabs the open POs for the supplier and stages them for the match.
4. Match line by line. Same PO, same line, same item. Quantity, unit value, and total each get their own comparison.
5. Flag the mismatches. Quantity over the PO. Value above the declared rate. Missing HTS. Wrong country of origin. Each exception gets a reason code so the broker knows what to fix.
6. Output the validated file. Two views. The clean version of the CIPL for the broker to file against, and the exception report for the team to work before submission.
7. Send it where the team works. Customs Slack channel, customs email distribution, or an internal portal. Anything urgent surfaces before the entry gets submitted.