https://discord.gg/botpress logo
Help Concatenating Initial Messages Within a Time ...
# 🤝help
h
Hi everyone, I'm trying to solve a behavior I've observed in my users: when they start a conversation, they often send multiple short messages in a row like: "Hello" "Hi" "I want some information about..." Or another common pattern: "Hi" "i want know" "the price of this product" These come within a few seconds of each other, and I want to treat them as a single input for an AI transition, so the intent detection works properly and sends them to the right workflow. What I'm trying to achieve: I want to collect and concatenate all user messages received within a set timeframe (e.g., 10 seconds) into a single string, and then run the AI transition on that combined message. What I tried: I attempted to use a "Wait for user input" card with a timer loop that checks if a new message was received before the timeout. But the issue is: If the last message arrives near the end of the timer, it stays stuck in the wait card. It doesn’t proceed unless the user sends another message or the timeout triggers. This leads to a poor experience since the flow gets stuck. My question: Is there a better way in Botpress to buffer multiple incoming messages and process them as one, ideally using AI transition afterward? Any suggestions, patterns, or modules/plugins I can explore? Thanks in advance!
p
6 Views