Templates / Ai agent to chat with files in Supabase Storage and Google Drive

Ai agent to chat with files in Supabase Storage and Google Drive

Needs changes

by Mark Shcherbakov ✓ · 9,397 views · created 2025-05-15 · 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-10-19.

What this workflow does

This AI workflow has 49 nodes and runs when an HTTP POST request hits its webhook URL (plus 4 other triggers). Along the way it connects Embeddings OpenAI, Supabase, Supabase Vector Store and OpenAI Chat Model and 1 more. It also calls api.cloud.llamaindex.ai over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 4 other triggers).

  1. Edit Fields (Edit Fields (Set)): sets 2 fields: session_id, message
  2. Edit Fields (Edit Fields (Set)): sets 2 fields: session_id, message
  3. Get All Files (Supabase): get many
  4. Set File ID (Edit Fields (Set)): sets 2 fields: file_id, extension
  5. Merge: merges the data from its input branches
  6. Aggregate: combines items into one
  7. Delete Old Doc Rows (Supabase): delete
  8. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Supabase Vector Store); memory: Simple Memory
  9. Get All files (HTTP Request): calls an HTTP API (POST)
  10. Download File (Google Drive): download

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

Services it uses

Embeddings OpenAISupabaseSupabase Vector StoreOpenAI Chat ModelGoogle Drive

HTTP calls to: api.cloud.llamaindex.ai

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 AI Agent1 (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).

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

Nodes used (22)

From the author

Video Guide I prepared a detailed guide that illustrates the entire process of building an AI agent using Supabase and Google Drive within N8N workflows. Youtube Link Who is this for? This workflow is designed for developers, data scientists, and business…

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