Send predictive Shopify low-stock alerts with Google Sheets, Slack, and Gmail
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every hour) (plus 1 other trigger). Along the way it connects Shopify, Google Sheets, Slack and Gmail.
How it runs
Trigger: On a schedule (every hour) (plus 1 other trigger).
- Set Inventory Settings (Edit Fields (Set)): sets 4 fields: daysToCalculateVelocity, recipientMail, googleSheetUrl…
- Post Error to Slack (Slack): uses Slack
- Read Inventory Logs from Sheets (Google Sheets): uses Google Sheets
- Fetch Shopify Orders (Shopify): get many
- Fetch Shopify Inventory (Shopify): get many (product)
- Calculate Inventory Velocity (Code): runs custom JavaScript code
- Append Alert to Sheets (Google Sheets): append
- Post Inventory Alert to Slack (Slack): uses Slack
- Build Email Content (Code): runs custom JavaScript code
- Send Stock Alert Email (Gmail): uses Gmail
Services it uses
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 (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Shopify
n8n-nodes-base.shopify - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow runs daily to calculate Shopify product sales velocity, predict days until stockout, and alert on low inventory. It logs alerted variant IDs to Google Sheets to avoid duplicate notifications, then sends a Slack summary and a…