Перейти к содержанию
НОВОЕМаркетплейс и trig8n Agent: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Чат-боты и боты для мессенджеров

Чат-боты и боты для мессенджеров

Отвечать на сообщения Telegram с помощью OpenAI и сохранять контекст в Supabase

Отвечает на входящие сообщения Telegram с помощью OpenAI, сохраняет и извлекает историю пользователя в Supabase, чтобы бот сохранял контекст беседы. Запускается при каждом входящем сообщении Telegram.

Что делает

, 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.

Шаги

  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

Похожие автоматизации