Templates / Document Q&A chatbot with Gemini AI and Supabase vector search for Telegram

Document Q&A chatbot with Gemini AI and Supabase vector search for Telegram

Needs changes

by Mohammad Ghaffarifar · 20,533 views · created 2025-05-08 · Personal Productivity, 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 25 nodes and runs on Telegram events (message). Along the way it connects Google Gemini Chat Model, OpenWeatherMap, Telegram and Embeddings Google Gemini and 2 more.

How it runs

Trigger: On Telegram events (message).

  1. Command Router (Switch): routes items into 2 branches
  2. Telegram: work with file
  3. AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 3 tools (Think, OpenWeatherMap, Answer questions with a vector store); memory: Simple Memory
  4. Unsupported message (Telegram): uses Telegram
  5. Extract from File: extracts data from a file (pdf)
  6. Send processing document message (Telegram): uses Telegram
  7. Handle formatting and split (Code): runs custom Python code
  8. Supabase - Save Embeddings (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Embeddings Google Gemini; document loader: Default Data Loader
  9. Send embedding Started message (Telegram): uses Telegram
  10. Split Out: splits a list into separate items

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

Services it uses

Google Gemini Chat ModelOpenWeatherMapTelegramEmbeddings Google GeminiVector Store Question AnswerSupabase Vector Store

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 Agent (v1.9): 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 →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.9)
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

This template creates a Telegram AI Assistant that answers questions based on your documents, powered by Google Gemini and Supabase. Key features include Intelligent HTML Post-processing for rich formatting in Telegram and Adaptive Message Chunking to handle…

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