Templates / Index n8n workflows and enable semantic AI search with OpenAI and Supabase

Index n8n workflows and enable semantic AI search with OpenAI and Supabase

Needs changes

by WeblineIndia ✓ · 81 views · created 2026-04-25 · 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 17 nodes and runs on a schedule (every 24 hours) (plus 1 other trigger). Along the way it connects Supabase, Embeddings OpenAI, Supabase Vector Store and OpenAI Chat Model and 1 more.

How it runs

Trigger: On a schedule (every 24 hours) (plus 1 other trigger).

  1. Fetch n8n Workflows API (HTTP Request): calls an HTTP API
  2. AI Workflow Assistant (AI Agent): runs an AI agent, with model: LLM Brain (Agent); 1 tool (Workflow Search Tool)
  3. Extract Workflow List (Split Out): splits a list into separate items
  4. Return AI Response (Respond to Webhook): sends the response back to the webhook caller
  5. Process Each Workflow (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Clear Existing Vectors (Supabase): delete
  7. Transform Workflow to Chunks (Code): runs custom JavaScript code
  8. Store in Vector DB (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Generate Embeddings; document loader: Prepare Documents

Services it uses

SupabaseEmbeddings OpenAISupabase Vector StoreOpenAI 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 AI Workflow Assistant (v1.1): 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)
AI Workflow Assistant (v1.1)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (14)

From the author

n8n Workflow Intelligence (RAG): Auto Indexing & Semantic AI Search with Supabase Vector DB This workflow automatically indexes your n8n workflows every 24 hours, converts them into vector embeddings using OpenAI and stores them in Supabase. It exposes a…

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