Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. Get New Message
  2. OPENAI - Create thread
  3. Create User
  4. Merge
  5. OPENAI - Send message
  6. OPENAI - Run assistant
  7. OPENAI - Get messages
  8. Send Message to User
  9. If User exists
  10. Find User

Similar automations