AI Agents

OpenAI with RAG andWooCommerce

25 nodes 212 119 Automatic trigger
Download

Workflow Description

An advanced automation template combining OpenAI's language model with Retrieval-Augmented Generation (RAG) to create an intelligent agent that answers customer inquiries based on an updated knowledge base, fully integrated with your WooCommerce store for personalized support and recommendations.

How it works

  1. 1.Receive customer inquiries through the live chat trigger interface
  2. 2.Search the knowledge base stored in Qdrant and retrieve relevant information using embeddings
  3. 3.Process and segment text into indexed chunks for efficient search and retrieval
  4. 4.Generate accurate responses using OpenAI's language model based on retrieved context
  5. 5.Access WooCommerce product and customer data to provide personalized recommendations
  6. 6.Publish results and recommendations to social media while maintaining conversation history

Use cases

  • Automated customer support that intelligently responds to repeated inquiries using a specialized knowledge base
  • Personalized product recommendations that consider purchase history and customer preferences

Requirements

  • Valid OpenAI API key with full access permissions
  • Active WooCommerce store with API access enabled
  • Documented knowledge base and text files ready for uploading and indexing in the vector memory system

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Chat Trigger Memory Tool OpenAI Vector Store Twitter/X Google Drive Document Default Data Loader Text Splitter AI Agent

Details

Trigger Automatic trigger
Nodes 25
Apps 10
Views 212
Downloads 119

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (25)

/

When chat message received

Chat Trigger

#1

Window Buffer Memory

Memory Buffer Window

#2

Calculator

Tool Calculator

#3

Edit Fields

Set

#4

OpenAI Chat Model

OpenAI

#5

RAG

Tool Vector Store

#6

Qdrant Vector Store

Vector Store Qdrant

#7

Embeddings OpenAI

OpenAI

#8

OpenAI Chat Model1

OpenAI

#9

personal_shopper

Woo Commerce Tool

#10

Information Extractor

Information Extractor

#11

OpenAI Chat Model2

OpenAI

#12

Google Drive2

Google Drive

#13

Google Drive1

Google Drive

#14

Embeddings OpenAI3

OpenAI

#15

Default Data Loader2

Document Default Data Loader

#16

Token Splitter1

Text Splitter Token Splitter

#17

When clicking ‘Test workflow’

Manual Trigger

#18

HTTP Request

HTTP Request

#19

Sticky Note

Sticky Note

#20

Qdrant Vector Store1

Vector Store Qdrant

#21

Sticky Note1

Sticky Note

#22

Sticky Note2

Sticky Note

#23

Sticky Note3

Sticky Note

#24

AI Agent

Agent

#25