Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Real-time Web Messaging transcript availability

    Posted 30 days ago

    Hi,

    There is an EventBridge integration that provides an event each time there is a spoken utterance (v2.conversations.{id}.transcription) - but it is voice only.

    Is there a similar way to get real-time a feed of web messaging utterances?

    Thank you.


    #API/Integrations
    #DigitalChannels

    ------------------------------
    James
    Telecoms Specialist
    ------------------------------


  • 2.  RE: Real-time Web Messaging transcript availability

    Posted 30 days ago

    Hello James, 

    You're correct that `v2.conversations.{id}.transcription` is only for voice.

    At the moment, there isn't a similar EventBridge topic that provides the content of each web messaging message in real time.

    There are notification topics for messaging conversations, but these provide conversation updates rather than the actual message content.

    Cheers, 



    ------------------------------
    Cameron
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Real-time Web Messaging transcript availability

    Posted 30 days ago

    Hi James,

    From my understanding, there is currently no EventBridge topic equivalent to v2.conversations.{id}.transcription that provides each Web Messaging message in real time.

    Hopefully someone from the community can share an alternative approach if they have implemented something similar.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------



  • 4.  RE: Real-time Web Messaging transcript availability

    Posted 29 days ago

    Hi James,

    You're right that there's no messaging version of v2.conversations.{id}.transcription that includes the message text. But you can still get it in near real time with a "notify, then fetch" approach. I played arround with a live monitor for web messaging this way:

    1. Subscribe to the queue messaging topic: v2.routing.queues.{queueId}.conversations.messages (or v2.users.{userId}.conversations.messages for one agent). The event doesn't include the message text. It does list each message's messageId, messageTime and messageStatus for every participant, and it fires whenever a message is sent or its delivery status changes.
    2. Fetch the text by ID: POST /api/v2/conversations/messages/{conversationId}/messages/bulk with the new IDs. The deprecated media field in the event even points you to /api/v2/conversations/messages/{conversationId}/messages/{messageId} for this.
    3. For a conversation that's already running, get the earlier history first: GET /api/v2/conversations/messages/{conversationId} lists every message ID so far, then fetch those in bulk. Unlike voice, the full history is always available, so you never miss the start.

    Some things i learned the hard way:

    • The same message triggers several events (sent, delivered, read…). Keep track of IDs you've already requested, or you'll fetch each message several times and get duplicate lines.
    • Delivery receipts have the same ID as the message they acknowledge. Drop Receipt and Event message types and empty bodies, or a receipt can replace the real message.
    • Sort by message timestamp, not by when the fetch returns. History fetches and live fetches finish in unpredictable order.
    • Bot replies can be identified with normalizedMessage.originatingEntity. Bots aren't participants, so you can't tell them apart by participant.

    There's a short delay for the fetch, usually well under a second, so it's near real time rather than true streaming.



    ------------------------------
    Johan
    ------------------------------



  • 5.  RE: Real-time Web Messaging transcript availability

    Posted 29 days ago

    Hi @Johan Danielsson,

    Thanks for sharing this approach. I'll give it a try as well.

    Out of curiosity, have you tested it with a larger volume of web messaging conversations? I'm wondering if you noticed any API rate-limiting issues or other delays when fetching message content after receiving the notification events.



    ------------------------------
    Akhil
    ------------------------------



  • 6.  RE: Real-time Web Messaging transcript availability

    Posted 29 days ago

    Hi Johan Danielsson!

    Great explanation. Thanks for sharing.




    ------------------------------
    Juliano Fernandes Mendes Pimentel De Paiva
    Genesys Analyst
    ------------------------------



  • 7.  RE: Real-time Web Messaging transcript availability

    Posted 29 days ago

    Johan Danielsson Thank you for sharing.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------



  • 8.  RE: Real-time Web Messaging transcript availability

    Posted 29 days ago

    This is great information & very helpful, I'll give it a try. Thanks.



    ------------------------------
    James
    Telecoms Specialist
    ------------------------------