Legacy Dev Forum Posts

 View Only

Sign Up

What topic to subscribe to receive chat message events?

  • 1.  What topic to subscribe to receive chat message events?

    Posted 06-05-2025 18:02

    PNS_jjem | 2019-07-17 08:37:09 UTC | #1

    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.


    tim.smith | 2019-07-17 22:06:43 UTC | #2

    PNS_jjem, post:1, topic:5578
    I need to know which Topic I have to subscribe to to receive incoming and outgoing chat messages

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


    PNS_jjem | 2019-07-18 14:47:31 UTC | #3

    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.


    tim.smith | 2019-07-18 15:08:47 UTC | #4

    Replace %s with the conversation ID.


    system | 2019-08-18 15:08:51 UTC | #5

    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: 5578