https://discord.gg/botpress logo
Waiting for some messages before processing answer
# 🤝help
a
Hi community, I have a question and could use some help. I'm looking to implement a behavior in my bot (currently integrated with Twilio for WhatsApp) where the bot waits for a set of messages before responding. The idea is: if a user sends multiple messages within a short time frame (e.g., three messages in under 8 seconds), the bot should wait and respond based on the full context of those messages, after 8 seconds have passed since the user's last message. I couldn’t find a clear response of this setup here, has anyone implemented something similar or found a simple solution for this use case? I tried using the before_incoming_message hook with guidance of chatgpt, with the code below, but it only brings variables such as bp, logger, kvs and the system cannot find theses variables.
e
Hi João, how are you? Were you able to work around this problem? I need that too.