--- name: match-invoice-lines-to-orders-and-receipts description: "An invoice can bill for more than you ordered or got. Your AI checks each line against the order and receipts. Use for: Match invoice lines to orders and receipts." --- # Match invoice lines to orders and receipts An invoice can bill for more than you ordered or got. Your AI checks each line against the order and receipts. ## What you need from the user - The invoice - The purchase order - Receipts for what arrived ## What to give back A line-by-line table of ordered, received and billed amounts, with price and quantity gaps flagged. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me match a supplier invoice to the order and receipts. Invoice lines (line, item, quantity, unit, price): [paste] Purchase order lines: [paste] Receipts (date, item, quantity, unit, status): [paste] Our rules: [for example, price tolerance, partial invoices OK or not] 1. Match each invoice line to its order line and receipts. 2. Compare quantity billed to quantity received, and price billed to price ordered. 3. Keep units and currency clear. Flag units that don't match. 4. List each gap and what to ask the supplier. This isn't approval to pay. I'll review the gaps with finance. ``` ## Rules - BotCurrent rates this job "Reads only". Only read and report. Do not change, send or delete anything. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Draft or cancelled receipts can sneak into the count. Check each receipt's status. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/review-invoice-lines-against-orders-and-receipts-7e05bc9dc166/ Original report: https://raw.githubusercontent.com/aws-samples/sample-multi-agent-procure-to-pay/main/backend/agents/invoice_matching_agent.py BotCurrent has not tested this skill. Check the result before you use it.