Invoice triage agent: run it, then approve or reject
Seven vendor invoices go through the pipeline: read the PDF, extract the fields, look up the vendor, PO and ledger, let the model recommend a route, apply the AP policy in code and keep the stricter route. Then the run stops for the AP lead, which is you. Approve or reject each route and download what your decisions recorded.
Dry run: the model's replies come from the recorded log (open it). The code steps run again in your browser. Nothing leaves this page and no model is called.
The seven invoices and the right answers
The answer key was written before the first run. Each invoice tests one thing an AP team runs into; the route is what the written policy requires. Try the demo before you open it.
Show the answer key
| Invoice | Right route | Why |
|---|---|---|
| Brightline Packaging Inc. BL-21407 | AP lead approval | Clean: matches PO-24017 to the cent, bank details match the vendor master, $1,843.60 is under the $10,000 controller threshold. |
| Ostara Industrial Parts Co. OIP-88213 | Controller approval | Clean and matches PO-24031, but $18,500.00 is over $10,000, so the controller approves it. |
| Brightline Packaging Inc. BL20931 | Reject: duplicate | A past-due notice for BL-20931, which was paid on 2026-11-12 (its PO is fully billed). The number is printed without the hyphen, so an exact-match duplicate check misses it. |
| Kestrel Facility Services KFS-1108 | Hold: verify bank details | The invoice asks for payment to a new account (ending 8862) and gives a new phone number. Policy: verify by calling the number on file, (513) 555-0119, not the one on the invoice. |
| Pinegate Office Supply 55187 | Return to vendor | The lines add up to $1,039.94 but the printed subtotal is $1,064.94, so tax and total are inflated by $27.00. The total also exceeds PO-24071, but the math error comes first in the policy. |
| Harlow Freight LLC HF-78140 | Hold: PO review | Blanket PO-24044 has $1,650.00 left ($6,000.00 minus $4,350.00 billed); this invoice is $2,180.00. |
| Pinegate Office Supply 55190 | Hold: possible duplicate | Same vendor, same $612.36 total and same PO as invoice 55120 from two days earlier, under a new number. PO-24060 is already fully billed. |
Prompts, tools and access for this workflow are in the runbook; why the policy lives in code is in the permissions guide.