İçeriğe geç
YENİPazar yeri ve trig8n Agent: geliştirdiğinizi satın; planlar ve değişiklikler siz görmeden önce test edilsin. Yeniliklere bak

Kütüphane / Sohbet Botları ve Mesajlaşma Botları

Sohbet Botları ve Mesajlaşma Botları

Gemini ile Telegram Metin ve Sesli Mesajlarını Yanıtlama

Bir Telegram metin veya sesli mesajı geldiğinde, ses OpenAI tarafından yazıya dökülür ve bir Gemini aracısı yanıtı yazar.

Ne yapar

## Processing Telegram Messages: This section handles incoming messages from Telegram. It first checks if the message contains text. 1. Text Message: If the message includes text, it's directly routed to the analysis switch node. 2. Audio Message: If the message is an audio file: * The audio file is downloaded. * The audio is transcribed into text. * The transcribed text is then sent to the analysis switch node. Finally, the analyzed text (whether directly from a text message or transcribed from audio) is forwarded for further processing based on the analysis results.

Adımlar

  1. AI Agent
  2. Google Gemini Chat Model
  3. Recieve Telegram Message
  4. Check For Text or Voice Message
  5. Download Audio File
  6. Transcribe Audio File
  7. If Voice Message
  8. Code to remove unwanted characters from LLM response
  9. Code to split output into chunks under 4000 characters
  10. Respond to Telegram Message
  11. Wipe Conversation Memory
  12. Store Conversation Memory
  13. Set prompt to start a new speech
  14. Set prompt to generate a speech based on the feedback

Toplam 16 adım.

Benzer otomasyonlar