Templates / 📥 Transform Google Drive documents into vector embeddings

📥 Transform Google Drive documents into vector embeddings

Ready for 3.0

by Alex Kim ✓ · 8,962 views · created 2025-04-21 · Document Extraction, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Postgres PGVector Store, Google Drive and Embeddings OpenAI.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Search Folder (Google Drive): work with file folder
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Download File (Google Drive): download
  4. Switch: routes items into 3 branches
  5. Extract from PDF (Extract from File): extracts data from a file (pdf)
  6. Extract from Text (Extract from File): extracts data from a file (text)
  7. Extract from JSON (Extract from File): extracts data from a file (from json)
  8. Postgres PGVector Store: stores documents in the Postgres PGVector Store vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  9. Move File (Google Drive): move

Services it uses

Postgres PGVector StoreGoogle DriveEmbeddings OpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Automatically convert documents from Google Drive into vector embeddings using OpenAI, LangChain, and PGVector — fully automated through n8n. --- ⚙️ What It Does This workflow monitors a Google Drive folder for new files, supports multiple file types (PDF,…

Excerpt from Alex Kim's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.