Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: lastdance on January 01, 1970, 12:00:00 AM

Title: threshold script for agent not ready time
Post by: lastdance on January 01, 1970, 12:00:00 AM
hi guys i'm new at this hope you guys can help out with a script.
i would like to have my agent's name highlighted in red if their status is not ready/after call work for x number of minutes. how can i do this?
Title: threshold script for agent not ready time
Post by: Mike on January 01, 1970, 12:00:00 AM
lastdance,

Here is a script that you can apply to CurrentAgentState. Simply change the stat value to the number of seconds that you want.

if Threshold.StatValue >= 240 then
Threshold.Result = true
end if

We have several scripts like this applied to CurrentAgentState to tell us when agents have been sitting in one state too long.
Title: threshold script for agent not ready time
Post by: Mike on January 01, 1970, 12:00:00 AM
Here is the script for the "Action" that will be applied to the previous script.

CCPulseNotifier.SetColor( Color.Red )
Title: threshold script for agent not ready time
Post by: lastdance on January 01, 1970, 12:00:00 AM
mike,

can this be done on "objects tab"?

i would like the agents name to be highlighted in red when their after call work reaches like 60secs. i tried the following script but ain't working.

<Treshold>
if StatAction.SDNAAfterCallWork >= 60 then
StatAction.Result = true
end if

<Action>
CCPulseNotifier.SetColor( Color.Red )

pls advise. thx
Title: threshold script for agent not ready time
Post by: Mike on January 01, 1970, 12:00:00 AM
Looks like your syntax might be off. Try this.

if Threshold.StatValue = StatAction.SDNAAfterCallWork then
Threshold.Result = true
end if