Templates / Forecast inventory and route purchase orders with Google Sheets, OpenAI, Telegram, Slack, and Gmail

Forecast inventory and route purchase orders with Google Sheets, OpenAI, Telegram, Slack, and Gmail

Ready for 3.0

by Rahul Joshi ✓ · 54 views · created 2026-07-31 · CRM, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Get Sales History (Google Sheets): uses Google Sheets
  2. Get Inventory Levels (Google Sheets): uses Google Sheets
  3. Get Vendor Directory (Google Sheets): uses Google Sheets
  4. Get Existing Purchase Orders (Google Sheets): uses Google Sheets
  5. Parse Approval Callback (Code): runs custom JavaScript code
  6. Slack: uses Slack
  7. Merge: merges the data from its input branches
  8. Switch: routes items into 2 branches
  9. Calculate Demand Forecast (Code): runs custom JavaScript code
  10. Update PO Status - Approved (Google Sheets): update

…plus 17 more steps. See the full node list below.

Services it uses

SlackGoogle SheetsTelegramGmailOpenAI

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.

Nodes used (12)

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…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.