A bot collects the lead, then hands the chat to a human

A messenger bot greets the client and collects the details for an inquiry, and once it's complete it hands the conversation to a human and steps aside.

  • Greets the client in Telegram and collects the inquiry
  • Hands the chat to a human once everything's gathered
  • Steps aside after handoff — gives a canned reply
  • Remembers each chat's stage in redis
RedisRedis Chat Memory

How it works

To pass leads from Telegram to Redis automatically, use a ready-made scenario — no manual copying, no lost leads.

  1. Starts when: Handoff Subworkflow
  2. Then: Notify user
  3. Then: Set Interaction to Human
  4. Then: Human Handoff using Send and Wait
  5. Then: Set Interaction to Bot
  6. Then: Update Agent Memory
  7. Then: Send Response2
  8. Then: Get Interaction State
  9. Check: Switch Interaction
  10. If yes: Get Canned Response
  11. If no: After Sales Agent
  12. Then: Send Response3
  13. If no: Onboarding Agent
  14. Then: Get Onboarding Chat History
  15. Then: Information Extractor
  16. Then: With Defaults
  17. Check: Has All Criteria?
  18. If yes: Handoff Subworkflow1
  19. Then: Send Response
  20. Then: Update Agent Memory1
  21. If no: Continue Conversation
  22. Then: Model
  23. Then: Memory
  24. Starts when: Telegram Trigger
  25. Then: OpenAI Chat Model
  26. Then: Memory1
  27. Then: Model1
  28. Then: Handoff Tool
  29. Then: Memory2
  30. Then: Memory3

You can launch this Telegram + Redis integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.