Monitor daily Shopify profit leaks with GPT-4o, Google Sheets and Slack
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on a schedule (every day at 07:00). Along the way it connects OpenAI Chat Model, Slack and Google Sheets.
How it runs
Trigger: On a schedule (every day at 07:00).
- Set Shopify Configurations (Edit Fields (Set)): sets 11 fields: shopifyStoreHandle, apiVersion, paymentFeePercent…
- Prepare Report Window (Code): runs custom JavaScript code
- Post Shopify Orders Page (HTTP Request): calls an HTTP API (POST)
- Process Orders Page (Code): runs custom JavaScript code
- Check More Orders (If): checks a condition and branches into true / false
- Post Shopify Variants Page (HTTP Request): calls an HTTP API (POST)
- Process Variants Page (Code): runs custom JavaScript code
- Check More Variants (If): checks a condition and branches into true / false
- Fetch Meta Ad Spend (HTTP Request): calls an HTTP API
- Compute Profit and Analysis (Code): runs custom JavaScript code
…plus 5 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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 - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow runs every morning to pull yesterday’s orders and product variants from Shopify, calculate profit and margin leak signals, generate a short commentary with OpenAI, post a detailed report to Slack, and append daily profit metrics…