https://discord.gg/botpress logo
Capture message with time condition
# 🤝help
c
Hey guys! Does anybody here would know to help me? I want to use a 'execute code card' with the intention is to capture all messages sent by a user within 10 seconds and follow the flow after these 10 seconds, regardless of whether a message has been captured or not. Could anyone give me some light on how to do this? https://cdn.discordapp.com/attachments/1262470875803029656/1262470875949564027/duvidaflow.JPG?ex=6696b720&is=669565a0&hm=c3c6558368462adfc8c37aca5ecb62aafd44f4c18889113d7927194825a87291&
w
hi ! I think it's possible using the chat API (however it's not possible with "no-code" card)
i will work on this because many people are interested in this feature^^
c
Thank you very much! This would be extremely useful for me because I'm working on an application with WhatsApp and the client doesn't always formulate their reasoning in a single message.
w
yes that's the most seen use case
for now you can create a loop with raw input
and an intent with "finish" for example
and at each iteration concatenate the new message with the "old" ones
you just have to say before to the user that he has to say "finish" to exit the loop
c
Hey my friend @wooden-beard-40210 , can you give us any forecast for when we will have this feature?
w
Ahah , working on it 🫡 but it will be very tricky 😂
In fact , I’ve done that 2 weeks ago , but I’m not satisfied of how I achieved It But I’ll share it in the next days
Btw, did you upvote the corresponding post in feature request ? Or created one
c
I didn't pay attention to this tab here on discord, I'll create a post there, don't worry!
This feature is the only detail missing to make my bot perfect for moving into production, eagerly waiting here... hahaha
w
Will try not to deceive you !
The thing is I need to make alsoa quick video about how it works
c
Great! Looking forward to it then