RAG with andOpenAI
Workflow Description
An advanced automation template combining Retrieval-Augmented Generation (RAG) with OpenAI intelligence, enabling intelligent agents to answer user questions based on documents from Google Drive while maintaining conversation memory and context awareness.
How it works
- 1.Trigger the workflow manually or via webhook request
- 2.Load documents from Google Drive and split them into manageable chunks using Text Splitter
- 3.Convert text passages into embeddings via OpenAI model and store in Qdrant vector database
- 4.Execute intelligent agent that retrieves relevant documents and calls language model for response generation
- 5.Maintain conversation history to ensure continuity and context in dialogue
- 6.Send response to client through webhook or HTTP endpoint
Use cases
- Build an intelligent assistant that answers employee questions about company policies stored in Google Drive
- Create an automated customer support system extracting information from product databases and procedures
- Develop a knowledge search engine that understands context and retrieves accurate answers from internal documentation
Requirements
- Valid OpenAI API key for accessing embedding and language models
- Authenticated Google Drive connection containing documents to analyze
- Running Qdrant server for vector storage and retrieval operations
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 (23)
AI Agent
Agent
Vector Store Tool
Tool Vector Store
Qdrant Vector Store
Vector Store Qdrant
Embeddings OpenAI
OpenAI
Sticky Note4
Sticky Note
Sticky Note
Sticky Note
When clicking ‘Test workflow’
Manual Trigger
Create collection
HTTP Request
Refresh collection
HTTP Request
Get folder
Google Drive
Download Files
Google Drive
Default Data Loader
Document Default Data Loader
Token Splitter
Text Splitter Token Splitter
Sticky Note3
Sticky Note
Qdrant Vector Store1
Vector Store Qdrant
Embeddings OpenAI1
OpenAI
Sticky Note5
Sticky Note
Respond to ElevenLabs
Webhook
OpenAI
OpenAI
Listen
Webhook
Window Buffer Memory
Memory Buffer Window
OpenAI Chat Model
OpenAI
Sticky Note6
Sticky Note