What topic to subscribe to receive chat message events?

Good Morning.
I want to apologize in advance if I'm not following the rules of this forum, it's my first message ...

My question is about the "Agent Chat" API:
I need to know which Topic I have to subscribe to to receive incoming and outgoing chat messages in the conversations, as well as the typing-indicator.
I am subscribed to the channel of / v2 / users / {id} / conversations and here I receive all the Events of the calls, but of the chats I only receive events of 'member-join', 'member-leave' and 'member-change' but I do not receive anything when the message is of type 'standard' or 'typing-indicator'; and I need to know why the message events of the chats are not received or when the customer is typing.

Thank you.

1 Like

https://developer.mypurecloud.com/api/webchat/agentchat.html#receiving_messages_and_typing_indicators

Thanks Tim for your prompt response.

But in the link that you have passed me, 3 themes come to receive messages:

To receive messages, register to receive notifications of messages. Messages and writing indicators are available in several themes:

· V2.conversations.chats.% S.messages for messages and write indicators
· V2.conversations.chats.% S.mediarequests for media requests (a.k.a. multimedia scaling events)
· V2.conversations.chats.% S.members for member change events

And in both cases, what does% s mean? Is the id of the conversation, that is, do we have to create a channel for each of the conversations that are received by the ACD?

In other words, the first thing is to subscribe to api / v2 / users / {id} / conversations ... and once a chat event is received, then take the id of this chat and subscribe to:
api / v2 / conversations / chats / {conversationId} / messages ??

You mean this?

Thank you.

Replace %s with the conversation ID.

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