Unable to receive events for chat interactions after subscribing for chats

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

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 indicators
  • v2.conversations.chats.{conversationID}.mediarequests for media requests (a.k.a. multimedia escalation events)
  • v2.conversations.chats.{conversationID}.members for member change events

Regards,

Thank you, that'll be of great help.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.