Templates / Create a multi-modal Telegram support bot with GPT-4 and Supabase RAG

Create a multi-modal Telegram support bot with GPT-4 and Supabase RAG

Ready for 3.0

by Ezema Kingsley Chibuzo ✓ · 11,909 views · created 2025-07-02 · Support Chatbot, 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 48 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Telegram, OpenAI, Google Drive and OpenAI Chat Model and 4 more. It also calls v2.convertapi.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Download file (Google Drive): download
  2. Input Message Router (Switch): routes items into 4 branches
  3. Typing… (Telegram): send chat action
  4. Add to Supabase Vector DB (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  5. Extract Text (Edit Fields (Set)): sets 1 field: text
  6. Download Audio (Telegram): work with file
  7. Download Photo (Telegram): work with file
  8. Supported Document File Types (Code): runs custom JavaScript code
  9. Knowledge Base AI Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Supabase Vector Store); memory: Postgres Chat Memory
  10. Translate to Text (OpenAI): translate (audio)

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

Services it uses

TelegramOpenAIGoogle DriveOpenAI Chat ModelEmbeddings OpenAIPostgres Chat MemoryReranker CohereSupabase Vector Store

HTTP calls to: v2.convertapi.com

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

🧠 What It Does This n8n workflow turns your Telegram bot into a smart, multi-modal AI assistant that accepts text, documents, images, and audio messages, interprets them using OpenAI models, and responds instantly with context-aware answers. It integrates a…

Excerpt from Ezema Kingsley Chibuzo'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.