Build a sophisticated AI E-commerce Assistant using this advanced n8n workflow. Route customer inquiries for Shopify and WooCommerce, utilize GPT-4o and Gemini, and leverage a Pinecone RAG knowledge base.
Download this n8n workflow template and start using it instantly.
E-commerce store owners running Shopify and/or WooCommerce.
Technical users looking to implement sophisticated AI routing agents in n8n.
Developers needing advanced examples of using LangChain agents and RAG tools within an n8n workflow.
Automation specialists seeking robust n8n templates for customer service automation.
This comprehensive n8n workflow solves the complexity of managing customer service across multiple e-commerce platforms and knowledge domains simultaneously. By employing an intelligent router powered by GPT-4o, the system dynamically directs incoming chat messages to the appropriate specialized AI agent: the Shopify Assistant, the WooCommerce Assistant, or a General Queries agent.
Each specialized agent is equipped with platform-specific n8n node tools—such as Shopify operations (like Get Order info and GraphQL) or WooCommerce operations (like Fetch Order Details). Furthermore, the General Queries path incorporates a powerful Retrieval-Augmented Generation (RAG) system using Pinecone and AWS Bedrock embeddings, allowing the assistant to answer general questions based on a proprietary knowledge base. This robust n8n workflow ensures quick, accurate, and context-aware responses, drastically improving customer experience and efficiency.
The entire process begins with the When chat message received n8n trigger, capturing the user's initial input.
Initial Query Router Agent, which uses a pre-configured prompt and the Router Model (GPT-4o-mini) to categorize the intent as SHOPIFY, WOOCOMMERCE, or None of them. This smart routing is the core of this n8n workflow.Check if Its General query n8n node uses an IF condition to determine the next step. If the output is not Shopify or WooCommerce, the flow proceeds to the General Queries RAG path.Route To Shopify or WooCommerce n8n node directs the message to the correct specialized agent.Shopify Assistant Agent utilizes the Shopify Chat Model (Gemini) and the Shopify-specific n8n node tools to fulfill requests like fetching product lists or order details.WooCommerce Assistant Agent uses the WooCommerce Chat Model (Gemini) and its dedicated WooCommerce n8n node tools for analogous tasks.General Queries Agent uses the GPT-4o-mini n8n node, leveraging the Pinecone Vector Store tool (fed by AWS Bedrock embeddings) to retrieve contextual knowledge before generating a final response.Merge n8n node consolidates the final text output, preparing it to be delivered back to the user via the initial chat connection. This complex architecture demonstrates the power of n8n templates for advanced use cases.To deploy this powerful n8n workflow, follow these steps:
Fetch All Products, Get Order info).Fetch All Products2, Fetch Order Details).Router Model and GPT-4o-mini n8n node components.Shopify Chat Model and WooCommerce Chat Model n8n node components.Pinecone Vector Store n8n node.Embeddings AWS Bedrock n8n node, ensuring the required permissions for the Titan embedding model.When chat message received n8n trigger node is active to start monitoring incoming messages and enabling this n8n workflow. When chat message received (n8n trigger): The starting point of the n8n workflow. It is a LangChain chatTrigger that initiates the automation upon receiving a user message, extracting the query and session ID.
Initial Query Router (Agent): Uses GPT-4o-mini to categorize the user intent (SHOPIFY, WOOCOMMERCE, None of them). This key n8n node determines the flow path.
Check if Its General query (IF n8n node): Routes traffic based on the router's classification, separating general inquiries from e-commerce tasks.
Route To Shopify or WooCommerce (IF n8n node): Directs the flow specifically to the Shopify or WooCommerce assistant based on the prior classification.
Shopify Assistant Agent: The specialized agent for Shopify tasks. It uses the Shopify Chat Model (Gemini) and leverages three main n8n node tools: Get Order info, Fetch All Products, and GraphQL for complex querying.
WooCommerce Assistant Agent: The specialized agent for WooCommerce tasks, utilizing the WooCommerce Chat Model (Gemini) and its corresponding n8n node tools: Fetch Order Details and Fetch All Products2.
General Queries (Agent): Handles non-e-commerce questions. Its primary function is to use the Pinecone Vector Store n8n node tool for RAG.
Pinecone Vector Store & Embeddings AWS Bedrock: This combination forms the RAG system. The Embeddings AWS Bedrock n8n node creates the vector representation of the query, which the Pinecone Vector Store n8n node uses to retrieve context from the knowledge base.
Use this dynamic n8n workflow to create resilient AI agents that automatically switch between various OpenAI LLMs based on performance or availability. Leverage custom n8n node logic for cascading models.

Use this powerful n8n workflow to dynamically replace images in Google Slides via API requests. Automate presentation updates using a custom n8n trigger and Google Slides API calls.

Generate dynamic, Tailwind-styled HTML pages instantly from a text prompt using this advanced n8n workflow. Integrates OpenAI Structured Output for predictable UI generation.

Use this advanced n8n workflow to monitor competitor prices across multiple e-commerce sites. Features AI extraction (Claude), Google Sheets logging, and real-time Telegram alerts.

Use this robust n8n workflow to monitor product prices using AI web scraping (ScrapeGraphAI), store data in MongoDB, and send instant alerts via Mailgun when prices drop significantly. This advanced n8n template streamlines competitive monitoring.

Crafting Intelligent AI Solutions | AI Engineer building the next generation of intelligent workflows on n8n. Automating the complex, one node at a time.







































