Agent Workflow Proof

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
InvoiceRight routeWhy
Brightline Packaging Inc. BL-21407AP lead approvalClean: 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-88213Controller approvalClean and matches PO-24031, but $18,500.00 is over $10,000, so the controller approves it.
Brightline Packaging Inc. BL20931Reject: duplicateA 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-1108Hold: verify bank detailsThe 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 55187Return to vendorThe 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-78140Hold: PO reviewBlanket PO-24044 has $1,650.00 left ($6,000.00 minus $4,350.00 billed); this invoice is $2,180.00.
Pinegate Office Supply 55190Hold: possible duplicateSame 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.

Questions

Is a model called when I run this?
No. This version replays a recorded run: the model's replies come from a published log, and only the code steps (record lookup, policy checks, guardrail) run again in your browser. Your decisions stay on this page.
Why can't the agent just pay the clean invoices?
It could be built that way, and that is the risk. A bank-change request and a duplicate past-due notice look like ordinary invoices to a reader in a hurry, human or model. Here the most the pipeline can do is propose a payment-run row after a person approves, and releasing payment stays a separate step.
Which run do I see first?
Always run 1 of the first model in the list, not a hand-picked one. Every other recorded run is in the menu. Pick a DeepSeek V4 Flash run to see the guardrail at work: on two invoices the model's own route was looser than the policy, and the code replaced it before the approver saw it.
Can I use the invoices for my own tests?
Yes. The PDFs, the vendor master, PO register, AP ledger and policy are in the workflow config and the runbook pack. They describe fictional companies; the bank numbers can't exist.