Back to Integrations
integrationWebhook node
integrationShopify node

Webhook and Shopify integration

Save yourself the work of writing custom integrations for Webhook and Shopify and use n8n instead. Build adaptable and scalable Development, Core Nodes, and Sales workflows that work with your technology stack. All within a building experience you will love.

How to connect Webhook and Shopify

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Webhook and Shopify integration: Create a new workflow and add the first step

Step 2: Add and configure Webhook and Shopify nodes

You can find Webhook and Shopify in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Webhook and Shopify nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Webhook and Shopify integration: Add and configure Webhook and Shopify nodes

Step 3: Connect Webhook and Shopify

A connection establishes a link between Webhook and Shopify (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Webhook and Shopify integration: Connect Webhook and Shopify

Step 4: Customize and extend your Webhook and Shopify integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Webhook and Shopify with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Webhook and Shopify integration: Customize and extend your Webhook and Shopify integration

Step 5: Test and activate your Webhook and Shopify workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Webhook to Shopify or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Webhook and Shopify integration: Test and activate your Webhook and Shopify workflow

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

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
n8n:** Core automation and orchestration platform.
Langchain AI Agents:** For intelligent decision-making, task execution, and natural language processing across multiple modules.
OpenAI (e.g., GPT-4o Mini):** Powers the AI Agents and direct LLM calls for tasks like sentiment analysis and content generation.
Shopify (Conceptual - requires specific API/Webhook setup):** For triggers (abandoned cart, order delivered) and actions (fetching products/inventory, creating discounts).
Google Sheets:** Used as a data store for FAQs, logging low stock, review databases, and campaign outcomes.
Slack:** For internal team notifications (escalations, low stock, negative reviews).
Twilio (or similar SMS service):** For sending SMS alerts (cart recovery, restock notifications).
Email (Generic SMTP/API):** For sending various emails (AI responses, recovery emails, review requests, campaign emails).
Notion:** For logging customer interactions.
HTTP Request Nodes:** For generic API interactions (fetching customer info, product search, CRM, campaign tracking).
Webhook Nodes:** For receiving external triggers (incoming messages, product inquiries, review submissions, restock signals).
Cron Nodes:** For scheduled tasks (hourly inventory checks, daily campaigns).

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:

OpenAI
Shopify (or your e-commerce platform API)
Google Cloud (for Google Sheets API)
Slack (Bot Token)
Twilio (Account SID, Auth Token, From Number)
Your Email Sending Service (SMTP details or API key)
Notion (Integration Token)
Any other external APIs used (e.g., CRM, Product Search, Customer Info, Campaign Tracking)

How to Use This Template

Step 1: Import the Template
Open your n8n instance.
Go to “Workflows” > “Create Workflow”.
Click the three dots (…) > “Import from File”.
Upload the downloaded JSON file of this workflow.

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:

SECTION 1 (Customer Support):**
Get FAQs Data (Google Sheets): Set sheetId to YOUR_SHEET_ID_HERE and configure Google API credentials.
Lookup Order API (HTTP Request): Set url to YOUR_ORDER_LOOKUP_API_ENDPOINT_HERE.
Notify Human Agent (Slack): Configure Slack API credentials and channel.
Send AI Response to Customer (HTTP Request): Set url to YOUR_CUSTOMER_RESPONSE_API_ENDPOINT_HERE.
Store to Notion (Notion): Set pageId (Database ID) to YOUR_NOTION_DATABASE_URL_OR_ID_HERE and Notion API credentials.
SECTION 2 (Product Inquiry):**
Search Products API (HTTP Request): Set url to YOUR_PRODUCT_SEARCH_API_ENDPOINT_HERE.
Build Product Carousel (Function): Update YOUR_DEFAULT_PRODUCT_IMAGE_URL_HERE and YOUR_FALLBACK_PRODUCT_URL_HERE.
Respond to User with Carousel (HTTP Request): Set url for sending carousel data.
SECTION 3 (Abandoned Cart):**
Detect Abandoned Cart (Shopify Trigger): Configure Shopify credentials and ensure the correct trigger event.
Fetch Customer Info (HTTP Request): Set url to YOUR_CUSTOMER_INFO_API_ENDPOINT_HERE.
Create Discount (if applicable) (Shopify): Configure Shopify credentials and review discount creation parameters.
Send Recovery Email (HTTP Request/Email Send): Set email API endpoint or SMTP credentials.
Send SMS Reminder (Twilio): Configure Twilio credentials and from number (YOUR_TWILIO_PHONE_NUMBER_HERE).
SECTION 4 (Low Stock Alerts):**
Fetch Inventory (Shopify): Configure Shopify credentials.
Notify Slack (Low Stock) (Slack): Configure Slack API credentials and channel.
Generate Email Report (Low Stock) (Email Send): Configure SMTP/email credentials and to address.
Export to Sheets (Low Stock Log) (Google Sheets): Set sheetId to YOUR_INVENTORY_LOG_SHEET_ID_HERE and Google API credentials.
SECTION 5 (Review Request):**
Order Delivered Trigger (Shopify Trigger): Configure Shopify credentials.
Fetch Customer Data (for Review) (HTTP Request): Set url to YOUR_CUSTOMER_INFO_API_ENDPOINT_HERE.
DraftReviewRequestEmail (Tool): Update YOUR_PRODUCT_PAGE_URL_BASE_HERE and YOUR_WEBSITE_URL_HERE.
Send Review Request Email (Email Send): Configure SMTP/email credentials.
SECTION 6 (Review Monitoring):**
OpenAI node (currently Assistant Create): IMPORTANT: For sentiment analysis, change this node type to @n8n/n8n-nodes-langchain.lmChatOpenAi. Then configure its prompt for sentiment analysis (e.g., System: "Analyze sentiment. Respond with positive, negative, or neutral." User: "Review: {{ $('Listen for Review Webhook').first().json.body.review_text }}"). Set OpenAI credentials.
Notify Support Team (Negative Review) (Slack): Configure Slack API credentials and channel.
Add Review to Database (Google Sheets): Set sheetId to YOUR_REVIEWS_DATABASE_SHEET_ID_HERE and Google API credentials.
SECTION 7 (Marketing Campaigns):**
Fetch Target Audience API (HTTP Request): Set url to YOUR_CRM_API_FOR_AUDIENCE_HERE.
GenerateCampaignEmailVariant (Tool): Update YOUR_CAMPAIGN_LANDING_PAGE_HERE.
Send Campaign Email (Email Send): Configure SMTP/email credentials.
Track Campaign Metrics API (HTTP Request): Set url for YOUR_CAMPAIGN_TRACKING_API_ENDPOINT_HERE.
Log Campaign Outcome & Adjustments (Google Sheets): Set sheetId to YOUR_CAMPAIGN_LOG_SHEET_ID_HERE and Google API credentials.
SECTION 8 (Manual Restock):**
Send SMS Alert (Restock) (Twilio): Configure Twilio credentials, from number (YOUR_TWILIO_PHONE_NUMBER_HERE), and to (WAREHOUSE_MANAGER_PHONE_NUMBER_HERE).
OpenAI Chat Model (for Basic LLM Chain): Configure OpenAI credentials.
Send restock Request Email1 (Email Send): Configure SMTP/email credentials and to address.

Step 3: Implement Tool Logic
Go into each @n8n/n8n-nodes-langchain.toolCode node (e.g., SearchFAQs, RefineProductSelection, DetermineDiscount, etc.).
The current JavaScript is placeholder. You MUST replace this with actual JavaScript logic that performs the intended action for each tool, often by making API calls or processing data based on the agent's input.

Step 4: Review AI Agent Prompts & Tool Connections
Carefully review the systemMessage for each AI Agent node to ensure it accurately reflects its role and how it should use its tools.
CRITICAL:** Verify the index for tools connected to each AI Agent. Each tool connected to a single agent must have a unique, sequential index (0, 1, 2, ...).
AI Agent (ID cd71629d-... in your JSON): SearchFAQs tool should be index: 0, LookupOrderStatus tool should be index: 1. (Please double-check and correct the connection indices in your actual workflow file if they are still both pointing to index 0).
AI Agent6 (ID 4c24879b-... in your JSON): AnalyzeCampaignPerformance tool should be index: 0, SuggestCampaignAdjustments tool should be index: 1. (Please double-check and correct the connection indices in your actual workflow file if they are still both pointing to index 0).

Initial Test Run
Disable most of the workflow sections initially.
Focus on one section at a time (e.g., Section 1: Customer Support).
Manually trigger the first node (e.g., simulate an incoming webhook).
Execute node by node, checking the output and debugging configurations and tool logic.
For time-based triggers (Cron, Wait nodes), temporarily shorten the durations for faster testing.
Once a section is working, move to the next.

Use Cases
E-commerce Businesses (Shopify, etc.):** To automate customer service, marketing, sales recovery, and operations.
Digital Marketing Agencies:** To offer advanced automation services to e-commerce clients.
Freelancers & Consultants:** To build and deploy sophisticated AI-driven e-commerce solutions.
n8n Developers:** As a comprehensive template and learning resource for building complex multi-agent systems.

Nodes used in this workflow

Popular Webhook and Shopify workflows

Create e-commerce listings from images with UploadToURL, GPT-4o, Shopify

Transform raw product images into fully-optimized e-commerce listings in seconds. This workflow automates the bridge between a photo upload and a live product page by combining UploadToURL for hosting, GPT-4o Vision for content generation, and native integrations for Shopify and WooCommerce. 🎯 What This Workflow Does Turns a single product photo into a comprehensive, SEO-ready store listing: 📝 Captures Product Assets - Receives an image via mobile upload (binary) or a remote URL via Webhook. ☁️ Instant CDN Hosting - UploadToURL hosts the image and generates a permanent, high-speed link for your store. 👁️ Vision AI Analysis - GPT-4o Vision "looks" at the product to generate titles, HTML descriptions, SEO tags, and even suggested categories. 🚦 Smart Platform Routing - Automatically detects your target platform and formats the data for: Shopify: Creates products via GraphQL-compatible REST with full SEO metafields. WooCommerce: Creates listings via REST API with Yoast SEO support and marketing blurbs. 📊 Data Enrichment - Sanitizes SKUs, coerces pricing, and maps inventory data for a production-ready entry. ✨ Key Features Seamless Asset Hosting: Uses the **UploadToURL community node to eliminate the need for manual cloud storage management. Zero-Copywriting Required**: AI generates 5-point bullet features, SEO titles (max 70 chars), and rich HTML descriptions. Dual-Platform Support**: Toggle between Shopify and WooCommerce within a single workflow. Automated Slugs**: Generates URL-friendly "handles" based on AI-suggested product names. Robust Error Handling**: Centralized logic to catch upload or API failures and return structured feedback. 💼 Perfect For E-commerce Managers**: Adding hundreds of products without manual data entry. Dropshippers**: Quickly importing products from supplier URLs with fresh, unique AI copy. Retailers**: Taking photos of new stock on a phone and pushing them live to the store instantly. Agencies**: Automating catalog management for multiple client stores. 🔧 What You'll Need Required Integrations UploadToURL** - To host product images and provide public CDN links. n8n Community Node** - n8n-nodes-uploadtourl must be installed. OpenAI API** - GPT-4o Vision for image analysis and copywriting. Shopify or WooCommerce** - Credentials for your specific store platform. Optional Integrations Google Sheets** - To log all generated product data for an offline backup. Slack** - To notify the team whenever a new product "Draft" is created. 🚀 Quick Start Import Template - Copy the JSON and import it into your n8n instance. Install Node - Verify the UploadToURL community node is installed. Set Credentials - Connect your UploadToURL, OpenAI, and Store (Shopify/WooCommerce) accounts. Set Default Platform - Configure the DEFAULT_PLATFORM variable (shopify/woocommerce). Test Upload - Send a POST request with an image and price to the Webhook URL. Go Live - Switch to "Active" to begin your automated catalog expansion. 🎨 Customization Options Pricing Logic**: Add a node to calculate dynamic markups or currency conversions. Publishing Workflow**: Set publishImmediately to false to create all AI products as "Drafts" for human review. Image Processing**: Add watermarking or resizing steps before uploading to the CDN. Multi-Store Routing**: Use tags to route products to different regional store locations. 📈 Expected Results 95% reduction** in manual listing time (from 15 minutes to 30 seconds per product). SEO-Optimized listings** from day one with zero manual keyword research. Professional, consistent descriptions** across your entire product catalog. Immediate mobile-to-store** capability for on-the-go inventory management. 🏆 Use Cases High-Volume Inventory A warehouse team snaps photos of 50 new arrivals; the workflow creates 50 draft listings with descriptions and prices ready for final approval. Competitor Migration Input a list of product image URLs from a supplier site; the AI re-writes all titles and descriptions to ensure unique content for SEO. Boutique E-commerce Small business owners can manage their entire store from their smartphone by simply "sharing" a photo to the n8n webhook. 💡 Pro Tips High-Res Images**: Better image quality results in significantly more accurate AI feature extraction. SKU Naming**: Send a custom SKU in the webhook to maintain sync with your physical inventory or ERP system. Confidence Scores**: The AI returns a confidenceScore; you can set a filter to only auto-publish products with a score above 0.9. Ready to automate your storefront? Import this template and connect UploadToURL to start building your AI-driven product catalog today. Questions about store-specific fields? Detailed sticky notes inside the workflow explain how to map custom attributes for both Shopify and WooCommerce.
+4

Recover Shopify Abandoned Carts with Email, SMS, WhatsApp & Facebook Retargeting

This workflow is a complete, production-ready solution for recovering abandoned carts in Shopify stores using a multi-channel, multi-touch approach. It automates personalized follow-ups via Email, SMS, and WhatsApp, tracks every customer interaction for multi-touch attribution, and enables advanced retargeting and analytics. Key features: Multi-step, timed recovery sequence (Email → SMS → Email → WhatsApp) Customer segmentation (new, returning, VIP) and A/B testing Dynamic discounting and personalized messaging Touchpoint logging to Google Sheets for attribution analysis Facebook Custom Audience retargeting for unrecovered carts Slack notifications for high-value cart recoveries What does this workflow do? Listens for abandoned cart events from Shopify (or any e-commerce platform) via webhook. Normalizes and enriches cart data by fetching full cart details and customer purchase history. Predicts the likely reason for abandonment (e.g., price sensitivity, checkout complexity, technical issues) using rule-based logic. Segments the customer (new, returning, VIP), assigns an A/B test group, and generates a personalized discount and checkout URL. Runs a timed, multi-channel recovery sequence: 1 hour after abandonment: Checks if the order is completed. If not, sends a personalized Email #1 and logs the touchpoint. 4 hours after abandonment: Checks again. If not recovered, sends an SMS with a discount code and logs the touchpoint. 24 hours after abandonment: Checks again. If not recovered, sends Email #2 (with social proof/urgency) and logs the touchpoint. 48 hours after abandonment: Final check. If not recovered, sends a WhatsApp reminder and logs the touchpoint. If the cart is still not recovered: Hashes customer identifiers and adds them to a Facebook Custom Audience for retargeting. Logs every touchpoint (email, SMS, WhatsApp) to a Google Sheet for multi-touch attribution analysis. Sends a Slack notification if a high-value cart is recovered. Why is this workflow useful? Boosts recovery rates:** By using multiple channels and personalized timing, you maximize the chance of recovering lost sales. Improves attribution:** Every customer interaction is logged, so you can analyze which channels and messages drive conversions. Enables advanced retargeting:** Unrecovered carts are automatically added to a Facebook Custom Audience for paid retargeting. Saves time:** Fully automated, with easy configuration for your store, messaging, and analytics. Scalable and extensible:** Easily adapt the sequence, add more channels, or integrate with other tools. How to install and configure Prerequisites n8n instance (v2.0.2+ recommended) Shopify store with API access Accounts and API credentials for: SendGrid (email) Twilio (SMS) WhatsApp Business API Google Sheets (service account) Facebook Graph API (for Custom Audiences) Slack (for notifications) Setup steps Import the workflow into your n8n instance. Configure the “Workflow Configuration” node: Set your Shopify domain, API URLs, Google Sheets ID, and high-value threshold. Connect all required credentials in the respective nodes: Shopify, SendGrid, Twilio, WhatsApp, Google Sheets, Facebook Graph API, Slack. Create a Google Sheet named “Touchpoints” with columns: cart_id, customer_id, touchpoint_type, timestamp, channel, ab_group. Set up the webhook in your Shopify store (or e-commerce platform) to trigger the workflow on cart abandonment. Test the workflow with a sample abandoned cart event to ensure emails, SMS, WhatsApp, and logging work as expected. Enable the workflow in n8n for live operation. Node-by-node breakdown Abandoned Cart Webhook:** Receives abandoned cart events. Workflow Configuration:** Stores global settings (API URLs, Shopify domain, Google Sheets ID, high-value threshold). Normalize Cart Data:** Cleans and standardizes incoming cart data. Fetch Cart Details / Fetch Customer History:** Enriches data with full cart and customer info. Predict Abandonment Reason:** Uses business logic to guess why the cart was abandoned. Personalization Engine:** Segments the customer, assigns A/B group, calculates discount, and builds checkout URL. Customer Segment Check / Device Type Check:** Applies routing logic for personalized messaging. Wait / Check Order Status / Generate & Send Messages:** Timed sequence for Email, SMS, and WhatsApp, with order status checks at each step. Log Touchpoint (Google Sheets):** Records every message sent for attribution. Attribution Merge:** Combines all touchpoints into a single journey for analysis. Hash Customer Data for Facebook / Add to Retargeting Audience:** Adds unrecovered carts to a Facebook Custom Audience. Check Cart Value Threshold / Notify High-Value Recovery:** Sends Slack alerts for high-value recoveries. Customization tips Adjust wait times and message content to fit your brand and audience. Add or remove channels (e.g., push notifications, phone calls) as needed. Expand the Google Sheet for deeper analytics (e.g., add UTM parameters, campaign IDs). Integrate with your CRM or analytics platform for end-to-end tracking. Troubleshooting Make sure all API credentials are set and tested. Check Google Sheets permissions for the service account. Test each channel (email, SMS, WhatsApp) individually before going live. Review the workflow execution logs in n8n for errors or failed steps.
+7

Shopify Multi-Module Automation with GPT-4o, Langchain Agents & Integrations

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 n8n:** Core automation and orchestration platform. Langchain AI Agents:** For intelligent decision-making, task execution, and natural language processing across multiple modules. OpenAI (e.g., GPT-4o Mini):** Powers the AI Agents and direct LLM calls for tasks like sentiment analysis and content generation. Shopify (Conceptual - requires specific API/Webhook setup):** For triggers (abandoned cart, order delivered) and actions (fetching products/inventory, creating discounts). Google Sheets:** Used as a data store for FAQs, logging low stock, review databases, and campaign outcomes. Slack:** For internal team notifications (escalations, low stock, negative reviews). Twilio (or similar SMS service):** For sending SMS alerts (cart recovery, restock notifications). Email (Generic SMTP/API):** For sending various emails (AI responses, recovery emails, review requests, campaign emails). Notion:** For logging customer interactions. HTTP Request Nodes:** For generic API interactions (fetching customer info, product search, CRM, campaign tracking). Webhook Nodes:** For receiving external triggers (incoming messages, product inquiries, review submissions, restock signals). Cron Nodes:** For scheduled tasks (hourly inventory checks, daily campaigns). Workflow Overview This workflow is a collection of interconnected sub-workflows, each designed to automate a specific e-commerce process: 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. 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. 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. 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. 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. 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. 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. 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: OpenAI Shopify (or your e-commerce platform API) Google Cloud (for Google Sheets API) Slack (Bot Token) Twilio (Account SID, Auth Token, From Number) Your Email Sending Service (SMTP details or API key) Notion (Integration Token) Any other external APIs used (e.g., CRM, Product Search, Customer Info, Campaign Tracking) How to Use This Template Step 1: Import the Template Open your n8n instance. Go to “Workflows” > “Create Workflow”. Click the three dots (…) > “Import from File”. Upload the downloaded JSON file of this workflow. 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: SECTION 1 (Customer Support):** Get FAQs Data (Google Sheets): Set sheetId to YOUR_SHEET_ID_HERE and configure Google API credentials. Lookup Order API (HTTP Request): Set url to YOUR_ORDER_LOOKUP_API_ENDPOINT_HERE. Notify Human Agent (Slack): Configure Slack API credentials and channel. Send AI Response to Customer (HTTP Request): Set url to YOUR_CUSTOMER_RESPONSE_API_ENDPOINT_HERE. Store to Notion (Notion): Set pageId (Database ID) to YOUR_NOTION_DATABASE_URL_OR_ID_HERE and Notion API credentials. SECTION 2 (Product Inquiry):** Search Products API (HTTP Request): Set url to YOUR_PRODUCT_SEARCH_API_ENDPOINT_HERE. Build Product Carousel (Function): Update YOUR_DEFAULT_PRODUCT_IMAGE_URL_HERE and YOUR_FALLBACK_PRODUCT_URL_HERE. Respond to User with Carousel (HTTP Request): Set url for sending carousel data. SECTION 3 (Abandoned Cart):** Detect Abandoned Cart (Shopify Trigger): Configure Shopify credentials and ensure the correct trigger event. Fetch Customer Info (HTTP Request): Set url to YOUR_CUSTOMER_INFO_API_ENDPOINT_HERE. Create Discount (if applicable) (Shopify): Configure Shopify credentials and review discount creation parameters. Send Recovery Email (HTTP Request/Email Send): Set email API endpoint or SMTP credentials. Send SMS Reminder (Twilio): Configure Twilio credentials and from number (YOUR_TWILIO_PHONE_NUMBER_HERE). SECTION 4 (Low Stock Alerts):** Fetch Inventory (Shopify): Configure Shopify credentials. Notify Slack (Low Stock) (Slack): Configure Slack API credentials and channel. Generate Email Report (Low Stock) (Email Send): Configure SMTP/email credentials and to address. Export to Sheets (Low Stock Log) (Google Sheets): Set sheetId to YOUR_INVENTORY_LOG_SHEET_ID_HERE and Google API credentials. SECTION 5 (Review Request):** Order Delivered Trigger (Shopify Trigger): Configure Shopify credentials. Fetch Customer Data (for Review) (HTTP Request): Set url to YOUR_CUSTOMER_INFO_API_ENDPOINT_HERE. DraftReviewRequestEmail (Tool): Update YOUR_PRODUCT_PAGE_URL_BASE_HERE and YOUR_WEBSITE_URL_HERE. Send Review Request Email (Email Send): Configure SMTP/email credentials. SECTION 6 (Review Monitoring):** OpenAI node (currently Assistant Create): IMPORTANT: For sentiment analysis, change this node type to @n8n/n8n-nodes-langchain.lmChatOpenAi. Then configure its prompt for sentiment analysis (e.g., System: "Analyze sentiment. Respond with positive, negative, or neutral." User: "Review: {{ $('Listen for Review Webhook').first().json.body.review_text }}"). Set OpenAI credentials. Notify Support Team (Negative Review) (Slack): Configure Slack API credentials and channel. Add Review to Database (Google Sheets): Set sheetId to YOUR_REVIEWS_DATABASE_SHEET_ID_HERE and Google API credentials. SECTION 7 (Marketing Campaigns):** Fetch Target Audience API (HTTP Request): Set url to YOUR_CRM_API_FOR_AUDIENCE_HERE. GenerateCampaignEmailVariant (Tool): Update YOUR_CAMPAIGN_LANDING_PAGE_HERE. Send Campaign Email (Email Send): Configure SMTP/email credentials. Track Campaign Metrics API (HTTP Request): Set url for YOUR_CAMPAIGN_TRACKING_API_ENDPOINT_HERE. Log Campaign Outcome & Adjustments (Google Sheets): Set sheetId to YOUR_CAMPAIGN_LOG_SHEET_ID_HERE and Google API credentials. SECTION 8 (Manual Restock):** Send SMS Alert (Restock) (Twilio): Configure Twilio credentials, from number (YOUR_TWILIO_PHONE_NUMBER_HERE), and to (WAREHOUSE_MANAGER_PHONE_NUMBER_HERE). OpenAI Chat Model (for Basic LLM Chain): Configure OpenAI credentials. Send restock Request Email1 (Email Send): Configure SMTP/email credentials and to address. Step 3: Implement Tool Logic Go into each @n8n/n8n-nodes-langchain.toolCode node (e.g., SearchFAQs, RefineProductSelection, DetermineDiscount, etc.). The current JavaScript is placeholder. You MUST replace this with actual JavaScript logic that performs the intended action for each tool, often by making API calls or processing data based on the agent's input. Step 4: Review AI Agent Prompts & Tool Connections Carefully review the systemMessage for each AI Agent node to ensure it accurately reflects its role and how it should use its tools. CRITICAL:** Verify the index for tools connected to each AI Agent. Each tool connected to a single agent must have a unique, sequential index (0, 1, 2, ...). AI Agent (ID cd71629d-... in your JSON): SearchFAQs tool should be index: 0, LookupOrderStatus tool should be index: 1. (Please double-check and correct the connection indices in your actual workflow file if they are still both pointing to index 0). AI Agent6 (ID 4c24879b-... in your JSON): AnalyzeCampaignPerformance tool should be index: 0, SuggestCampaignAdjustments tool should be index: 1. (Please double-check and correct the connection indices in your actual workflow file if they are still both pointing to index 0). Initial Test Run Disable most of the workflow sections initially. Focus on one section at a time (e.g., Section 1: Customer Support). Manually trigger the first node (e.g., simulate an incoming webhook). Execute node by node, checking the output and debugging configurations and tool logic. For time-based triggers (Cron, Wait nodes), temporarily shorten the durations for faster testing. Once a section is working, move to the next. Use Cases E-commerce Businesses (Shopify, etc.):** To automate customer service, marketing, sales recovery, and operations. Digital Marketing Agencies:** To offer advanced automation services to e-commerce clients. Freelancers & Consultants:** To build and deploy sophisticated AI-driven e-commerce solutions. n8n Developers:** As a comprehensive template and learning resource for building complex multi-agent systems.

Abandoned cart recovery for Shopify via Gmail, Google Sheets & Twilio (no-code)

Who is this for? This template is ideal for solo store owners, eCommerce marketers, automation beginners, or anyone using Shopify and Gmail who wants to recover lost revenue without coding. What problem does this solve? Customers often leave items in their cart without completing the purchase. Manually chasing those sales is inefficient and inconsistent. This workflow automates the recovery process by sending emails (and optionally SMS) based on Shopify checkout activity. What this workflow does: ✅ Detects when a Shopify checkout is created but not completed, ⏳ Waits 1 hour, then checks if the cart was abandoned, 🧾 Pulls cart contents and applies a fallback discount, 📧 Sends a recovery email via Gmail, 🕓 After 24 hours, you can optionally send an SMS or WhatsApp reminder via Twilio, 📊 Logs each interaction to Google Sheets for tracking. Setup: Create Shopify, Gmail, Google Sheets, and Twilio credentials in your n8n instance, Import the JSON workflow file Replace the Shopify trigger with your store's webhook (set to “Checkout Create”), Set your wait time (default: 1 hour), Link your Gmail account and customize the email message, (Optional) Link Twilio to add a multi-channel reminder, Update the Google Sheets node with your own Sheet ID and headers. 🗒 Color-coded workflow notes: To make customization easier, this template includes a visual sticky note system inside the n8n canvas. You’ll find: 🟩 Green Notes → Main Steps Clear, essential stages of the automation (e.g. wait, check cart status, send email), 🟦 Blue Notes → Personalization Tips Small tweaks you can make to match your tone, store brand, or logic (e.g. email copy, discount logic), 🟨 Yellow Notes → Optional / Advanced Features that you can explore setting up: Twilio SMS, Airtable logging, human approval steps, etc. 👉 Look around each key node for quick tips, setup instructions, and TO-DO items. This system helps you understand and modify the workflow at a glance — whether you're a beginner or scaling a pro setup. How to customize this workflow? 🎯 Swap Shopify for WooCommerce or Stripe by replacing the trigger and cart-check logic, 💬 Localize and personalize each email message or add multilingual support via AI, 📈 Upgrade logging from Google Sheets to Airtable for CRM-style features, 🤝 Add manual approval steps for high-value discounts, 💡 Want a one-time unique code per user? Let us build that logic for you → [email protected] Final notes This template was designed by Velebit from Innovatio. External links in the workflow (e.g. support or upgrade options) are optional and purely informative, while only leading to the official company webiste with no affiliate or similar links included in the template itself. A separate license applies to the paid version on Gumroad, which includes additional modules and commercial use rights.

Automate Shopify orders from Airtable with Gmail confirmations

This n8n template from Intuz provides a complete solution to automate your order creation process. It seamlessly syncs order data from an Airtable base directly to your Shopify store, creates the official order, and automatically sends a beautiful confirmation email to the customer, closing the loop by updating the status in Airtable. Who's this workflow for? E-commerce Managers Operations Teams Businesses with Custom Order Processes (e.g., B2B, phone orders, quotes) Shopify Store Owners using Airtable as a CRM How it works Triggered from Airtable: The workflow starts instantly when an Airtable Automation sends a signal via a webhook. This happens when you mark an order as ready to be processed in your Airtable base. Fetch Order Details: n8n receives the record ID from Airtable and fetches the complete order details, including customer information and the specific line items for that order. Create Order in Shopify: All the gathered information is used to create a new, official order directly in your Shopify store. Send Confirmation Email: Once the order is successfully created in Shopify, a professionally formatted HTML order confirmation email is sent to the customer via Gmail. Update Airtable Status: Finally, the workflow updates the original order record in Airtable, marking its status as "Done" to prevent duplicate processing and keep your records in sync. Key Requirements to Use This Template n8n Instance: An active n8n account (Cloud or self-hosted). Airtable Base: An Airtable base on a "Pro" plan or higher (required for Airtable Automations). It should contain tables for Orders and Order Line Items. Shopify Store: An active Shopify store with API access permissions. Gmail Account: A Gmail account to send confirmation emails. Setup Instructions Configure the n8n Workflow: Webhook Node: Activate the workflow to get the Production URL from the "Webhook" node. Copy this URL. Airtable Nodes: In the Get a record and Update record nodes, connect your Airtable credentials and select the correct Base and Table IDs. Shopify Node: In the Create an order node, connect your Shopify store using OAuth2 credentials. Gmail Node: In the Send a message node, connect your Gmail account. Set Up the Airtable Automation (Crucial Step): Go to your Airtable base and click on "Automations". Create a new automation. For the trigger, select "When a record meets conditions". Choose your Orders table and set a condition that makes sense for you (e.g., When "Shopify Ordered" is "Pending"). For the action, choose "Run a script". Paste the code below into the script editor: JavaScript const inputConfig = input.config(); const recordId = inputConfig.recordId; const webhookUrl = 'PASTE_YOUR_N8N_PRODUCTION_URL_HERE'; await fetch(webhookUrl, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ recordId: recordId }), }); ReplacePASTE_YOUR_N8N_PRODUCTION_URL_HERE with the Production URL you copied from n8n. Add an input variable to the script named recordId and set its value to the "Airtable record ID" from the trigger step. Test the script and turn your Airtable Automation ON. Connect with us Website: https://www.intuz.com/n8n-workflow-automation-templates Email: [email protected] LinkedIn: https://www.linkedin.com/company/intuz Get Started: https://n8n.partnerlinks.io/intuz For Custom Workflow Automation Click here- Get Started

Sync Customer Email Subscriptions Between Shopify and Mautic

Having a seamless flow of customer data between your online store and your marketing platform is essential. By keeping your systems synchronized, you can ensure that your marketing campaigns are accurately targeted and effective. The integration between Shopify, a leading e-commerce platform, and Mautic, an open-source marketing automation system, is not available out-of-the-box. However, with a n8n workflow you can bridge this gap with. This template will help you: enhance accuracy in marketing lists by ensuring that subscription changes in Shopify are instantly updated in Mautic. improve compliance with data protection laws by respecting users' subscription preferences across platforms achieve integration without the need for additional plugins or software, minimizing complexity and potential points of failure. This template will demonstrate the follwing concepts in n8n: working with Shopify in n8n control flow with the IF node use Webhooks validate Webhooks with the Crypto node use the GraphQL node to call the Shopify Admin API The template consists of two parts: Sync Email Subscriptions from Shopify to Mautic Sync Email Subscriptions from Mautic to Shopify How to get started? Create a custom app in Shopify get the credentials needed to connect n8n to Shopify This is needed for the Shopify Trigger Create Shopify Acces Token API credentials n n8n for the Shopify trigger node Create Header Auth credentials: Use X-Shopify-Access-Token as the name and the Acces-Token from the Shopify App you created as the value. The Header Auth is neccessary for the GraphQL nodes. Enable the Mautic API under Configuration/API Settings, After the settings are saved you will have an additional entry in your settings menu to create API credentials for n8n Create Mautic credentials in n8n Please make sure to read the notes in the template. For a detailed explanation please check the corresponding video: https://youtu.be/x63rrh_yJzI

Build your own Webhook and Shopify integration

Create custom Webhook and Shopify workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Shopify supported actions

Create
Create an order
Delete
Delete an order
Get
Get an order
Get Many
Get many orders
Update
Update an order
Create
Create a product
Delete
Delete a product
Get
Get a product
Get Many
Get many products
Update
Update a product

Webhook and Shopify integration details

integrationWebhook node
Webhook

Webhooks are automatic notifications that apps send when something occurs. They are sent to a certain URL, which is effectively the app's phone number or address, and contain a message or payload. Polling is nearly never quicker than webhooks, and it takes less effort from you.

Use case

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more
Use case

Supercharge your CRM

Need a more powerful integration with your CRM? n8n lets you go beyond standard integrations offered by popular CRMs!

Learn more

FAQs

  • Can Webhook connect with Shopify?

  • Can I use Webhook’s API with n8n?

  • Can I use Shopify’s API with n8n?

  • Is n8n secure for integrating Webhook and Shopify?

  • How to get started with Webhook and Shopify integration in n8n.io?

Need help setting up your Webhook and Shopify integration?

Discover our latest community's recommendations and join the discussions about Webhook and Shopify integration.
Benjamin Hatton
Albert Ashkhatoyan
Víctor González
Salomão
sg tech

Looking to integrate Webhook and Shopify in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Webhook with Shopify

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon