Propose and approve inventory reorders with Google Sheets, Gmail and Gemini 4
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Sheets, Gmail and OpenRouter Chat Model.
How it runs
Trigger: On a schedule (every day) (plus 1 other trigger).
- Config (Edit Fields (Set)): sets or maps fields
- Read Products (Google Sheets): uses Google Sheets
- Read Sales (Google Sheets): uses Google Sheets
- Alert Run Failure (Gmail): uses Gmail
- Read Orders (Google Sheets): uses Google Sheets
- Summarize Daily Checks (Code): runs custom JavaScript code
- Email Daily Check (Gmail): uses Gmail
- Reorder Day? (If): checks a condition and branches into true / false
- Forecast Reorders (Code): runs custom JavaScript code
- Input Valid? (If): checks a condition and branches into true / false
…plus 15 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + OpenRouter templates (210) · Other Gmail + OpenRouter templates (135)
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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
Inventory forecasting and purchase order automation for small retailers using Google Sheets: this workflow reads stock and sales, proposes supplier orders and asks you to approve each one by email. It handles empty sheets, invalid rows, repeat weekly runs and…