Templates / Run a Telegram knowledge base bot with OpenRouter, OpenAI, Supabase and Redis

Run a Telegram knowledge base bot with OpenRouter, OpenAI, Supabase and Redis

Ready for 3.0

by Konstantin · 3 views · created 2026-09-24 · Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 42 nodes and runs on Telegram events (message, callback query) (plus 1 other trigger). Along the way it connects Telegram, Redis, OpenAI and OpenRouter Chat Model and 5 more.

How it runs

Trigger: On Telegram events (message, callback query) (plus 1 other trigger).

  1. Normalize Telegram Update (Code): runs custom JavaScript code
  2. Sync Configuration (Edit Fields (Set)): sets 1 field: googleDriveFolderId
  3. Route Telegram Event (Switch): routes items into 2 branches
  4. Search Knowledge Base Files (Google Drive): work with file folder
  5. Is Authorized Control Callback? (If): checks a condition and branches into true / false
  6. Get Access Status (Redis): get
  7. Is Google Document? (If): checks a condition and branches into true / false
  8. Prepare Access Decision (Code): runs custom JavaScript code
  9. Reject Unauthorized Callback (Telegram): answer query (callback)
  10. Parse Access Status (Code): runs custom JavaScript code

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

Services it uses

TelegramRedisOpenAIOpenRouter Chat ModelRedis Chat MemorySupabase Vector StoreEmbeddings OpenAIGoogle DriveGoogle Docs

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (19)

From the author

Quick overview This workflow runs a Telegram private knowledge-base bot with admin-approved access, answering text or voice questions using an OpenRouter chat model grounded in a Supabase vector knowledge base, and includes a manual Google Docs (Google Drive)…

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