Does anyone know of a method for deselecting a resource in a script ?
Been asked check the feasibility of something,... lets say broadly speaking, we have agents based in two locations - all sit in the same CSQ,.
I have been asked if it's possible to check which location a selected agent is based, and then offering the caller the option to instead connect to an agent from their 'preferred' location,..
Rightly or wrongly I assumed that jumping back to the Select Resource would do the trick,...problem I have is that when jumping back, the initial selected agent stays 'reserved',.
Any ideas ? ,. or maybe it's not possible ?
I do not think you can manipulate the intended target of the Select Resource step from within the Selected output branch. That function is tied to the resource selected by your User variable. The only two options are 'Selected' and 'Failed'.
If you want to manipulate the target of the "Select Resource" palette item, I don't think there is any option to do it within the function, other than the "Failed" outcome branch--and that just means the intended User resource didn't answer.
Hope this helps.
The only thing I can thnk of is, present the choice to the call contact prior to the Select Resource step. Then invoke an Agent Based Select using the following type of method:
In this example, the Agent Resource can still be designated (manually selected, so to speak), but then if the select step fails, an alternate can be selected. You could nest Agent Resource Select steps as deep as you wanted in the Failed branch(es), or default to an ACD queue in the final Failed branch.
Just my two bits...