03-22-2019 01:28 AM
Hi,
We have a use case where customer would like to force agents to execute specific wrap-up actions before transitioning to ready state after a call. If we use vanilla Finesse with agent state control in the heading bar, is it possible to "disable" agent state control until the agent has executed the tasks expected, in a custom gadget?
So, during the call, we would set the agent in wrap-up pending state and load custom wrap-up gadget with correct context. Once the call ends, the user will be in wrap-up state. In practice we would like to "grey out" the state control (not possible, I guess) or cancel the state change event until the expected task have been executed by the agent.
Is this doable by means of Finesse APIs?
Solved! Go to Solution.
03-22-2019 11:35 AM
Hi,
From an API perspective, there isn't a way to prevent a user from changing the agent state until particular tasks are executed.
But thinking out loud here, I have never tried this myself, but I am wondering if you can access the agent state dropdown via javascript from your custom gadget. I know that from a gadget, you can communicate with another gadget, but the agent state is in the header, so I'm not 100% sure you can. Ultimately, it is on the same container, so maybe? If I get a chance, I'll give it a try. But in the meantime, maybe you can explore that route.
Thanx,
Denise
03-22-2019 11:35 AM
Hi,
From an API perspective, there isn't a way to prevent a user from changing the agent state until particular tasks are executed.
But thinking out loud here, I have never tried this myself, but I am wondering if you can access the agent state dropdown via javascript from your custom gadget. I know that from a gadget, you can communicate with another gadget, but the agent state is in the header, so I'm not 100% sure you can. Ultimately, it is on the same container, so maybe? If I get a chance, I'll give it a try. But in the meantime, maybe you can explore that route.
Thanx,
Denise
03-23-2019 01:16 AM
03-25-2019 02:15 PM
I am not sure how many customers need this same functionality. I haven't heard any requests for this before, but I will forward your request to the BU. Before I do that though, I'd like more specifics.
maybe get the APIs enhanced in future versions?
How do you think the API should be enhanced? Like have a disable field to determine if the agent can change their state or not?
Thanx,
Denise
03-27-2019 01:57 AM
Hi,
The model I was thinking was that you could cancel some events as they occur. At high level, you can register handler to user onChange event, right? For a developer, it would be easy if inside your handler, you could "cancel" the event ... and that would mean that the event will not get executed at all. It might be tricky in practice, as there are various types of changes (confguration, state, ect.) that do trigger that onChange event, but in theory that was my thinking.
Another way could be to add activate/deactivate methods to "state select elements" (voice and other channels). I mean, at ContainerServices level, there could be methods like activateVoiceState, deactivaetVoiceState, activateLoginCtrl, deactivateLoginCtrl, etc.?
03-27-2019 09:25 AM
Hi,
Canceling events might get a little tricky. I think having activate/deactivate methods is more realistic. Either way, I will send both your suggestions and request to the BU.
Thanx,
Denise
03-27-2019 09:40 AM
Thanks
--timo
04-17-2019 10:26 AM
I'm adding similar functionality to a custom gadget. I need to limit how the agent can control the call at certain times.
04-17-2019 09:25 AM
Seems that the simplest way to achieve what was described, is to prevent the state select from reacting to pointer events ... in our gadget code, we do the following:
disable: window.parent.$('#voice-state-select').css('pointer-events','none');
re-enable: window.parent.$('#voice-state-select').style.removeProperty('pointer-events');
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide