Templates / AI study assistant with RAG - Google Gemini with Drive & Supabase vector search

AI study assistant with RAG - Google Gemini with Drive & Supabase vector search

Ready for 3.0

by Mantaka Mahir ✓ · 1,563 views · created 2025-11-09 · Personal Productivity, 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 17 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Embeddings Google Gemini, Supabase Vector Store, Postgres Chat Memory and Google Gemini Chat Model and 2 more.

How it runs

Trigger: When a chat message arrives (plus 1 other trigger).

  1. Study Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 3 tools (Calculator, Supabase Vector Store, Folder all file to vector); memory: Postgres Chat Memory
  2. Code: runs custom JavaScript code
  3. Execute a SQL query (Postgres): run a query
  4. Search files and folders (Google Drive): work with file folder
  5. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Download File (Google Drive): download
  7. Insert into Supabase Vectorstore (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Embeddings Google Gemini; document loader: Default Data Loader

Services it uses

Embeddings Google GeminiSupabase Vector StorePostgres Chat MemoryGoogle Gemini Chat ModelPostgresGoogle Drive

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

From the author

How it works A complete AI-powered study assistant system that lets you chat naturally with your documents stored in Google Drive: The system has two connected workflows: 1. Document Indexing Pipeline (Sub-workflow): • Accepts Google Drive folder URLs •…

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