waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - creates two separate ChatWoot conversations for the same contact

Open HerdneySantos opened this issue 1 year ago • 11 comments

Describe the bug

Hello!

I'd like to point out an improvement that needs to be made. I don't know if there's already an issue for this.

But in tests I've performed on my Chatwoot with the Waha integration, when I make an active message through Chatwoot (it opens a conversation), when the person replies to my active message, when the message enters Chatwoot, it creates a new conversation. The correct way would be to enter the reply in the conversation that was already open because of the active message. Imagem

Steps

To Reproduce Steps to reproduce the problem:

Go to Chatwoot

Click on the left menu "Contacts" and select a "Contact"

Click "New Message", select the inbox "WAHA", type the message and send it

See the error

Expected Behavior

That when the client replies, the message should be inserted into the same conversation_id.

Actual Behavior

When the client replies, a new conversation is opened in Chatwoot, resulting in duplicate conversations with the same client.

Image

HerdneySantos avatar Sep 10 '25 22:09 HerdneySantos

Hi, I'm not a Chatwoot user but take note WA is using @lid in some chats when starts. If chat continues you could receive @c.us as new ID from the same user. In my case, I store the user ID for replies, but my index is the phone number (PN). If you receive @c.us it's straightforward, but with @lid you'll need to get the PN.

nicolasmdq avatar Sep 10 '25 23:09 nicolasmdq

We have the same problem here.

patron:PLUS

Click-Hype avatar Sep 11 '25 13:09 Click-Hype

This happens sometimes here.

It doesn't "duplicate" the conversation, but it creates two separate conversations for the same contact.

From what I understand, there's a field called contact_inbox_id that needs to be unique, or something like that.

For now, I don't know exactly how to fix it, but it also creates two or more conversations.

igordisco avatar Sep 11 '25 14:09 igordisco

I'm facing the same challenge.

When creating a conversation through Chatwoot, it creates a conversation_id.

When receiving a response from that asset, it creates another conversation_id. The API needs to check if a conversation_id already exists for the contact who received the asset and assign the response to the created conversation.

I've done this with other WhatsApp connection platforms.

Matheuskmrs avatar Sep 12 '25 15:09 Matheuskmrs

It really is a real problem, I don't know how waha currently handles this, but they should check if there is already a conversation before opening a new one.

patron:PRO

bergpinheiro avatar Sep 12 '25 20:09 bergpinheiro

+1

patron:PRO

paulobautz avatar Sep 18 '25 01:09 paulobautz

+1

patron:PLUS

OrionZap avatar Sep 19 '25 04:09 OrionZap

+1

patron:PLUS

Click-Hype avatar Sep 19 '25 18:09 Click-Hype

+1

patron:PRO

weblooksbr avatar Sep 26 '25 21:09 weblooksbr

Hi! It should be more stable now

2025.9.6 - ChatWoot - Conversation Control

patron:PRO

devlikepro avatar Sep 29 '25 02:09 devlikepro

i have a same problem

ezlazylemon avatar May 10 '26 00:05 ezlazylemon