Demos / Ops console · Brightline Supply
Invoice exceptions
Work through invoice exceptions with a scripted agent that compares invoice and PO and asks you to approve or query.
What it shows
- A script with three phases (Fetch, Assess, Decide) whose gates check what the agent recorded
- A comparison function that returns line differences, the total variance and whether it is within the contract tolerance
- A review card widget, rendered natively by the element, whose Approve and Query supplier buttons answer the agent
- The
resolve_exceptionpage tool, offered only once the card is shown, changing the queue on the page - A Fetch, Assess, Decide indicator worked out from the run's tool calls, beside the trace of every call
Files
- demos/invoice-exceptions/demo.json
- demos/invoice-exceptions/script/invoice-exceptions-flow.json
- demos/invoice-exceptions/functions/invoice-exceptions-compare.json
- demos/invoice-exceptions/widgets/invoice-exceptions-review.json
- src/demos/invoice-exceptions/index.tsx
- src/demos/invoice-exceptions/pageTools.ts
- src/demos/invoice-exceptions/progress.ts