Skip to content
Files & Documents

Load Google Drive Documents into Vector Database

14 nodes 482 125 Automatic trigger
Download

Loading workflow…

Workflow Description

Automation that retrieves files from Google Drive, splits them into manageable text chunks, converts them to embeddings using OpenAI, and stores them in PostgreSQL for semantic search capabilities without requiring manual intervention.

How it works

  1. 1.Retrieve documents from specified Google Drive folder
  2. 2.Split content into optimized text segments using recursive character splitting
  3. 3.Generate vector embeddings via OpenAI API for each segment
  4. 4.Batch insert embeddings into PostgreSQL vector store

Use cases

  • Create semantic search engine for enterprise document repository
  • Build intelligent information retrieval system for uploaded files

Requirements

  • Connected Google Drive account with document access
  • OpenAI API key for embedding generation
  • PostgreSQL database with vector extension enabled

Service Value

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

Apps Used

Document Default Data Loader Text Splitter OpenAI Vector Store Manual Trigger Split In Batches Google Drive Schedule If Twitter/X

Details

Trigger Automatic trigger
Nodes 14
Apps 10
Views 482
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 (14)

/

Default Data Loader

Document Default Data Loader

#1

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#2

Embeddings OpenAI

OpenAI

#3

Postgres PGVector Store

Vector Store P G Vector

#4

When clicking ‘Test workflow’

Manual Trigger

#5

Loop Over Items

Split In Batches

#6

Move File

Google Drive

#7

Download File

Google Drive

#8

Search Folder

Google Drive

#9

Schedule Trigger

Schedule Trigger

#10

Sticky Note

Sticky Note

#11

Switch

Switch

#12

Extract from PDF

Extract From File

#13

Extract from Text

Extract From File

#14

Extract from JSON

Extract From File

#15
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime