Shopify multi-module automation with GPT-4o, Langchain agents & integrations
Needs changesWhat this workflow does
This AI workflow has 78 nodes and runs when an HTTP GET request hits its webhook URL (plus 7 other triggers). Along the way it connects Google Sheets, Slack, Notion and OpenAI Chat Model and 3 more.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 7 other triggers).
- Preprocess Input for Agent (Function): runs custom JavaScript (legacy Function node)
- Get FAQs Data (Google Sheets): uses Google Sheets
- Summarize Request & Get Filters (Function): runs custom JavaScript (legacy Function node)
- Wait: pauses before continuing
- Fetch Inventory (Shopify): uses Shopify
- Wait: pauses before continuing
- Send SMS Alert (Restock) (Twilio): uses Twilio
- OpenAI: uses OpenAI
- Fetch Target Audience API (HTTP Request): calls an HTTP API
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (SearchFAQs, LookupOrderStatus)
…plus 43 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
3 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- Function (legacy) in Preprocess Input for Agent, Log Interaction, Summarize Request & Get Filters…: replace with Code node, mode 'Run Once for All Items'.
- AI Agent v1 (old agent modes) in AI Agent (v1.9), AI Agent1 (Product Selection Refinement) (v1.9), AI Agent2 (Cart Recovery) (v1.9)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Cron in Hourly Check, Campaign Schedule (e.g., Daily at 9 AM): replace with Schedule Trigger.
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Preprocess Input for Agent, Log Interaction, Summarize Request & Get Filters, Sort by Rating, Build Product Carousel, Log Product Suggestion, Analyze Cart & Customer Data, Segment Audience Logic, Prepare Campaign Email, Adjust Campaign (Implement Suggestions) | Code node, mode 'Run Once for All Items' |
| AI Agent v1 (old agent modes) AI Agent (v1.9), AI Agent1 (Product Selection Refinement) (v1.9), AI Agent2 (Cart Recovery) (v1.9), AI Agent3 (Low Stock Reporting) (v1.9), AI Agent4 (Review Request Email) (v1.9), AI Agent5 (Campaign Content Generation) (v1.9), AI Agent6 (Campaign Adjustment) (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| Cron Hourly Check, Campaign Schedule (e.g., Daily at 9 AM) | Schedule Trigger |
Nodes used (18)
- Webhook
n8n-nodes-base.webhook - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Function
n8n-nodes-base.function - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Notion
n8n-nodes-base.notion - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Shopify Trigger
n8n-nodes-base.shopifyTrigger - Wait
n8n-nodes-base.wait - Shopify
n8n-nodes-base.shopify - Twilio
n8n-nodes-base.twilio - Cron
n8n-nodes-base.cron - Send Email
n8n-nodes-base.emailSend - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
This n8n workflow orchestrates a powerful suite of AI Agents and automations to manage and optimize various aspects of an e-commerce operation, particularly for platforms like Shopify. It leverages Langchain AI Agents powered by OpenAI, along with a variety…