AI Agents

Automate Google Drive

16 nodes 235 125 Automatic trigger
Download

Workflow Description

An intelligent automation template that monitors Google Drive files, extracts content using AI embeddings, stores data in a vector database, and enables chatbot-style queries against your documents through OpenAI-powered retrieval chains.

How it works

  1. 1.Monitor Google Drive for new or modified documents via active trigger
  2. 2.Load and recursively split document content into manageable text chunks
  3. 3.Generate vector embeddings for text segments using OpenAI's embedding model
  4. 4.Store embeddings in Pinecone vector database for semantic search
  5. 5.Answer user queries using retrieval-augmented generation chain with LLM

Use cases

  • Automatically analyze contracts and legal documents to extract specific clauses or obligations
  • Enable employees to ask questions about company policies stored in Drive

Requirements

  • Active Google Drive account with API access and proper authentication
  • Valid API keys for OpenAI and Pinecone vector database service

Service Value

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

Apps Used

Google Drive Text Splitter OpenAI Document Default Data Loader LLM Chain Vector Store Chat Trigger

Details

Trigger Automatic trigger
Nodes 16
Apps 7
Views 235
Downloads 125

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

/

Google Drive

Google Drive

#1

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#2

Embeddings OpenAI

OpenAI

#3

Sticky Note

Sticky Note

#4

Sticky Note1

Sticky Note

#5

Default Data Loader

Document Default Data Loader

#6

Sticky Note2

Sticky Note

#7

Question and Answer Chain

Chain Retrieval Qa

#8

OpenAI Chat Model

OpenAI

#9

Embeddings OpenAI2

OpenAI

#10

Vector Store Retriever

Retriever Vector Store

#11

Read Pinecone Vector Store

Vector Store Pinecone

#12

Insert into Pinecone vector store

Vector Store Pinecone

#13

When clicking 'Chat' button below

Chat Trigger

#14

When clicking 'Test Workflow' button

Manual Trigger

#15

Set Google Drive file URL

Set

#16