Operations template · 10 steps

Invoice routing with sign-off

Invoices are read with fixed patterns, routed to the right approver by amount and recorded once signed off.

TRIGGERInvoice emailTRANSFORMRead invoiceCONDITIONReadable?CONDITIONOver 5,000?HUMAN APPROVALFinance directorHUMAN APPROVALAccounts clerkCRM WRITERecord in ledgerENDReady to payDRAFT MESSAGEAsk vendor to res…ENDSent back

Highlighted: the path taken by the “Small invoice” sample after approval.

Trigger

Invoice email from a vendor

Input: Vendor name and invoice text

Output

Ledger entry, or a resend request draft

Every write and send waits for a human approval first.

Permissions it would need
  • Read finance inbox
  • Write ledger entries (after approval)
  • Create email drafts

Sample input

{
  "vendor": "Paper Mill Supplies (Demo)",
  "vendor_email": "billing@papermill-demo.com",
  "body": "Invoice INV-2291. Amount due: 1,240.50. Due on 2026-11-30."
}

Steps in run order

#StepTypeWhat it does
01Invoice emailTriggerWhere a run starts: a form, email, call, schedule or other event.
02Read invoiceTransformReshapes data with a fixed, safe operation. No custom code runs.
03Readable?ConditionSends the record down the true or false branch based on your rules.
04Over 5,000?ConditionSends the record down the true or false branch based on your rules.
05Ask vendor to resendDraft messageWrites a message from a template and the record. It is a draft until a Send step.
06Finance directorHuman approvalPauses the run until a person approves or rejects. Required before sends and writes.
07Accounts clerkHuman approvalPauses the run until a person approves or rejects. Required before sends and writes.
08Sent backEndMarks a finished branch and names the outcome.
09Record in ledgerCRM writeWrites a row to the synthetic CRM, with retries and a dead-letter queue.
10Ready to payEndMarks a finished branch and names the outcome.

Seeded scenarios and what they produce

Synthetic run

Small invoice

Under 5,000, so the accounts clerk approves.

Result: Invoice approved and recorded

Synthetic run

Large invoice

Over 5,000, so it waits for the finance director.

Result: Invoice approved and recorded

Synthetic run

Unreadable invoice

No amount or number found, so a resend request is drafted.

Result: Unreadable invoice, resend request drafted

Guardrails

  • Amounts are read with fixed patterns, never guessed
  • Large invoices need a finance director

Connectors used

Try the live studio