AI Agents

RAG AI agent with and

14 nodes 219 135 Automatic trigger
Download

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. 1.Load documents from Google Drive and split them using recursive character text processing
  2. 2.Create document embeddings with Cohere and store vectors in Milvus database
  3. 3.Receive user queries through chat interface and convert them to search operations
  4. 4.Search matching document vectors and retrieve relevant contextual information
  5. 5.Feed context and query to OpenAI agent with buffered conversation memory
  6. 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

Document Default Data Loader Embeddings Chat Trigger Google Drive Vector Store AI Agent OpenAI Memory Text Splitter

Details

Trigger Automatic trigger
Nodes 14
Apps 9
Views 219
Downloads 135

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 (14)

/

Default Data Loader

Document Default Data Loader

#1

Embeddings Cohere

Embeddings Cohere

#2

When chat message received

Chat Trigger

#3

Watch New Files

Google Drive Trigger

#4

Download New

Google Drive

#5

Insert into Milvus

Vector Store Milvus

#6

RAG Agent

Agent

#7

Retrieve from Milvus

Vector Store Milvus

#8

OpenAI 4o

OpenAI

#9

Memory

Memory Buffer Window

#10

Cohere embeddings

Embeddings Cohere

#11

Set Chunks

Text Splitter Recursive Character Text Splitter

#12

Extract from File

Extract From File

#13

Sticky Note

Sticky Note

#14