Merging a burst of messages into one before processing

A helper scenario collects a person's back-to-back messages and passes them on as one batch once they've finished typing — so the bot replies to the whole thought, not to each line.

  • Collects back-to-back messages
  • Waits for a pause — a sign the person is done
  • Merges it all into one request
  • The bot replies to the whole thought
Redis

How it works

To connect Redis and , you don't need a developer: a ready-made scenario links them in minutes.

  1. Starts when: When clicking ‘Test workflow’
  2. Then: Mock input data
  3. Then: Config Parameters
  4. Then: get wait seconds
  5. Then: Buffer messages
  6. Then: Set buffer_count increment
  7. Then: Set last_seen
  8. Then: Get waiting_reply
  9. Then: Mod input
  10. Check: waiting_reply?
  11. If no: Set waiting_reply
  12. Then: WaitSeconds
  13. Then: Get last_seen
  14. Then: Get buffer_count
  15. Check: Check Inactivity + Count
  16. If yes: Get buffer
  17. Then: consolidate buffer
  18. Then: Map ouput
  19. Then: Delete buffer_in
  20. Then: Delete waiting_reply
  21. Then: Delete waiting_reply1
  22. If no: Wait
  23. Starts when: When chat message received
  24. Starts when: When Executed by Another Workflow

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