How to Aggregate Consecutive Messages from the Same Client in Webhook Flow

Hi everyone,

I’m setting up a webhook in Make.com to receive WhatsApp messages. Sometimes, the client sends just one message, and the bot responds right away—everything works fine. However, other times, the same client sends multiple consecutive messages within a short time frame, usually within 15 seconds.

To handle this, I built a scenario that receives the messages and stores them. I also created another scenario that checks the messages every 1 minute. However, since this second scenario is triggered every minute regardless of whether the client is responding or not, it has become too expensive to run continuously.

What I’d really like is a flow that is activated with each client message but waits a few seconds to check if there are additional messages to concatenate, instead of responding immediately.

Does anyone have any suggestions or examples of how to make this work more efficiently?

Thanks in advance!


1 Like

Hey Lucas,

How are you receiving these Whatsapp messages? And would a sleep module that delays for a few minutes not suffice here? And then a GET request to whichever service you are using to receive these Whatsapp messages to query and see if there is a new one?

Pat
PG Automations

Hi, Pat

Thanks a lot for your help :slight_smile:

I tried the sleep module but in the example that the webhook receives 5 messages:
Webhook receive the first message > sleep > flow continuous…
So what happened is that it didn’t sleep, got the 5 messages and than goes on, you know?

It’s like it sleeps in that run and not sleep to wait for the other runs.

Did I made myself clear?

Thank you

:us: can you show me in more detail how you did it? i need to do it too


você pode mostrar com mais detalhes como fez isso? estou precisando fazer também