You need to sign in to do that
Don't have an account?
Matt Brown 71
OmniRouted Chat Ended Callback In Lightning
Is there a way to detect in realtime (or near realtime) when a chat routed in omni (lightning) ends?
Current solutions we've explored / tried:
You may be asking yourself "why don't you just wait until agent closes their tab". Well, we'd love to, but the requirement is for us to leverage the omni api (specifically closeAgentWork) to clear the chat work item from omni BEFORE they cose their tab. We have issues with agents leaving their tabs open by mistake and not getting routed new chats because of it. So we need to clear omni work items for them as soon as the chat ends, but before they close their tab.
We've got the clearing of agent work worked out OK, we just need to automate it to a chat ending now. Our organizations switch to lightning is depending on getting this sorted, so any ideas (even the obtuse ones) would be genuinely appreciated.
Current solutions we've explored / tried:
- Leveraging the Live Agent API, there is no method to get the current status of a chat or anything for us to see if chat has ended.
- Looking at LiveChatTranscript Status field, this doesn't get updated until after the agent closes the chat tab.
- Looking at LiveChatTranscriptEvent object, this too doesn't get written until after the chat tab is closed.
- Looking at tab info, we noticed a blue asterisk that appears in the tab when a chat is in progress, that goes away after it ends. We thought to look in tab info for a boolean that gets flipped, but that turned up nothing. There was no changes in the tab info from during the chat, to after it ended. Nothing we could use here.
You may be asking yourself "why don't you just wait until agent closes their tab". Well, we'd love to, but the requirement is for us to leverage the omni api (specifically closeAgentWork) to clear the chat work item from omni BEFORE they cose their tab. We have issues with agents leaving their tabs open by mistake and not getting routed new chats because of it. So we need to clear omni work items for them as soon as the chat ends, but before they close their tab.
We've got the clearing of agent work worked out OK, we just need to automate it to a chat ending now. Our organizations switch to lightning is depending on getting this sorted, so any ideas (even the obtuse ones) would be genuinely appreciated.
This is currently available in sandbox instances and according to our rep, is set to be release with the Summer '18 push. I'd link to documentation for this ... but at the time of this writing, there is none.