Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  MessagingService.conversationDisconnected not triggering ...

    Posted 04-09-2025 10:46
    Edited by Mark Jones 04-09-2025 10:53

    Hi,

    We are using the Messenger Headless Mode SDK to develop our own chat widget.  We are seeing messages as expected which is great.  However, we would like to elegantly close down the widget when the agent disconnects (or there are any types of disconnect).  The MessagingService.conversationDisconnected event seems to be what we are after, yet we can never get it to trigger, even though our flows can only ever finish on a disconnect node.

    Is this a known issue or something we should be aware of?

    Thanks!


    #WebMessaging

    ------------------------------
    Mark Jones
    ------------------------------



  • 2.  RE: MessagingService.conversationDisconnected not triggering ...

    Posted 04-14-2025 07:22

    Hello Mark, 

    Could you please share how MessagingService.startConversation working in your code. I'm also working on our own chat widget, and MessagingService.startConversation not rigger backend POST from  Genesys Cloud. 
    I've opened discussion.   https://community.genesys.com/discussion/messagingservicestartconversation-does-not-trigger-backend-post-in-headlessmodetrue

    Any guidance or assistance in resolving this issue would be greatly appreciated.



    ------------------------------
    Syed Noman Hassan
    Sr Lead Applications Developer Analyst
    ------------------------------



  • 3.  RE: MessagingService.conversationDisconnected not triggering ...

    Posted 04-14-2025 09:18

    Hi Syed,

    As soon as we're at the point of dev, I'll loop back with you.  Let you know how we get on.



    ------------------------------
    Mark Jones
    ------------------------------