This workflow is built from 33 nodes. Here's what each one does:
| # | Node | Type | What it does |
|---|---|---|---|
| 1 | Daily 9AM Trigger | Schedule Trigger | Starts the workflow automatically on a schedule. |
| 2 | CONFIG — ERP API | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 3 | Fetch Purchase Orders — ERP API | HTTP Request | Calls an external API or webhook endpoint. |
| 4 | Normalize Purchase Orders | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 5 | CONFIG — Google Sheets | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 6 | Read Seen PO Numbers | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 7 | Filter New POs Only | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 8 | Log New POs — Status NEW | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 9 | CONFIG — AI Review | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 10 | AI Agent — Review Purchase Order | AI Agent | The AI brain — reasons over the task and calls tools to get it done. |
| 11 | OpenAI Chat Model — PO Review | OpenAI Chat Model | The language model powering the AI agent. |
| 12 | Structured Output Parser — PO Review | Structured Output Parser | Forces the AI to return clean, structured JSON instead of free text. |
| 13 | IF — Needs Approval | IF | Splits the flow into branches based on a condition. |
| 14 | Update Sheet — Status PENDING_APPROVAL | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 15 | Telegram — Send and Wait for Approval | Telegram | Sends you a Telegram message or alert. |
| 16 | IF — Approved? | IF | Splits the flow into branches based on a condition. |
| 17 | Update ERP — Write Approval Decision | HTTP Request | Calls an external API or webhook endpoint. |
| 18 | Update Sheet — Status APPROVED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 19 | Update Sheet — Status REJECTED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 20 | Update Sheet — Status APPROVED (Auto) | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 21 | Merge — Combine Approval Branches | Merge | Combines the outputs of two or more branches back into one flow. |
| 22 | Split PO Lines | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 23 | Update Inventory — Sync Quantities | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 24 | Rebuild PO Items | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 25 | Update Sheet — Status SYNCED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 26 | Read Inventory Levels | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 27 | Flag Low Stock Items | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 28 | IF — Low Stock Found | IF | Splits the flow into branches based on a condition. |
| 29 | Telegram — Low Stock Alert | Telegram | Sends you a Telegram message or alert. |
| 30 | Merge — Combine Sync Branches | Merge | Combines the outputs of two or more branches back into one flow. |
| 31 | Build Run Summary | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 32 | CONFIG — Notifications | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 33 | Telegram — Send Summary | Telegram | Sends you a Telegram message or alert. |