Kütüphane / Sohbet Botları ve Mesajlaşma Botları
Sohbet Botları ve Mesajlaşma Botları
Supabase ile bir yapay zekâ ajanı için Telegram mesajlarını tamponlama
Bir Telegram mesajı geldiğinde onu Supabase'de kuyruğa alır, daha fazlası için on saniye bekler, ardından birleştirilmiş mesajları tek bir yanıt için bir OpenAI ajanına gönderir.
Ne yapar
## Allow Users to Send a Sequence of Messages to an AI Agent in Telegram with Supabase ### Use Case When creating chatbots that interface through applications such as Telegram and WhatsApp, users can often sends multiple shorter messages in quick succession, in place of a single, longer message. This workflow accounts for this behaviour. ### What it Does This workflow allows users to send several messages in quick succession, treating them as one coherent conversation instead of separate messages requiring individual responses. ### How it Works 1. When messages arrive, they are stored in a Supabase PostgreSQL table 2. The system waits briefly to see if additional messages arrive 3. If no new messages arrive within the waiting period, all queued messages are: - Combined and processed as a single conversation - Responded to with one unified reply - Deleted from the queue
Adımlar
- Reply
- Receive Message
- Wait 10 Seconds
- Add to Queued Messages
- No Operation, do nothing
- Aggregate
- Delete Queued Messages
- OpenAI Chat Model
- Sort by Message ID
- Get Queued Messages
- Check Most Recent Message
- AI Agent
- Postgres Chat Memory
- Error Handler for ce90f954
Toplam 17 adım.
Benzer otomasyonlar
Sohbet Botları ve Mesajlaşma BotlarıSupabase Hafızalı ve OpenAI Asistanlı Telegram Botu10 adımSohbet Botları ve Mesajlaşma BotlarıSupabase ile OpenAI Ajanı İçin Telegram Mesajlarını Tamponlama13 adımSohbet Botları ve Mesajlaşma BotlarıDeepgram, OpenAI ve Supabase ile Telegram Sesli ve Yazılı Mesajlarını Yanıtlama16 adımSohbet Botları ve Mesajlaşma BotlarıTelegram ve Supabase üzerinde OpenAI Assistant ile sohbet49 adım