Templates / Company knowledge base agent (RAG)

Company knowledge base agent (RAG)

Needs changes

by Abdul Mir ✓ · 20,677 views · created 2025-07-27 · 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 31 nodes and runs on Google Drive events (file created) (plus 2 other triggers). Along the way it connects Supabase Vector Store, Embeddings OpenAI, Google Drive and Supabase and 4 more.

How it runs

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

  1. Set ID (Edit Fields (Set)): sets 1 field: id
  2. Voice or Text (Switch): routes items into 2 branches
  3. Delete Row(s) (Supabase): delete
  4. Download File (Google Drive): download
  5. Download File (Telegram): work with file
  6. Text (Edit Fields (Set)): sets 1 field: text
  7. Get FIle ID (Edit Fields (Set)): sets 1 field: file_id
  8. Extract from File: extracts data from a file (text)
  9. Transcribe (OpenAI): transcribe (audio)
  10. RAG Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (MarketingLadder); memory: Window Buffer Memory

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

Services it uses

Supabase Vector StoreEmbeddings OpenAIGoogle DriveSupabaseOpenAITelegramOpenAI Chat ModelVector Store Question Answer

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 Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
RAG Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (18)

From the author

Overview Turn your docs into an AI-powered internal or public-facing assistant. This chatbot workflow uses RAG (Retrieval-Augmented Generation) with Supabase vector search to answer employee or customer questions based on your company documents—automatically…

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