Automate inventory management with Google Sheets & Gmail
Ready for 3.0Ready 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-12-01.
What this workflow does
This workflow has 11 nodes and runs on a schedule (every day). Along the way it connects Gmail and Google Sheets.
How it runs
Trigger: On a schedule (every day).
- Get Low Stock Product (Google Sheets): uses Google Sheets
- Order Handling (Code): runs custom JavaScript code
- Generate Email & PO (Code): runs custom JavaScript code
- Switch: routes items into 2 branches
- Send Order to Suplier (Gmail): uses Gmail
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Get Purchase Order (Google Sheets): uses Google Sheets
- Check Record Exists Or Not (If): checks a condition and branches into true / false
- Store a Purchase Order (Google Sheets): append
Services it uses
Other Google Sheets + Gmail templates (2,102)
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.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Gmail
n8n-nodes-base.gmail - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - No Operation, do nothing
n8n-nodes-base.noOp - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if
From the author
✅ What problem does this workflow solve? Managing inventory manually requires constant monitoring, manual purchase order creation, and back-and-forth communication with suppliers. This workflow automates the entire inventory replenishment cycle — from…