Purchase Order Discrepancy Agent
Automatically matches purchase orders, receiving records, and invoices, identifying quantity, price, and terms discrepancies before payment is released.
Three-way matching between purchase orders, receiving documents, and invoices is often done manually by accounts payable staff, a slow process that delays payment approval and lets pricing or quantity errors slip through when volume is high
Discrepancies that are caught require back-and-forth between procurement, receiving, and the vendor to resolve, often after the invoice due date has already passed, risking late payment penalties or lost early-payment discounts
Without systematic tracking, the same vendors often generate repeat discrepancies without ever being held accountable
This agent performs automated three-way matching at line-item level the moment an invoice arrives, resolves minor discrepancies against configured tolerance rules, and routes only genuine exceptions for human review, accelerating the payment cycle while catching costly errors
The agent is triggered when a new invoice arrives via EDI, email, or vendor portal, and it uses OCR and an LLM to extract line-item details, cross-referencing them against the corresponding purchase order and receiving record in the ERP system. It applies configured tolerance rules (e.g., quantity variance under 2%, price variance under $50) to auto-approve minor discrepancies, while flagging material mismatches in price, quantity, or terms for human review with a clear explanation of the discrepancy. Approved invoices are routed to the payment queue automatically, and the agent tracks vendor-level discrepancy patterns over time to support procurement conversations.
Ingest and Extract Invoice Data
- Receive invoice via EDI, email, or vendor portal
- OCR and extract line-item detail (quantity, price, terms)
- Match invoice to corresponding PO number
- Pull matching receiving record from ERP
Perform Three-Way Match
- Compare invoice line items against PO and receiving quantities
- Compare invoice pricing against PO contracted pricing
- Check payment terms against vendor agreement
- Apply configured tolerance thresholds
Resolve or Route Discrepancies
- Auto-approve discrepancies within tolerance
- Generate clear explanation for out-of-tolerance mismatches
- Route exceptions to procurement/AP for review
- Notify vendor of disputed line items where applicable
Track Vendor Patterns and Report
- Log discrepancy type, frequency, and resolution by vendor
- Calculate straight-through processing rate
- Flag vendors with recurring discrepancy patterns
- Publish monthly procurement accuracy report