AI Agents

Extract and Answer Questions about Google Drive Documents with AI

16 nodes 338 148 Automatic trigger
Download

Workflow Description

An automation template that scans Google Drive files automatically, segments them into logical chunks, generates knowledge vectors through OpenAI embeddings, stores them in Pinecone, and enables intelligent querying to answer questions about document content in real time.

How it works

  1. 1.Activate the trigger when receiving a query through the chat interface or manually
  2. 2.Load documents from Google Drive and process their content
  3. 3.Split text into manageable segments and generate OpenAI embeddings
  4. 4.Store vectors in Pinecone and organize the knowledge base
  5. 5.Search the vector store for relevant document sections
  6. 6.Generate an intelligent response using the language model and deliver it to the user

Use cases

  • Instantly answer employee questions about company policies and internal documentation
  • Automatically analyze stored reports and extract required data from Drive files
  • Provide a smart assistant that responds to client inquiries based on your company's knowledge base

Requirements

  • Google account with Google Drive access permissions
  • OpenAI API key for embeddings and response generation
  • Pinecone account for vector storage and retrieval

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 338
Downloads 148

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