Forecast inventory and route purchase orders with Google Sheets, OpenAI, Telegram, Slack, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 30 nodes and runs on a schedule (every day at 06:00) (plus 2 other triggers). Along the way it connects Slack, Google Sheets, Telegram and Gmail and 1 more.
How it runs
Trigger: On a schedule (every day at 06:00) (plus 2 other triggers).
- Get Sales History (Google Sheets): uses Google Sheets
- Get Inventory Levels (Google Sheets): uses Google Sheets
- Get Vendor Directory (Google Sheets): uses Google Sheets
- Get Existing Purchase Orders (Google Sheets): uses Google Sheets
- Parse Approval Callback (Code): runs custom JavaScript code
- Slack: uses Slack
- Merge: merges the data from its input branches
- Switch: routes items into 2 branches
- Calculate Demand Forecast (Code): runs custom JavaScript code
- Update PO Status - Approved (Google Sheets): update
…plus 17 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Error Trigger
n8n-nodes-base.errorTrigger - Slack
n8n-nodes-base.slack - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Gmail
n8n-nodes-base.gmail - OpenAI
@n8n/n8n-nodes-langchain.openAi - Merge
n8n-nodes-base.merge - Telegram Trigger
n8n-nodes-base.telegramTrigger
From the author
Quick overview This workflow runs daily to forecast SKU demand from Google Sheets data, drafts purchase-order justifications with OpenAI, routes critical and warning items for Telegram review and Slack alerts, logs decisions back to Google Sheets, and sends…