Skip to content

Conversation

@wahyuwidgetworks
Copy link

Problem

Automated greeting messages sent by Chatwoot (via "template" message type) were not being linked to their Chatwoot Message ID in the Evolution API database. When WhatsApp echoed the sent message back via webhook, Evolution API treated it as a new incoming message because it couldn't find the original ID, resulting in duplicate messages in the Chatwoot conversation.

Solution

Updated the receiveWebhook handler for template messages to call updateChatwootMessageId after sending the message. This ensures the message is stored in the database, allowing the deduplication logic to correctly identify the echo.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

@wahyuwidgetworks wahyuwidgetworks merged commit aeb9145 into production-v2.3.2 Dec 6, 2025
1 check passed
@wahyuwidgetworks wahyuwidgetworks deleted the fix/template-message-duplication branch December 6, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants