Archana_Kumari | 2022-02-07 12:44:56 UTC | #1
Hi Team,
I have subscribed to chat conversations and created a listener too. And I get proper events whenever there's a new chat conversation, however, for an ongoing chat conversation (accepted by agent) I do not receive any new events if a message is sent/received.
I intend to reply to the customer dynamically via code, anyhow, due to no new events received for a new message in the same chat conversation, I am unable to do so.
I am sure, I can get the further details of messages by using the messageId from /api/v2/conversations. However, it would be preferrable if I can get notification for it.
Is there a way to get notified of the new messages sent/received in ongoing chat or any alternatives approach you can suggest?
Thanks Archana
Jerome.Saint-Marc | 2022-02-07 14:55:37 UTC | #2
Hello,
If you are referring to WebChat v2 (used with Widgets v2.0), you need to subscribe to different topics to receive chat messages exchanged in the conversation. They are listed here.
v2.conversations.chats.{conversationID}.messages for messages and typing indicatorsv2.conversations.chats.{conversationID}.mediarequests for media requests (a.k.a. multimedia escalation events)v2.conversations.chats.{conversationID}.members for member change events
Regards,
Archana_Kumari | 2022-02-08 08:29:06 UTC | #3
Thank you, that'll be of great help.
system | 2022-03-11 08:29:51 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 13485