Automate WooCommerce Shopping Assistant with OpenAI & RAG in n8n

This automation workflow transforms WooCommerce shopping by combining OpenAI’s intelligent chat with a RAG system to answer store queries and find products in real time. It reduces time spent searching and improves customer experience through AI-driven personalized recommendations.
chatTrigger
agent
wooCommerceTool
+11
Workflow Identifier: 1766
NODES in Use: chatTrigger, set, informationExtractor, agent, wooCommerceTool, toolVectorStore, vectorStoreQdrant, embeddingsOpenAi, googleDrive, httpRequest, memoryBufferWindow, lmChatOpenAi, textSplitterTokenSplitter, documentDefaultDataLoader

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow helps a shoe and accessories store answer customer chat questions automatically.
It solves problems like slow replies, repetitive questions, and hard product searches.
The workflow quickly finds product details or store info and replies fast to customers.
This saves time and makes customers happier.


Tools and services used

  • n8n platform: Runs the automated workflow.
  • OpenAI API: Analyzes chat text to find intent and create replies.
  • WooCommerce API: Searches store products using filters like SKU, keywords, and prices.
  • Google Drive: Stores documents about store info for answers.
  • Qdrant vector database: Does vector search on documents to find relevant info.

Inputs, processing steps, and outputs

Inputs

  • Customer chat message from chat platform.
  • API credentials for OpenAI, WooCommerce, Google Drive, and Qdrant.
  • Store info documents uploaded on Google Drive.
  • WooCommerce product database accessible via API.

Processing Steps

  • The Webhook node receives new chat messages.
  • The Information Extractor (LangChain Node) checks if the customer wants product info and extracts details like keywords, price range, SKU, and category.
  • The Edit Fields node saves session ID and chat input for context.
  • The AI Agent (LangChain Agent node) decides if the question is about products or store info.
  • If it is product related, the personal_shopper (WooCommerce Tool node) searches WooCommerce products using the extracted parameters.
  • If it is about store details, the RAG (LangChain VectorStore Tool node) and Qdrant Vector Store node find answers in indexed Google Drive documents via vector search.
  • The Window Buffer Memory (LangChain Memory BufferWindow node) keeps recent chat history to keep context during multi-turn conversations.
  • Multiple OpenAI Chat Model (LangChain LMChatOpenAI nodes) generate natural language replies and handle conversation memory and embeddings.
  • The Embeddings OpenAI (LangChain EmbeddingsOpenAI node) creates vectors from documents stored in Google Drive for vector search.

Outputs

  • Structured chat response with product recommendations or store info.
  • Faster replies that save time and improve customer satisfaction.
  • Maintained conversation context for better user experience.

Who should use this workflow

Store owners with WooCommerce shops and busy customer chats.
Teams wanting instant product info and store answers in chat.
Users needing to automate manual, repetitive customer support tasks.


Beginner step-by-step: How to use this workflow in n8n

1. Importing the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Use the Import from File option to upload the workflow.

2. Setting up credentials

  1. Add your API Keys for OpenAI, WooCommerce, Google Drive, and Qdrant inside n8n credential settings.
  2. Update IDs, emails, channels, or folder paths if your store or documents use different ones.

3. Testing and activation

  1. Manually trigger the workflow to test if it works with sample chat messages.
  2. Check logs and node outputs for correct answers.
  3. Activate the workflow by switching it on for live customer chats.

Consider using self-host n8n if needing more control over hosting.


Customization ideas

  • Change product categories in Information Extractor prompt to fit your WooCommerce catalog.
  • Adjust filters in personal_shopper (WooCommerce Tool node) to include or remove price or stock filters.
  • Add more documents about store policies or promotions to Google Drive to improve RAG answers.
  • Modify OpenAI model settings like temperature or token limits to control response style.
  • Adapt prompts for other languages for multi-language chats.

Handling common problems

No products found in WooCommerce search

Check if SKU, keywords, or prices come out right from the Information Extractor.
Use n8n debug mode to see extracted details.
Fix prompts or inputs as needed.

Irrelevant RAG answers

Confirm documents exist and are accessible on Google Drive.
Re-embed and re-index them in Qdrant.
Verify vector search setup in Qdrant Vector Store.

OpenAI API key errors or limits

Check if API keys are correct and active in n8n credentials.
Monitor usage limits in the OpenAI account.
Upgrade the plan if needed.


Summary and benefits

✓ Saves time by automating customer chat responses.
✓ Provides accurate product info from WooCommerce.
✓ Answers store questions quickly from knowledge base.
✓ Keeps conversation context for better chats.
✓ Easy to import and configure in n8n.

→ Faster support improves customer satisfaction.
→ Less manual work for store owners or staff.


Frequently Asked Questions

Yes, if the chat platform can send webhook messages to n8n, the workflow can receive them.
The workflow makes multiple calls per chat but reduces cost by reusing session memory and context.
All API credentials are safely stored inside n8n. Store data remains under user control.
Yes, with proper infrastructure and WooCommerce API limits considered, the workflow can scale to many concurrent users.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free