AI Agents

Retrieve and analyze company documents from Google Drive using RAG

18 nodes 375 174 Automatic trigger
Download

Workflow Description

Intelligent workflow that retrieves documents stored in Google Drive, splits them into text segments, converts them to embeddings using Gemini, and stores them in Pinecone vector store to enable smart responses to employee and customer inquiries.

How it works

  1. 1.Receive query through chat interface or manual trigger
  2. 2.Fetch relevant documents from Google Drive and split into text chunks
  3. 3.Convert chunks to semantic embeddings via Gemini and store in Pinecone
  4. 4.Search vector store for documents closest to the user's query
  5. 5.Generate response backed by original documents through AI agent

Use cases

  • Automatically answer employee questions about company policies and procedures
  • Provide accurate information from lengthy documents without manual search

Requirements

  • Google Drive account containing company documents in text-compatible formats
  • API keys for accessing Gemini and Pinecone services

Service Value

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

Apps Used

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

Details

Trigger Automatic trigger
Nodes 18
Apps 8
Views 375
Downloads 174

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

/

Pinecone Vector Store

Vector Store Pinecone

#1

Embeddings Google Gemini

Gemini Model

#2

Default Data Loader

Document Default Data Loader

#3

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#4

AI Agent

Agent

#5

Vector Store Tool

Tool Vector Store

#6

Pinecone Vector Store (Retrieval)

Vector Store Pinecone

#7

Embeddings Google Gemini (retrieval)

Gemini Model

#8

Download File From Google Drive

Google Drive

#9

Sticky Note2

Sticky Note

#10

Google Drive File Updated

Google Drive Trigger

#11

Google Drive File Created

Google Drive Trigger

#12

Window Buffer Memory

Memory Buffer Window

#13

When chat message received

Chat Trigger

#14

Sticky Note

Sticky Note

#15

Google Gemini Chat Model

Gemini Model

#16

Google Gemini Chat Model (retrieval)

Gemini Model

#17

Sticky Note1

Sticky Note

#18