AI Agents

AI agent for document retrieval and intelligent answering

14 nodes 313 160 Automatic trigger
Download

Workflow Description

Creates an AI agent that retrieves documents from Google Drive, processes them with embeddings, stores them in a vector database, and answers user questions based on the retrieved document content using natural language understanding.

How it works

  1. 1.Load documents from Google Drive and automatically split their text into chunks
  2. 2.Convert text chunks into numerical embeddings and store them in Milvus vector database
  3. 3.Activate an AI agent that receives and processes questions via chat interface
  4. 4.Search the vector store and retrieve the most relevant document sections
  5. 5.Generate answers from OpenAI model based on the retrieved documents

Use cases

  • Build an intelligent assistant that answers questions about company documents and policies
  • Automate customer inquiry responses using a digital knowledge base
  • Create a semantic search engine that understands meaning and context

Requirements

  • Google Drive account with documents ready for analysis
  • OpenAI and Cohere API keys for embeddings and language models
  • Milvus vector database instance configured and accessible

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 313
Downloads 160

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