← all simulations
Cookbook 09 The Python 09_invoice_intake.py

The bill that just arrived

Is it an invoice or a statement? Have we paid it already? Does it match something we actually ordered? The interesting part is that the answer needs your data — your open orders go into the same call as the document. Drag the approval limit to decide how much the business will pay without anyone looking.

The attachment, after OCR

Press Play.

Six checks, one call

Nothing yet.

Your open orders — passed in as state, not as prompt text

“Does this bill match something we ordered?” is not a language question. It is a question about a list you already have in memory, answered in the same round trip as the rest.

The approval limit — a policy number, in code, with a diff

Opened
0
documents
Filed
0
nobody looked
Approval
0
one click each
Held
0
owner or supplier

The morning’s post

DocumentRead asMatchedTotalOutcome
Nothing yet.