OpenAI Powered Personal Shopper with WooCommerce & RAG

This workflow automates personalized shopping assistance using OpenAI and WooCommerce with Retrieval-Augmented Generation (RAG). It extracts user intent, filters WooCommerce products by criteria, and answers store info queries to save time and improve customer experience.
chatTrigger
agent
wooCommerceTool
+8
Workflow Identifier: 2249
NODES in Use: chatTrigger, set, informationExtractor, agent, wooCommerceTool, googleDrive, lmChatOpenAi, toolVectorStore, vectorStoreQdrant, embeddingsOpenAi, memoryBufferWindow
Automate shopping with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow builds a chat assistant that helps store owners answer customer questions fast.
It finds products from the store based on what the customer asks and gives store info like opening hours.
The result is faster answers, fewer mistakes, and happier customers.

The system listens to chat messages, understands if the user wants to buy a product or needs store info, then searches the right place for answers.
It keeps chat history so conversations feel correct across multiple messages.


Tools and Services Used

  • n8n Langchain Chat Trigger node: Listens for incoming chat messages.
  • OpenAI API: Understands queries and creates embeddings.
  • WooCommerce: Stores product data and inventory details.
  • Google Drive: Holds store documents like opening hours and policies.
  • Qdrant: Provides vector search for document-based answers.
  • n8n Langchain nodes: Extract info and route queries intelligently.
  • Window Buffer Memory: Maintains chat context by session.

How This Workflow Works

Inputs

The workflow starts when a chat message arrives with sessionId and chatInput.
Google Drive stores documents about store info.
WooCommerce holds product data and stock details.

Processing Steps

The Langchain Chat Trigger reads the chat message.
A Set node standardizes session ID and chat text.

Information Extractor node analyzes the chat to see if user wants a product or general store info.
It looks for keywords, SKU, product category, and price range in JSON format.

Langchain Agent routes the query: if product search needed, send info to WooCommerce Tool node; else, use the RAG vector store with store document search.

WooCommerce Tool node filters products based on the extracted parameters and stock availability.
Google Drive nodes load store documents, then they get processed: loaded, split, embedded with OpenAI embeddings, and stored in Qdrant for semantic search.

The chat session uses Window Buffer Memory to remember past questions and answers for natural chatting.
OpenAI Chat Model nodes generate friendly responses based on product matches or document info.

Outputs

The workflow sends back chat replies containing personalized product suggestions or accurate store information.
This reduces response time and improves conversation quality.


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor.
  3. Use “Import from File” to load the downloaded workflow.

Step 2: Configure Credentials and Settings

  1. Add your OpenAI API Key in the OpenAI nodes.
  2. Enter WooCommerce API credentials in the WooCommerce Tool node.
  3. Connect your Google Drive in the Google Drive nodes by setting OAuth credentials.
  4. Update IDs such as folder IDs for Google Drive or collection names in Qdrant if your setup differs.

Step 3: Test the Workflow

  1. Trigger the workflow by sending a test chat message to the Langchain Chat Trigger webhook URL.
  2. Check the output to see if product data or store info returns correctly.

Step 4: Activate for Production

  1. Turn your workflow status to “Active” in n8n.
  2. Connect your live chat interface to the webhook URL of the Langchain Chat Trigger.
  3. Monitor workflow runs from the dashboard to catch any errors early.

Follow this simple setup to start automating customer chats without complicated rebuilds.
If hosting on your own server, check out helpful tips at self-host n8n.


Key Customizations

  • Update Product Types: Change the categories in Information Extractor prompt to fit your store.
  • Adjust Price Filters: Edit WooCommerce node to raise or lower price ranges.
  • Add More Documents: Import extra files into Google Drive nodes to expand store info knowledge.
  • Change Memory Settings: Increase text chunk size in Token Splitter to capture more chat context.
  • Add Language Support: Modify prompts to recognize languages if your customers speak more than one.

Troubleshooting Common Problems

  • No Products Found: Check SKU and price filters from Information Extractor; increase range to find matches.
  • Wrong Store Info Given: Update Google Drive documents and refresh embeddings in Qdrant.
  • Chat Loses Track: Confirm sessionId passes correctly to Window Buffer Memory node.

Pre-Production Checklist

  • Confirm webhook activates on chat message triggers.
  • Test Information Extractor with various example chats to verify correct data output.
  • Ensure WooCommerce search node returns expected products with filters.
  • Verify Qdrant vector search brings back related document text.
  • Check Window Buffer Memory saves context across messages using sessionId.

Deployment

Once configured and tested, activate the workflow in n8n.
Point customer chat messages to its webhook URL.

Watch workflow executions for failures or slow responses.
Scale OpenAI API keys or database resources as usage grows.

Regularly update store docs in Google Drive and rerun embeddings to keep answers current.


Summary of Benefits

✓ Reduce time answering customers by hours daily.
✓ Increase accuracy for product recommendations.
✓ Provide instant and detailed replies for store info questions.
✓ Keep chat memory for smoother conversations.
✓ Use existing WooCommerce and Google Drive data.

→ Improve customer satisfaction and speed.
→ Help convert more sales with timely responses.
→ Make store support less stressful and more consistent.


Automate shopping with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, but the user must adjust the vector store nodes and API credentials to match the new vector database.
Some usage occurs, especially for embeddings and chat completions, so monitor the OpenAI account limits carefully.
Data processes inside the user’s own n8n instance; secure API keys and use HTTPS for webhooks to keep data safe.
The Window Buffer Memory node saves session data keyed by sessionId, enabling memory of past chat turns.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.