Templates / Multi-format document processing for RAG chatbot with Google Drive & Supabase

Multi-format document processing for RAG chatbot with Google Drive & Supabase

Ready for 3.0

by edisantosa · 853 views · created 2025-10-20 · 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 16 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Embeddings OpenAI and Supabase Vector Store.

How it runs

Trigger: On Google Drive events (file created).

  1. Set File ID (Edit Fields (Set)): sets 2 fields: file_id, file_type
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Switch: routes items into 6 branches
  4. Download File (Google Drive): download
  5. Extract PDF Text (Extract from File): extracts data from a file (pdf)
  6. Extract from Text File (Extract from File): extracts data from a file (text)
  7. Extract from Excel (Extract from File): extracts data from a file (xlsx)
  8. Convert to Google Doc (HTTP Request): calls an HTTP API (POST)
  9. Insert into Supabase Vectorstore (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Embeddings OpenAI; document loader: Enhanced Default Data Loader
  10. Aggregate: combines items into one

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

Services it uses

Google DriveEmbeddings OpenAISupabase Vector Store

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

From the author

This n8n workflow is the data ingestion pipeline for the "RAG System V2" chatbot. It automatically monitors a specific Google Drive folder for new files, processes them based on their type, and inserts their content into a Supabase vector database to make it…

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