RAG AI agent with and
Workflow Description
An advanced AI agent that combines vector-based document retrieval with dynamic conversational interaction. It loads documents from Google Drive, processes and embeds them, then responds to user queries with context-aware answers maintained through conversation memory.
How it works
- 1.Load documents from Google Drive and split them using recursive character text processing
- 2.Create document embeddings with Cohere and store vectors in Milvus database
- 3.Receive user queries through chat interface and convert them to search operations
- 4.Search matching document vectors and retrieve relevant contextual information
- 5.Feed context and query to OpenAI agent with buffered conversation memory
- 6.Send generated response to user through the chat channel
Use cases
- Intelligent customer support system that answers questions based on stored knowledge base
- Internal search engine that clarifies company information and policies for employees
- Document analysis assistant that extracts insights from multiple files simultaneously
- Interactive learning platform that answers student questions from course materials
Requirements
- Google Drive account containing documents for processing and analysis
- Valid API keys for OpenAI and Cohere services
- Running Milvus vector database server accessible to the workflow
- Supported file formats (PDF, DOCX, TXT) in the source folder
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 (14)
Default Data Loader
Document Default Data Loader
Embeddings Cohere
Embeddings Cohere
When chat message received
Chat Trigger
Watch New Files
Google Drive Trigger
Download New
Google Drive
Insert into Milvus
Vector Store Milvus
RAG Agent
Agent
Retrieve from Milvus
Vector Store Milvus
OpenAI 4o
OpenAI
Memory
Memory Buffer Window
Cohere embeddings
Embeddings Cohere
Set Chunks
Text Splitter Recursive Character Text Splitter
Extract from File
Extract From File
Sticky Note
Sticky Note