Agnet ready/busy

Answered Question
Jun 8th, 2010
User Badges:
  • Silver, 250 points or more

hi


just wanted to check with you guys your thoughts on this:


i need to configure my UCCX script so that if an agent is not ready (agent is not logged in or not available) to route calls to option x. now, if the agent is available (logged in) but busy on another call (reserved) to route calls to option y...

a way to check the status of the agent and route based on that.


thanks

Correct Answer by Anthony Holloway about 7 years 1 month ago

If you are asking for a single Agent:


agent_state = Get Reporting Stats (Resource, State)

if (agent_state == 'Not Ready' || agent_state == 'Logged Out') {

     // Do something

} else {

     // Do something else

}


For many agents who service a queue:

logged_in_agents = Get Reporting Stats(CSQ, logged in resources)

not_ready_agents = Get Reporting Stats(CSQ, not ready resources)

potential_agents = logged_in_agents - not_ready_agents


if (potential_agents <= 0) {

     // Do something

} else {

     // Do something else

}

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Anthony Holloway Tue, 06/08/2010 - 11:40
User Badges:
  • Purple, 4500 points or more

If you are asking for a single Agent:


agent_state = Get Reporting Stats (Resource, State)

if (agent_state == 'Not Ready' || agent_state == 'Logged Out') {

     // Do something

} else {

     // Do something else

}


For many agents who service a queue:

logged_in_agents = Get Reporting Stats(CSQ, logged in resources)

not_ready_agents = Get Reporting Stats(CSQ, not ready resources)

potential_agents = logged_in_agents - not_ready_agents


if (potential_agents <= 0) {

     // Do something

} else {

     // Do something else

}

Majdi Harb Tue, 06/08/2010 - 14:31
User Badges:
  • Silver, 250 points or more

thanks Anthony for ur response ...


i added the variable  logged_in_agents, not_ready_agents and potenial_agents as integers, so what should be the value (can i leave it 0 as default)?

for potenial_agents i couldn't insert logged_in_agents - not_ready_agents in the value field ...it keeps saying invalid identifier


could u just plz shed some light on that


many thanks

Majdi Harb Tue, 06/08/2010 - 15:28
User Badges:
  • Silver, 250 points or more

ok i could resolve it .. i used a boolean variable called agent

so If the number logged in is less than or equal to 0 (<=) then set the boolean variable "agent" to false, otherwise set it to true.


so only one get reporting stats step then if step based on "agent" value whether true or fale


thanks

Actions

This Discussion