Skip to main content

Personal shopper chatbot for WooCommerce with RAG using Google Drive and openAI

Workflow preview

Workflow preview
100%
Personal shopper chatbot for WooCommerce with RAG using Google Drive and openAI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow combines OpenAI , Retrieval Augmented Generation (RAG) , and WooCommerce to create an intelligent personal shopping assistant. It handles two scenarios: 1. Product Search : Extracts u...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolcalculator, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.toolvectorstore, @n8n/n8n-nodes-langchain.vectorstoreqdrant, @n8n/n8n-nodes-langchain.embeddingsopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Personal shopper chatbot for WooCommerce with RAG using Google Drive and openAI
Workflow name
Personal shopper chatbot for WooCommerce with RAG using Google Drive and openAI

This workflow combines OpenAI, Retrieval-Augmented Generation (RAG), and WooCommerce to create an intelligent personal shopping assistant. It handles two scenarios:

  1. Product Search: Extracts user intent (keywords, price ranges, SKUs) and fetches matching products from WooCommerce.
  2. General Inquiries: Answers store-related questions (e.g., opening hours, policies) using RAG and documents stored in Google Drive.

How It Works

1. Chat Interaction & Intent Detection
  • Chat Trigger:
    • Starts when a user sends a message ("When chat message received").
  • Information Extractor:
    • Uses OpenAI to analyze the message and determine if the user is searching for a product or asking a general question.
    • Extracts:
      • search (true/false).
      • keyword, priceRange, SKU, category (if product-related).
    • Example:
      {  
        "search": true,  
        "keyword": "red handbags",  
        "priceRange": { "min": 50, "max": 100 },  
        "SKU": "BAG123",  
        "category": "women's accessories"  
      }  
      
2. Product Search (WooCommerce Integration)
  • AI Agent:
    • If search: true, routes the request to the personal_shopper tool.
    • WooCommerce Node:
      • Queries the WooCommerce store using extracted parameters (keyword, priceRange, SKU).
      • Filters products in stock (stockStatus: "instock").
      • Returns matching products (e.g., "red handbags under €100").
3. General Inquiries (RAG System)
  • RAG Tool:
    • If search: false, uses the Qdrant Vector Store to retrieve store information from documents.
    • Google Drive Integration:
      • Documents (e.g., store policies, FAQs) are stored in Google Drive.
      • Downloaded, split into chunks, and embedded into Qdrant for semantic search.
    • OpenAI Chat Model: Generates answers based on retrieved documents (e.g., "Our store opens at 9 AM").

Set Up Steps

1. Configure the RAG System
  • Google Drive Setup:
    • Upload store documents .
    • Update the Google Drive2 node with your folder ID.
  • Qdrant Vector Database:
    • Clean the collection (update Qdrant Vector Store node with your URL).
    • Use Embeddings OpenAI to convert documents into vectors.
2. Configure OpenAI & WooCommerce
  • OpenAI Credentials:
    • Add your API key to all OpenAI nodes (OpenAI Chat Model, Embeddings OpenAI, etc.).
  • WooCommerce Integration:
    • Connect your WooCommerce store (credentials in the personal_shopper node).
    • Ensure product data is synced and accessible.
3. Customize the AI Agent
  • Intent Detection:
    • Modify the Information Extractor’s system prompt to align with your store’s terminology.
  • RAG Responses:
    • Update the tool description to reflect your store’s documents.

Notes

This template is ideal for e-commerce businesses needing a hybrid assistant for product discovery and customer support.

Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - Window Buffer Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 4 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 6 - RAG

Type / Role
@n8n/n8n-nodes-langchain.toolVectorStore - toolVectorStore
Config choices
Version 1

Block 7 - Qdrant Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1

Block 8 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.1

Block 9 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 10 - personal_shopper

Type / Role
n8n-nodes-base.wooCommerceTool - wooCommerceTool
Config choices
Version 1

Block 11 - Information Extractor

Type / Role
@n8n/n8n-nodes-langchain.informationExtractor - informationExtractor
Config choices
Version 1

Block 12 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.1

Block 13 - Google Drive2

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 14 - Google Drive1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 15 - Embeddings OpenAI3

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.1

Block 16 - Default Data Loader2

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 17 - Token Splitter1

Type / Role
@n8n/n8n-nodes-langchain.textSplitterTokenSplitter - textSplitterTokenSplitter
Config choices
Version 1

Block 18 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 19 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Qdrant Vector Store1

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1

Block 22 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Personal shopper chatbot for WooCommerce with RAG using Google Drive and openAI
Complexity advanced
Nodes 25
Categories Support Chatbot, AI Chatbot
Author Davide
Published 23 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2784/2784.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Personal shopper chatbot for WooCommerce with RAG using Google Drive and openAI do?

This workflow combines OpenAI , Retrieval Augmented Generation (RAG) , and WooCommerce to create an intelligent personal shopping assistant. It handles two scenarios: 1. Product Search : Extracts u...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.