01
The problem
A finance team receiving invoices as email attachments usually keys them in by hand: open the PDF, read the vendor and amount, look up the purchase order, and type it all into the ERP. Consider a team processing 3,000 invoices a month. At a couple of minutes each, that is a standing part-time job that exists only because the systems do not talk to each other.
The failure mode is not just the time. It is the invoices that get posted before anyone checks them against the PO, and the duplicates that slip through because a human was moving fast.
02
How it is built
- 1Webhook trigger starts the run the moment an invoice email hits the AP inbox.
- 2Agent block reads the attachment and extracts vendor, invoice number, line items, and total. This is the one probabilistic step, and it is scoped to reading, not deciding.
- 3Transform block maps the extracted fields to your ERP schema so the values line up with the account structure you already use.
- 4NetSuite or QuickBooks block looks up the matching purchase order so the comparison runs against a real record, not an assumption.
- 5Condition block compares the extracted total to the retrieved PO. Within tolerance, it continues. Outside tolerance, it branches.
- 6Approval block posts the variance to a Slack channel with approve and reject buttons, and waits for a named approver.
- 7NetSuite or QuickBooks block posts the vendor bill only after the check passes or the human approves.
03
What the controller sees
| Step | Before automation | With this template |
|---|---|---|
| Data entry | Manual, per invoice | Extracted and mapped by code |
| PO match | After the fact, if at all | Runs before posting |
| Exceptions | Found in a later review | Routed to Slack in the moment |
| Evidence | Reconstructed at audit | Logged field by field per run |
Nothing posts without a rule, and nothing posts without a trail. The AI step reads the document; the coded blocks decide what happens next, the same way every time.
Want this workflow built and maintained for your finance stack?
Book a demo