Discussions

Ask a Question
Back to All

Avaya cloud api: how can we see difference between an agent participant leaving event and transferring a chat?

Hi Avaya,

When an employee (participanttype: agent) decides to transfer a chat, we get the PARTICIPANT_DISCONNECTED event via our webhook. However, when an employee ends a chat, we get the same PARTICIPANT_DISCONNECTED event. How do we determine which event happened in the client?

Currently we are closing the chat on the client when we notice that the employee has disconnected, but obviously this should not be happening when a chat is transferred to another employee.

Can you advice please? Thanks!