https://discord.gg/botpress logo
Hello,Issue with Delayed Response and Message Buff...
# šŸ¤help
s
Hello, I’m currently using the Autonomous mode in Botpress for my Instagram integration, and I’ve encountered a problem where the bot responds immediately to multiple incoming messages instead of waiting and batching them. Here’s the behavior I expect: If a user sends multiple messages (e.g., "Hi", then "Hi" again within 30 seconds), the bot should wait 30 seconds before replying once, using all received messages in the context. Here’s what is actually happening: The bot responds immediately to each message, sometimes within 6–7 seconds. I tried creating a custom hook with logic to delay or skip processing if the last message was recent, but it didn’t work reliably. I also couldn’t insert custom code inside the Autonomous1 node directly. Even after trying the "Buffering Messages and Delaying Response" card or setting delays, the bot still replies twice or more instead of once. My goal is: To delay the response for 30 seconds from the last incoming message, and then respond only once using the collected inputs. Can you please guide me on how to properly handle this in Autonomous mode? Or is there a recommended pattern for message buffering and throttling that works reliably in this scenario?
a
can you share a screenhot of your workflow so I can get a better idea of what you are doing?
p
The behaviour you are encountering is the default one. Changing it requires using a workaround detailed in this thread: https://discord.com/channels/1108396290624213082/1272647969866252453
This is how I work
I tried doing this using some codes to make it wait 30 seconds then collect all the sent messages and then reply to them but it never worked only waiting for 30 seconds worked https://cdn.discordapp.com/attachments/1389356907499622411/1392315599350267904/image.png?ex=686f1672&is=686dc4f2&hm=4ee9bd3ade67ac85047d5b3307d5acd399d0d3f733c84c6f0f873ed1fdde73c1&
2 Views