Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on a schedule (every 5 hours). Along the way it connects Shopify, OpenAI Chat Model, Google Sheets and Slack and 1 more.
How it runs
Trigger: On a schedule (every 5 hours).
- Fetch Products (Shopify): get many (product)
- Prepare Product data (Edit Fields (Set)): sets 8 fields: varient_id, product_id, sku…
- Process each product (Loop Over Items (Split in Batches)): loops over the items in batches
- Check low stock (If): checks a condition and branches into true / false
- Genrate Alert Message (Basic LLM Chain): sends a prompt to an LLM, with model: AI text genrator
- Formate Alert Message (Code): runs custom JavaScript code
- Check existing records (Google Sheets): uses Google Sheets
- Set stock priority (Switch): routes items into 3 branches
- New or existing records?? (If): checks a condition and branches into true / false
- High Priority Alert (Edit Fields (Set)): sets 4 fields: priority, product_name, sku…
…plus 6 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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Shopify
n8n-nodes-base.shopify - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
(Retail) Supplier Restock Request Trigger This workflow automatically monitors your Shopify inventory, detects low-stock products, generates smart alert messages, logs records in Google Sheets and sends priority-based notifications to Slack. This workflow…