Templates / Google Drive to Supabase contextual vector database sync for RAG applications

Google Drive to Supabase contextual vector database sync for RAG applications

Ready for 3.0

by Michael Taleb ✓ · 1,017 views · created 2025-09-03 · Engineering, 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 46 nodes and runs when a chat message arrives (plus 3 other triggers). Along the way it connects OpenAI Chat Model, Google Drive, Supabase and Supabase Vector Store and 1 more. It also calls api.openai.com over HTTP.

How it runs

Trigger: When a chat message arrives (plus 3 other triggers).

  1. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Query Vector Store); memory: Simple Memory
  2. Embedding (HTTP Request): calls api.openai.com (POST)
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Edge Function (HTTP Request): calls an HTTP API (POST)
  6. Google Drive: download
  7. Search Record Manager (Supabase): get many
  8. Extract from File: extracts data from a file (pdf)
  9. If: checks a condition and branches into true / false
  10. Set Text (Edit Fields (Set)): sets 1 field: text

…plus 23 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle DriveSupabaseSupabase Vector StoreEmbeddings OpenAI

HTTP calls to: api.openai.com

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

From the author

Workflow Summary This automation keeps your Supabase vector database synchronized with documents stored in Google Drive, while also making the data contextual and vector based for better retrieval. When a file is added or modified, the workflow extracts its…

Excerpt from Michael Taleb'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.