03-03-2011 01:20 AM - edited 03-14-2019 07:30 AM
Hi All,
I'am Testing UCCX 7.0, and create the script like ICD script. If use 'Connect' or 'Select Resource' UCCX will find the Agent
direct. We wanna kwon how to insert a prompt, prompt the Agent's ID to customer before agent pickup the phone.
Solved! Go to Solution.
03-03-2011 06:49 AM
Psuedo Code
select resource
selected
play prompt selected resources id
connect
connected
end
failed
goto start_of_queue
queued
label start_of_queue
...
1. In the select resource step, choose to not connect automatically. This forces you to save the agent user ID in a variable for use in the connect step
2. you can either straight up play the agent user ID, which would be boring, or, you can get the agents spoken name with a play prompt step and play that back.
EDIT: Formatting
03-03-2011 06:49 AM
Psuedo Code
select resource
selected
play prompt selected resources id
connect
connected
end
failed
goto start_of_queue
queued
label start_of_queue
...
1. In the select resource step, choose to not connect automatically. This forces you to save the agent user ID in a variable for use in the connect step
2. you can either straight up play the agent user ID, which would be boring, or, you can get the agents spoken name with a play prompt step and play that back.
EDIT: Formatting
03-04-2011 12:14 AM
Thx Anthony, that script is very helpfu.
I think 'choose to not connect automatically' is the key point.
In that script, how can i create the individual ID for each Agent, and invoking the ID variable?
If we can invoking the ID variable, we can use 'Generated Prompt' to create Prompt.
If we manual create ID variable, then how to make the ID variable relate to the agent?
Ha-ha, thx again.
03-08-2011 03:52 PM
I'm not sure what you are asking, but here's a deeper example:
Say the Agent selected was aholloway, and you stored that ID in the variable selected_agent_id. In your Prompt Directory, you could have a folder named "Agents", and a file in that folder named "aholloway.wav". That audio file could say my spoken name, or a greeting, or anything else.
The play prompt step could look like this:
Play Prompt(--Triggering Contact--, P[agent_prompt_dir + selected_agent_id + prompt_extension])
Where:
String agent_prompt_dir = "Agents/"
String selected_agent_id = ""
String prompt_extension = ".wav"
09-11-2012 10:59 AM
I know this is an old post, but how do you know what format the user variable is when sent out of the Select Resource step. The way the documentation is worded it could be a user id or an extension. Can you force it to be the user ID?
Thanks,
-C
09-11-2012 11:32 AM
The Select Resource step will only produce a User object.
I made an assumption that you would be able to convert the User object to a string.
You would use the ?.getId() method on the User Object to get the username of the User.
Of course, your AD team could have user id's setup as numbers instead of names. But regardless, this will still work.
Additionally, I don't know why I didn't mention this originally, but there is a builtin process for assigning prompts to Agents, and it's managed with the spoken name upload script. If you were to use that feature, then you would get the Agent's recording (their spoken name, or whatever they choose to record) via the Get User Info step. And because the Get User Info step requires a User Object, and your Select Resource Step produces a User Object, you should be good to go.
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.
09-11-2012 11:58 AM
The .getId() method is what I was missing.
Thanks Anthony!
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