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

2,364 views · 💬 Lead Nurturing & AI Sales Agents

Description

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 of integrated services, to handle customer support, product recommendations, abandoned cart recovery, inventory management, post-purchase engagement, review monitoring, marketing campaigns, and operational alerts.

Tools & Services Used

Workflow Overview

This workflow is a collection of interconnected sub-workflows, each designed to automate a specific e-commerce process:

1. Customer Support & Escalation

Handles incoming customer messages, attempts to answer with FAQs or order status using an AI Agent, and escalates to a human agent via Slack if necessary. Logs interactions to Notion.

2. Product Inquiry & Recommendation

Processes product inquiries, searches a product catalog, filters/sorts results, uses an AI Agent for selection refinement, and can build a product carousel for user response.

3. Abandoned Cart Recovery

Detects abandoned carts, fetches customer data, uses an AI Agent to strategize recovery (e.g., offer discounts), and sends follow-up communications via email/SMS.

4. Inventory Management (Low Stock Alert)

Periodically checks inventory levels, identifies low-stock items, uses an AI Agent to format reports, and notifies relevant teams via Slack/email, logging to Google Sheets.

5. Post-Purchase Review Request

After a set period post-delivery, an AI Agent drafts and initiates sending a personalized product review request email to the customer.

6. Review Monitoring & Flagging

Listens for new product reviews, uses an AI model for sentiment analysis, alerts a support team for negative reviews via Slack, and logs all reviews.

7. Scheduled Marketing Campaigns

Fetches target audiences, segments them, uses AI Agents to generate tailored email content, sends campaigns, tracks basic metrics, and employs another AI Agent to suggest campaign adjustments.

8. Manual Restock Alert & Logging

Allows triggering a restock notification via webhook, sends an SMS alert, and uses an LLM to log the event.

Prerequisites

Ensure you have active accounts and necessary API keys/credentials for:

How to Use This Template

Step 1: Import the Template

Step 2: Configure Critical Nodes & Credentials

This is the most crucial step. Systematically go through each of the 8 sections outlined in the Sticky Notes within the workflow and configure the relevant nodes:

Step 3: Implement Tool Logic

Step 4: Review AI Agent Prompts & Tool Connections

Initial Test Run

Use Cases

🔗 Nodes Used

Cron, Send Email, Function, Google Sheets, HTTP Request, Slack

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup