AI Agents

Automate Intelligent Search Across Google Drive Documents

15 nodes 295 161 Automatic trigger
Download

Workflow Description

Intelligent automation that processes Google Drive files using an AI agent. The system splits documents into searchable chunks, generates OpenAI embeddings, and stores them in a vector database. Users can query their file contents through an interactive chat interface powered by advanced AI reasoning.

How it works

  1. 1.Trigger automation via chat interface or manual activation
  2. 2.Retrieve files from Google Drive and extract their content
  3. 3.Split documents into logical, searchable chunks using recursive text splitting
  4. 4.Generate vector embeddings for all chunks via OpenAI API
  5. 5.Store embeddings in Pinecone vector database for efficient retrieval
  6. 6.Answer user queries using AI agent with access to stored documents

Use cases

  • Search and find information across thousands of stored files without manual review
  • Summarize and analyze large documents by asking natural language questions
  • Build an intelligent assistant that understands your company's entire document repository

Requirements

  • Connected Google Drive account integrated with n8n
  • Valid OpenAI API key with embeddings and chat model access
  • Active Pinecone account for vector storage and retrieval
  • Read permissions for target Google Drive files

Service Value

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

Apps Used

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

Details

Trigger Automatic trigger
Nodes 15
Apps 7
Views 295
Downloads 161

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

/

Sticky Note

Sticky Note

#1

Sticky Note1

Sticky Note

#2

Sticky Note2

Sticky Note

#3

When clicking 'Test Workflow' button

Manual Trigger

#4

Pinecone Vector Store

Vector Store Pinecone

#5

When chat message received

Chat Trigger

#6

Question & Answer

Agent

#7

Set Google Drive file URL

Set

#8

Google Drive

Google Drive

#9

Default Data Loader

Document Default Data Loader

#10

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#11

Embeddings OpenAI1

OpenAI

#12

Embeddings OpenAI

OpenAI

#13

Pinecone Vector Store1

Vector Store Pinecone

#14

OpenAI Chat Model

OpenAI

#15