This workflow is built from 35 nodes. Here's what each one does:
| # | Node | Type | What it does |
|---|---|---|---|
| 1 | Gmail Trigger: Invoice Email | Gmail Trigger | Starts the workflow when a new email arrives in Gmail. |
| 2 | CONFIG — Policy & Caps | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 3 | Gmail: Download Attachment | Gmail | Sends or reads email through your Gmail account. |
| 4 | Extract from File — Invoice PDF | Extract from File | Extracts text content from uploaded files (PDF, docs). |
| 5 | Code — Normalize Invoice Fields | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 6 | Google Sheets — Log Invoice RECEIVED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 7 | Google Sheets — Read Payables Log | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 8 | Code — Dedupe + Kill-Switch Check | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 9 | IF — Duplicate or Kill-Switch? | IF | Splits the flow into branches based on a condition. |
| 10 | Google Sheets — Read Suppliers | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 11 | Code — Supplier Check | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 12 | IF — Supplier OK? | IF | Splits the flow into branches based on a condition. |
| 13 | Google Sheets — Read Purchase Orders | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 14 | Google Sheets — Read Receiving Records | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 15 | AI Agent — 3-Way Match Verdict | AI Agent | The AI brain — reasons over the task and calls tools to get it done. |
| 16 | OpenAI Chat Model — 3-Way Match | OpenAI Chat Model | The language model powering the AI agent. |
| 17 | Structured Output Parser — Match Verdict | Structured Output Parser | Forces the AI to return clean, structured JSON instead of free text. |
| 18 | Code — Build Match Decision | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 19 | IF — Auto-Approve? | IF | Splits the flow into branches based on a condition. |
| 20 | Merge — Approved Payments | Merge | Combines the outputs of two or more branches back into one flow. |
| 21 | Code — Prepare Payment Batch | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 22 | HTTP Request — Release Payment | HTTP Request | Calls an external API or webhook endpoint. |
| 23 | Code — Verify Settlement | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 24 | Google Sheets — Update Log PAID | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 25 | Code — Build Payment Summary | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 26 | Telegram — Send Summary | Telegram | Sends you a Telegram message or alert. |
| 27 | Code — Flag BLOCKED | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 28 | Google Sheets — Update Log BLOCKED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 29 | Telegram — BLOCKED Alert | Telegram | Sends you a Telegram message or alert. |
| 30 | Code — Set Review Reason | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 31 | Google Sheets — Update Log REVIEW | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 32 | Telegram — Review Request | Telegram | Sends you a Telegram message or alert. |
| 33 | Wait — Human Approval | Wait | Pauses the workflow until a condition or time is met. |
| 34 | IF — Human Approved? | IF | Splits the flow into branches based on a condition. |
| 35 | Google Sheets — Update Log REJECTED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |