Templates / Shopify multi-module automation with GPT-4o, Langchain agents & integrations

Shopify multi-module automation with GPT-4o, Langchain agents & integrations

Needs changes

by Sam Yassine ✓ · 2,581 views · created 2025-05-28 · Lead Nurturing, AI Chatbot

Needs changes. This template uses 3 thing(s) that n8n 3.0 removes: Function (legacy), AI Agent v1 (old agent modes), Cron. 3 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Preprocess Input for Agent (Function): runs custom JavaScript (legacy Function node)
  2. Get FAQs Data (Google Sheets): uses Google Sheets
  3. Summarize Request & Get Filters (Function): runs custom JavaScript (legacy Function node)
  4. Wait: pauses before continuing
  5. Fetch Inventory (Shopify): uses Shopify
  6. Wait: pauses before continuing
  7. Send SMS Alert (Restock) (Twilio): uses Twilio
  8. OpenAI: uses OpenAI
  9. Fetch Target Audience API (HTTP Request): calls an HTTP API
  10. 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

Google SheetsSlackNotionOpenAI Chat ModelShopifyTwilioOpenAI

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.0Replace 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)

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…

Excerpt from Sam Yassine's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.