Files & Documents

Extract Google Drive documents and answer questions using AI

17 nodes 275 145 Automatic trigger
Download

Workflow Description

Automation loads PDF files from Google Drive, splits them into segments, converts them to intelligent embeddings, and stores them in a vector database. It answers user inquiries about file content using OpenAI's advanced language models with semantic search.

How it works

  1. 1.Trigger the automation manually or via Webhook to start the workflow
  2. 2.Load PDF files from Google Drive and process their content
  3. 3.Split text into logical chunks and convert them to embeddings
  4. 4.Query Qdrant vector database in response to user questions
  5. 5.Send the question to GPT model to generate answers based on retrieved content

Use cases

  • Get instant answers to questions about company documents stored in Google Drive
  • Build an intelligent document search engine that understands context and delivers accurate responses

Requirements

  • Connected Google Drive account in n8n with file access permissions
  • OpenAI API key to use advanced AI language models
  • Active Qdrant vector database to store embeddings and enable vector search

Service Value

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

Apps Used

OpenAI Manual Chat Trigger LLM Chain Vector Store Google Drive Document Binary Input Loader Text Splitter

Details

Trigger Automatic trigger
Nodes 17
Apps 7
Views 275
Downloads 145

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

/

Embeddings OpenAI1

OpenAI

#1

On new manual Chat Message

Manual Chat Trigger

#2

Sticky Note1

Sticky Note

#3

Retrieval QA Chain

Chain Retrieval Qa

#4

Respond to Webhook

Webhook

#5

Vector Store Retriever

Retriever Vector Store

#6

Webhook1

Webhook

#7

When clicking "Execute Workflow"

Manual Trigger

#8

Google Drive

Google Drive

#9

Binary to Document

Document Binary Input Loader

#10

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#11

Embeddings OpenAI

OpenAI

#12

Sticky Note

Sticky Note

#13

Qdrant Vector Store

Vector Store Qdrant

#14

Qdrant Vector Store1

Vector Store Qdrant

#15

OpenAI Chat Model

OpenAI

#16

Sticky Note2

Sticky Note

#17