Smart message buffering for an AI chat

The scenario buffers a user's consecutive messages in Redis, waits for a pause and passes them to the AI helper together, so the reply addresses a finished thought.

  • A reply to the whole thought
  • Consecutive messages gathered together
  • The bot doesn't jump at every line
  • A more natural conversation