Templates / Telegram bot with Supabase memory and OpenAI assistant integration

Telegram bot with Supabase memory and OpenAI assistant integration

Ready for 3.0

by Mark Shcherbakov ✓ · 10,422 views · created 2024-10-06 · Support Chatbot, AI Chatbot

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 workflow has 10 nodes and runs on Telegram events (message). Along the way it connects Telegram and Supabase. It also calls api.openai.com over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. Find User (Supabase): get many
  2. If: checks a condition and branches into true / false
  3. Merge: merges the data from its input branches
  4. OPENAI - Create thread (HTTP Request): calls api.openai.com (POST)
  5. OPENAI - Send message (HTTP Request): calls an HTTP API (POST)
  6. Create User (Supabase): uses Supabase
  7. OPENAI - Run assistant (HTTP Request): calls an HTTP API (POST)
  8. OPENAI - Get messages (HTTP Request): calls an HTTP API
  9. Send Message to User (Telegram): uses Telegram

Services it uses

TelegramSupabase

HTTP calls to: api.openai.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 (6)

From the author

Video Guide I prepared a detailed guide that showed the whole process of building an AI bot, from the simplest version to the most complex in a template. .png) Who is this for? This workflow is ideal for developers, chatbot enthusiasts, and businesses looking…

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