1

According official guide, "AgentDisconnect" just has explanation as follow:

Indicates that the agent has been disconnected from the chat.

but I don't know how to utilize it. can someone give me more explanation?

2 Answers 2

1

AgentDisconnect isn't a resource, it's type of message in Messages body response:

The Messages request returns an array of objects that represent all the events that occurred during an agent’s chat with a chat customer. This request can return several subtypes with unique response bodies, depending on the events that occurred within the chat.

You should listen liveagent events at https://hostname/chat/rest/System/Messages

AgentDisconnect type example:

{
    "messages": [{
        "type": "AgentDisconnect",
        "message": {}
    }],
    "sequence": 2
}

e.g. ChatEstablished type:

{
    "messages": [{
        "type": "ChatEstablished",
        "message": {
            "chasitorIdleTimeout": {
                "isEnabled": false
            },
            "sneakPeekEnabled": true,
            "name": "ilya l",
            "userId": "00536000000FT8P"
        }
    }],
    "sequence": 1
}
0
0

Well, you could update the user with a user-friendly message to indicate the operator disconnected. Bear in mind, this API is meant to be used when you are implementing Live Agent from scratch so statuses like this help you provide the correct information back in the UI.

1
  • Hi @PepeFloyd, thank your explanation. can you tell me how to utilize it like, "AgentDisconnect" is a restful URL request or respond?
    – Jen
    Commented May 11, 2016 at 1:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .