Waiting for Whatsapp message fragments

I’m using an AI agent node to reply to Whatsapp messages.
My problem is that often users send multiple messages composing a single question.

I don’t want my AI agent to reply immediately, but to wait for all the details.

What’s the best practice?

Should I wait for a while after the first message, then retrieve the following ones, then pass them to the AI agent?

HI @albertocv,

Here are some relevant templates from the community:

They feature some different approaches such as buffering messages in a DB and trying to detect the end of a user’s “turn”.

Hope this helps!

Thanks, I didn’t see the first too. Meanwhile I implemented something a bit more complicated in Supabase.