Hello Marija,
in the webmessaging API, this event should give you all details you need
https://developer.genesys.cloud/commdigital/digital/webmessaging/websocketapi#conversation-disconnect
I don't get it what missing to address your use case ? if the disconnect is done by the agent it will be notify in the event ("human")
------------------------------
Frederic Thomas
Senior Manager, Development
------------------------------
Original Message:
Sent: 04-30-2025 10:59
From: Marija Kovrlija
Subject: MessagingService.conversationDisconnected - how to check if an agent disconnected
Hello,
Is there a way to find out if an agent was the one who disconnected the session? It will be used to trigger pop up survey.
Genesys("subscribe", "MessagingService.conversationDisconnected", function() {} contains both system and agent disconnects.
Is there any other command we can use?
Thank you!
#WebMessaging
------------------------------
Marija Kovrlija
NA
------------------------------