Library / Chatbots & Messaging Bots
Chatbots & Messaging Bots
Answer Telegram messages with OpenAI and remember context in Supabase
Replies to incoming Telegram messages using OpenAI and stores and retrieves user history in Supabase so the bot keeps conversation context. Runs whenever a Telegram message arrives.
What it does
, allowing the bot to maintain continuity and context in conversations, leading to a more human-like and engaging experience. This Telegram bot template connects with OpenAI to answer user queries while storing and retrieving user information from a Supabase database. The memory component ensures that the bot can reference past interactions, making it suitable for use cases such as customer support, virtual assistants, or any application where context retention is crucial.
The steps
- Get New Message
- OPENAI - Create thread
- Create User
- Merge
- OPENAI - Send message
- OPENAI - Run assistant
- OPENAI - Get messages
- Send Message to User
- If User exists
- Find User
Similar automations
Chatbots & Messaging BotsBuffer Telegram Messages for an OpenAI Agent with Supabase13 stepsChatbots & Messaging BotsBuffer Telegram Messages for an AI Agent with Supabase17 stepsChatbots & Messaging BotsAnswer Telegram Voice and Text Messages with Deepgram, OpenAI and Supabase16 stepsChatbots & Messaging BotsAnswer Slack Mentions and DMs with a Context-Aware Bot12 steps