Smart agent answers customer questions using WooCommerce knowledge base
Workflow Description
An automation that connects OpenAI with Retrieval-Augmented Generation (RAG) to enable an intelligent agent to answer customer inquiries based on your WooCommerce store data. It maintains conversation memory for improved interactions and supports distribution via X and Google Drive.
How it works
- 1.Receive customer message through chat trigger
- 2.Search the vector database for relevant WooCommerce information
- 3.Call OpenAI model to generate an informed response based on retrieved context
- 4.Store conversation history in memory buffer for enhanced follow-up interactions
Use cases
- Automated customer support that answers product and pricing questions
- Enhance store search functionality with AI-powered answers backed by actual data
Requirements
- OpenAI API key for model access
- Vector database (Qdrant) to store and retrieve embedded product data
- Advanced WooCommerce integration to access product and store information
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (25)
When chat message received
Chat Trigger
Window Buffer Memory
Memory Buffer Window
Calculator
Tool Calculator
Edit Fields
Set
OpenAI Chat Model
OpenAI
RAG
Tool Vector Store
Qdrant Vector Store
Vector Store Qdrant
Embeddings OpenAI
OpenAI
OpenAI Chat Model1
OpenAI
personal_shopper
Woo Commerce Tool
Information Extractor
Information Extractor
OpenAI Chat Model2
OpenAI
Google Drive2
Google Drive
Google Drive1
Google Drive
Embeddings OpenAI3
OpenAI
Default Data Loader2
Document Default Data Loader
Token Splitter1
Text Splitter Token Splitter
When clicking ‘Test workflow’
Manual Trigger
HTTP Request
HTTP Request
Sticky Note
Sticky Note
Qdrant Vector Store1
Vector Store Qdrant
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
AI Agent
Agent