Telegram bot with Supabase memory and OpenAI assistant integration
Ready for 3.0What 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).
- Find User (Supabase): get many
- If: checks a condition and branches into true / false
- Merge: merges the data from its input branches
- OPENAI - Create thread (HTTP Request): calls api.openai.com (POST)
- OPENAI - Send message (HTTP Request): calls an HTTP API (POST)
- Create User (Supabase): uses Supabase
- OPENAI - Run assistant (HTTP Request): calls an HTTP API (POST)
- OPENAI - Get messages (HTTP Request): calls an HTTP API
- Send Message to User (Telegram): uses Telegram
Services it uses
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)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - HTTP Request
n8n-nodes-base.httpRequest - Supabase
n8n-nodes-base.supabase - Merge
n8n-nodes-base.merge - Telegram
n8n-nodes-base.telegram - If
n8n-nodes-base.if
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…