AI agent sends multiple replies and responds to old synced WhatsApp messages
We are experiencing two separate issues with the WhatsApp AI agent:
-
The agent sometimes sends multiple replies to a single customer message. When the customer sends two messages quickly, the agent may send more than 7 replies, making the conversation appear unorganized and spammy.
-
When WhatsApp messages are synchronized, the AI agent starts responding to old synchronized messages. It mixes old conversations with current topics and sends many unrelated replies.
Please investigate both issues.
To clarify, the primary issue occurs even when the customer sends only one message and no additional messages are sent.
A single incoming WhatsApp message can cause the AI agent to send between 1 and 4 separate replies. Therefore, this issue is not caused only by customers sending multiple messages quickly or by the response delay setting.
Sending two messages quickly only makes the existing problem worse and can result in more than 7 replies.
Thank @smsyle52-rgb very much for bringing this to our attention and for providing the detailed explanation.
We will prioritize this issue at the highest level and work to fully resolve it this week. We understand that the problem can occur even with a single incoming message, so we will investigate and address the root cause rather than relying only on response delay settings.
If you have any additional information, examples, logs, or other details that you think could be helpful, please share them with us. The more information we have, the faster we can investigate and resolve the issue.
We truly appreciate your patience and detailed feedback. We’ll keep you updated on our progress and make sure this is properly resolved.
@phongmaker @nguyenvantruc92 @emre155 Thank you both for your attention to this issue.
AI agent response behavior is, in our opinion, one of the most critical parts of the entire product, so we really hope this area can receive strong attention and thorough testing.
The duplicate-reply problem has been very disruptive, and we have observed similar behavior even outside WhatsApp.
For example:
If a customer sends one message, the agent may sometimes produce 2–3 replies. If the customer sends two messages at nearly the same time, this can turn into 4–7 agent replies. If the customer sends three messages close together, the behavior becomes much worse, and the agent may respond as if it were handling messages from several different people in a group conversation.
So we believe the issue may be related not only to WhatsApp sync, but also to how incoming messages are grouped, queued, debounced, or processed by the AI agent.
We are looking forward to the fix and are happy to test it in a real production environment and share the results.
Thank you again for your work and attention.
@smsyle52-rgb Thanks for your patience, and we’re sorry for the delayed response. We’ve investigated both issues and identified the root causes and available workarounds below.
Issue 1 — Multiple replies
We’ve identified the cause. The AI Agent currently splits its response into separate WhatsApp messages whenever there is a blank line (\n\n). URLs or image links are also sent separately. So one AI response containing several paragraphs can become multiple WhatsApp messages. If the customer sends two messages quickly, each can trigger its own AI response, which can result in 7+ messages.
Workaround: Add this instruction to the AI Agent’s System Message / Prompt:
Answer in a single paragraph, without double line breaks. If you need to list multiple points, use commas or bullet dashes within the same block of text — do not insert blank lines between points.
We’ve verified that this keeps the response consolidated into a single WhatsApp message.
Issue 2 — Replies to old synchronized messages
We’ve confirmed the root cause: previously, the AI treated old WhatsApp messages synchronized during the connection as part of the active conversation context. This could cause it to respond to outdated topics.
For newly connected pages, the sync screen now includes an option:
Off (default): The AI only uses messages received after the connection. Old history remains visible in the inbox but is not used as AI context. On: The AI can also use the synchronized history as context.
For pages that were already connected and synced, this update will not apply automatically. Simply reconnecting the same page will not reset the existing data — Meta only allows the sync to be triggered once per onboarding. However, if the contact is deleted, then the page is fully disconnected and connected again from scratch (not just "Reconnect") with sync re-enabled, it will be treated as a new onboarding and the new setting will apply to that contact.
Temporary workaround: Use the “Delete Message History” step in the Flow Builder for each affected conversation. This clears the AI’s stored memory for that conversation, so it stops using the old messages as context.
This does not delete the WhatsApp messages from the inbox. It only clears the AI memory. Currently, this needs to be done manually per conversation, as there is no bulk option yet.