Build a powerful WooCommerce support AI chatbot using n8n and GPT-4o. This n8n workflow handles order tracking, identity verification, RAG knowledge, and Telegram escalation.
Download this n8n workflow template and start using it instantly.



















This advanced n8n workflow solves the critical challenge of providing scalable, secure, and accurate post-sales support in an e-commerce environment. By leveraging a LangChain-based AI Agent within n8n, this system connects directly to your WooCommerce data for real-time order status and tracking information. Crucially, it implements strict identity verification rules (matching order number and email) before disclosing sensitive details, ensuring maximum data security. Furthermore, using a Google Drive-backed RAG (Retrieval-Augmented Generation) knowledge base stored in Qdrant, the chatbot answers policy questions accurately. This comprehensive n8n solution drastically reduces human support load while providing instant, high-quality responses. This is one of the most powerful n8n templates available for e-commerce automation.
This n8n workflow operates in two main phases: Knowledge Base Preparation and Live Chat Execution.
When clicking ‘Test workflow’ n8n trigger to manage the knowledge base.Create collection and Refresh collection HTTP Request n8n nodes to initialize and clear the Qdrant vector database collection.Get folder n8n node retrieves policy documents (Terms and Conditions, shipping details) from a specified Google Drive folder.Default Data Loader n8n node, and chunked by the Token Splitter n8n node.Embeddings OpenAI1 generates vector representations, which are stored in the Qdrant Vector Store n8n node, making the information retrievable for RAG queries.When chat message received n8n trigger (a LangChain ChatTrigger n8n node).Post-Sales Agent n8n node. This agent utilizes the GPT 4o-mini language model and Simple Memory n8n node to maintain conversational context across messages. getorder, getorders, or getuser) for secure customer/order lookup. The AI logic ensures verification via email matching before releasing order details.gettracking n8n node calls a separate utility n8n workflow via the Tool Workflow n8n node to retrieve tracking codes via the WooCommerce API.ToS n8n node leverages the pre-loaded Qdrant RAG store to answer policy questions (Terms of Service, Shipping details).human_assistance n8n node sends the conversation summary to a specific Telegram chat ID for seamless human intervention. This ensures every customer query handled by this n8n workflow is resolved.To deploy this comprehensive n8n workflow, follow these setup and configuration steps:
OpenAi account used in both the Agent and the Embeddings n8n nodes.QdrantApi account credentials for vector storage access.WooCommerce API credentials for accessing order and customer data.Google Drive OAuth2 Api credentials for the RAG document ingestion phase.Telegram API credentials for the humanassistance n8n node.Get tracking n8n node to connect to the dedicated tracking endpoint (/wp-json/wc/v3/orders/).Create collection and Refresh collection HTTP Request n8n nodes with your specific QDRANTURL and COLLECTION name.Get folder n8n node points to the correct Google Drive folder ID containing your policy documents.When clicking ‘Test workflow’) once to populate the Qdrant vector database.Get tracking HTTP Request n8n node within the dedicated tracking path to match your WooCommerce shop URL.humanassistance Telegram n8n node, replace CHAT_ID with the Telegram ID where human escalation messages should be sent. When chat message received (n8n trigger): The entry point for the live chatbot. This LangChain ChatTrigger n8n node listens for incoming chat messages, initiating the main execution path of the n8n workflow.
Post-Sales Agent (n8n node): The core intelligence of this n8n workflow. It orchestrates various tools and uses the GPT 4o-mini language model. Its detailed system prompt enforces strict identity verification and dictates tool usage for tracking, lookup, and RAG queries.
GPT 4o-mini (n8n node): Serves as the primary Large Language Model (LLM) for the Agent, responsible for reasoning, determining tool use, and generating natural language responses within the n8n workflow.
Simple Memory (n8n node): A crucial LangChain n8n node for maintaining conversational history within the current chat session, ensuring the Agent has context for follow-up questions.
WooCommerce Tools (n8n nodes): Includes getorder, getorders, and getuser. These n8n nodes are essential tools for the Agent to interact with the WooCommerce API for real-time customer data retrieval.
ToS (Tool Vector Store n8n node): This tool provides the RAG capabilities, connecting the Agent to the Qdrant Vector Store and OpenAI Chat Model to answer policy-related queries using the loaded documents, extending the knowledge of the primary Agent.
gettracking (Tool Workflow n8n node): This n8n node is configured as a callable tool, delegating the specific task of retrieving a tracking number to a dedicated n8n workflow path, often used for modularity and external service calls.
Qdrant Vector Store1 (n8n node): Used during the manual setup phase to insert the document embeddings generated by the Embeddings OpenAI1 n8n node into the Qdrant database. This establishes the knowledge base for the RAG component of the overall n8n workflow.
Use this comprehensive n8n workflow to create an intelligent live chat auto-responder powered by OpenAI. This n8n template includes human agent detection, contextual memory, and automatic email fallback.

Automate podcast generation directly from Telegram. This powerful n8n workflow uses Anthropic, Wikipedia, and ElevenLabs to create and deliver high-quality audio summaries.

Use this automated n8n workflow to instantly duplicate and rename Google Drive files when a specific interview event is created in Google Calendar, enhancing HR productivity.

Use this robust n8n workflow to automate WooCommerce order status notifications. It verifies WhatsApp numbers using the Rapiwa API, sends personalized updates, and logs all transaction attempts to Google Sheets. Get this free n8n template now.

Automate fetching your latest WordPress post, summarize it using the OpenAI n8n node (GPT-4), and distribute the summary via email to subscribers stored in Google Sheets.

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza







































