Templates / Interactive knowledge base chat with Supabase RAG using AI 📚💬

Interactive knowledge base chat with Supabase RAG using AI 📚💬

Needs changes

by Immanuel ✓ · 5,547 views · created 2025-04-30 · Internal Wiki, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 43 nodes and runs on Google Drive events (plus 2 other triggers). Along the way it connects Google Drive, Postgres, Supabase and Supabase Vector Store and 4 more.

How it runs

Trigger: On Google Drive events (plus 2 other triggers).

  1. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  2. Edit Fields (Edit Fields (Set)): sets or maps fields
  3. Set File ID (Edit Fields (Set)): sets or maps fields
  4. RAG AI Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 4 tools (List Documents, Query Document Rows, Supabase Vector Store, Get Full Document Text - Get File Contents); memory: Postgres Chat Memory
  5. Validate File (If): checks a condition and branches into true / false
  6. Check for Duplicates (Postgres): uses Postgres
  7. Set Error Type (Edit Fields (Set)): sets or maps fields
  8. If: checks a condition and branches into true / false
  9. Error Logger (Supabase): uses Supabase
  10. Log Duplicate (Supabase): uses Supabase

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

Services it uses

Google DrivePostgresSupabaseSupabase Vector StoreEmbeddings OpenAIGmailOpenAI Chat ModelPostgres Chat Memory

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in RAG AI Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
RAG AI Agent (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (21)

From the author

Google Drive File Ingestion to Supabase for Knowledge Base 📂💾 Overview 🌟 This n8n workflow automates the process of ingesting files from Google Drive into a Supabase database, preparing them for a knowledge base system. It supports text-based files (PDF,…

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