Skip to content
Files & Documents

Index and Store Google Drive Documents Vectorially

12 nodes 421 142 Scheduled trigger
Download

Loading workflow…

Workflow Description

Scheduled automation that extracts documents from Google Drive, splits them into text chunks, generates vector embeddings via OpenAI, and stores them in Postgres and Pinecone for semantic search and retrieval.

How it works

  1. 1.Trigger automation on a defined schedule
  2. 2.Extract and load documents from Google Drive
  3. 3.Split text into manageable chunks
  4. 4.Generate vector embeddings using OpenAI
  5. 5.Store vectors in Pinecone and document data in Postgres

Use cases

  • Build a semantic search index for internal document libraries
  • Automate indexing of new files without manual effort
  • Enable fast retrieval of contextually relevant documents

Requirements

  • Connected Google Drive account with access to target files
  • Valid OpenAI API key with sufficient quota
  • Configured Postgres database and Pinecone index

Service Value

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

Apps Used

Google Drive Vector Store OpenAI Document Default Data Loader Text Splitter Schedule If Postgres Merge Code

Details

Trigger Scheduled trigger
Nodes 12
Apps 10
Views 421
Downloads 142

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

/

Download file1

Google Drive

#1

Pinecone Vector Store1

Vector Store Pinecone

#2

Embeddings OpenAI1

OpenAI

#3

Default Data Loader1

Document Default Data Loader

#4

Recursive Character Text Splitter1

Text Splitter Recursive Character Text Splitter

#5

Search files and folders1

Google Drive

#6

Schedule Trigger1

Schedule Trigger

#7

PDF Filter1

If

#8

Insert or update rows in a table1

Postgres

#9

Compare With DB1

Merge

#10

Code1

Code

#11

Fetch Cleaned File IDs1

Postgres

#12
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