Skip to main content

E-commerce assistant for Shopify & WooCommerce with GPT-4o, Gemini & RAG

Workflow preview

Workflow preview
100%
E-commerce assistant for Shopify & WooCommerce with GPT-4o, Gemini & RAG preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Universal E Commerce AI Assistant (Shopify, WooCommerce & RAG) This powerful n8n workflow deploys a sophisticated, multi talented AI chatbot designed to streamline your e commerce and customer s...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.shopifytool, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsawsbedrock, n8n-nodes-base.merge

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Harsh Maniya.

Original n8n.io source

1.1 Workflow description

Title
E-commerce assistant for Shopify & WooCommerce with GPT-4o, Gemini & RAG
Workflow name
E-commerce assistant for Shopify & WooCommerce with GPT-4o, Gemini & RAG

πŸ€– Universal E-Commerce AI Assistant (Shopify, WooCommerce & RAG)

This powerful n8n workflow deploys a sophisticated, multi-talented AI chatbot designed to streamline your e-commerce and customer support operations. The AI assistant can intelligently understand user queries and route them to the correct specialized agent, whether it's for Shopify, WooCommerce, or general knowledge questions answered by a Retrieval-Augmented Generation (RAG) system.

This template automates responses to a wide range of inquiries, from checking Shopify order statuses with GraphQL to fetching product lists from WooCommerce, and even answering general questions by looking up information in a Pinecone vector database.

How It Works βš™οΈ

The workflow operates in a series of logical steps, starting from the moment a user sends a message.

  1. πŸ’¬ Chat Trigger: The workflow activates when a user sends a message in the n8n chat interface. It captures the user's input and a unique session ID to track the conversation.

  2. 🧠 Intelligent Routing: The user's query is first sent to a Router Agent powered by GPT-4o-mini. This agent's sole purpose is to classify the intent of the message and output one of three keywords: SHOPIFY, WOOCOMMERCE, or None of them.

  3. πŸ”€ Conditional Branching: Based on the Router's output, a series of IF nodes direct the conversation down one of three paths:

    • General Queries Path
    • Shopify Path
    • WooCommerce Path
  4. πŸ“š General Queries (RAG): If the query is not about e-commerce, it's handled by a RAG agent.

    • Embedding: The user's question is converted into a vector embedding using AWS Bedrock.
    • Retrieval: The workflow searches a Pinecone Vector Store to find the most relevant information from your knowledge base.
    • Generation: A GPT-4o-mini agent receives the context from Pinecone and generates a comprehensive, helpful answer.
  5. πŸ›οΈ E-Commerce Specialists: If the query is about Shopify or WooCommerce, it's passed to a dedicated agent.

    • Shopify Agent: This agent uses Google Gemini and has a suite of tools to manage Shopify tasks. It can Get Order info, Fetch All Products, or run complex queries using the powerful GraphQL tool.
    • WooCommerce Agent: This agent also uses Google Gemini and is equipped with tools to Fetch Order Details and Fetch All Products from a WooCommerce store.
  6. πŸ—£οΈ Conversation Memory: Each agent (Router, General, Shopify, WooCommerce) is connected to its own Memory node. This allows the chatbot to remember previous parts of the conversation for a more natural and context-aware interaction.

  7. 🏁 Merge & Respond: All three paths converge at a final Merge node. This ensures that no matter which agent handled the request, the final answer is streamlined into a single output and sent back to the user in the chat.

Nodes Used πŸ”—

  • Triggers:
    • Chat Trigger: Starts the workflow when a chat message is received.
  • AI & Agents:
    • AI Agent: Four separate agents for Routing, Shopify, WooCommerce, and General Queries.
    • OpenAI Chat Model: Uses GPT-4o-mini for the Router and General Queries agent.
    • Google Gemini Chat Model: Uses Google Gemini for the Shopify and WooCommerce agents.
  • Tools & Data:
    • Shopify Tool: To get products and order information from Shopify.
    • WooCommerce Tool: To get products and order information from WooCommerce.
    • GraphQL Tool: For advanced, custom queries to the Shopify API.
    • Pinecone Vector Store: To retrieve context for the RAG agent.
    • AWS Bedrock Embeddings: To create vector embeddings for Pinecone.
  • Logic & Memory:
    • IF Node: To conditionally route the workflow.
    • Merge Node: To consolidate the different branches before ending.
    • Window Buffer Memory: Four nodes to provide conversational memory to each agent.

Setup Guide πŸ› οΈ

To use this workflow, you'll need to configure several nodes with your own credentials and settings.

1. AI Model Credentials
  • OpenAI: Create an API key in your OpenAI Platform dashboard. Add this credential to the Router Model and GPT-4o-mini nodes.
  • Google Gemini: Create an API key in your Google AI Studio dashboard. Add this credential to the Shopify Chat Model and WooCommerce Chat Model nodes.
2. E-Commerce Platform Credentials
  • Shopify: You will need a Shopify Access Token. Follow the n8n documentation to generate one. Add the credential to the Fetch All Products and Get Order info nodes.
  • WooCommerce: Create API credentials from your WordPress dashboard. Add the credential to the Fetch All Products2 and Fetch Order Details nodes.
3. RAG System Credentials (Pinecone & AWS)
  • Pinecone:
    • Sign up for a Pinecone account and create an API key.
    • Add your Pinecone credentials in n8n.
    • In the Pinecone Vector Store node, set the pineconeIndex to the name of your index. You must have a pre-existing index with data for the RAG to work.
  • AWS:
    • Create an AWS account and an IAM user with programmatic access to Amazon Bedrock.
    • Add your AWS credentials in n8n.
    • Select your AWS credentials in the AWS Bedrock Embeddings node.
4. GraphQL Node Configuration
  • In the GraphQL node, you must update the endpoint URL. Replace the placeholder https://{subdomain}.myshopify.com/admin/api/2025-04/graphql.json with your own Shopify store's GraphQL API endpoint.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Fetch All Products

Type / Role
n8n-nodes-base.shopifyTool - shopifyTool
Config choices
Version 1

Block 2 - Get Order info

Type / Role
n8n-nodes-base.shopifyTool - shopifyTool
Config choices
Version 1

Block 3 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 4 - General Queries

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 5 - Route To Shopify or WooCommerce

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Shopify Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 7 - WooCommerce Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 8 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.2

Block 9 - Embeddings AWS Bedrock

Type / Role
@n8n/n8n-nodes-langchain.embeddingsAwsBedrock - embeddingsAwsBedrock
Config choices
Version 1

Block 10 - Check if Its General query

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 12 - Fetch All Products2

Type / Role
n8n-nodes-base.wooCommerceTool - wooCommerceTool
Config choices
Version 1

Block 13 - Fetch Order Details

Type / Role
n8n-nodes-base.wooCommerceTool - wooCommerceTool
Config choices
Version 1

Block 14 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 15 - Memory RAG

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 16 - WooCommerce Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 17 - Shopify Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 18 - GraphQL

Type / Role
n8n-nodes-base.graphqlTool - graphqlTool
Config choices
Version 1.1

Block 19 - Router Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 20 - GPT-4o-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 21 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow E-commerce assistant for Shopify & WooCommerce with GPT-4o, Gemini & RAG
Complexity advanced
Nodes 32
Categories Support Chatbot, AI Chatbot
Author Harsh Maniya
Published 17 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6100/6100.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does E-commerce assistant for Shopify & WooCommerce with GPT-4o, Gemini & RAG do?

Universal E Commerce AI Assistant (Shopify, WooCommerce & RAG) This powerful n8n workflow deploys a sophisticated, multi talented AI chatbot designed to streamline your e commerce and customer s...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.