09-17-2015 05:18 PM - edited 03-14-2019 03:13 PM
Hello everyone,
I am new to scripting and I have a question to ask---
currently, I have a MAIN script which does the following-checks for the holiday (using XML doc) TOD, Select the resource, redirect calls to a CSQ and if no agents found, script will send the call to VM. I am working on another script which will allow a manager to call in and put in a Emergency messages. Of course, he will be recording it first. After the outage, he would be taking the message off.
My question is-How can I have these 2 scripts work together? Do I need to use Sub Flows? What would be the best way of achieving this? Thanks a lot
Solved! Go to Solution.
09-21-2015 12:38 PM
There are couple different ways you can handle it:
1. have a place holder in the routing script to play prompt 1000 for example and if it is recorded it will, otherwise it will skip. This would require that the prompt be deleted after it is no longer needed
2. create an XML file with a prompt status, and in the recording prompt after you record the prompt either set it automatically or prompt user to trigger it on. Then in the routing script check the value of the trigger in the XML file and if set play the prompt, otherwise move on with the script logic.
09-18-2015 05:56 AM
You need to create a script that allows you to record a prompt and upload to prompt repository, I believe there are examples on Cisco script repository portal.
Then in your routing script you add "Play prompt" step that plays the prompt to be recorded, if it's blank it won't play anything, if it's recorded it will play it.
09-21-2015 12:11 PM
Hi Chris,
just got my Prompt Recording working. So, user calls in and records a prompt (emergency prompt or whatever) and it gets uploaded to Prompt management. In my main routing script, I have added a Play Prompt step as well. How can I configure 'plays the prompt to be recorded' as you mentioned above!!! Any help would be great. Thanks
09-21-2015 12:38 PM
There are couple different ways you can handle it:
1. have a place holder in the routing script to play prompt 1000 for example and if it is recorded it will, otherwise it will skip. This would require that the prompt be deleted after it is no longer needed
2. create an XML file with a prompt status, and in the recording prompt after you record the prompt either set it automatically or prompt user to trigger it on. Then in the routing script check the value of the trigger in the XML file and if set play the prompt, otherwise move on with the script logic.
09-21-2015 01:29 PM
Thanks I will try out your suggestion
09-21-2015 08:20 AM
I had that issue as well. I created a separate "emergency closure" script, and integrated the "closed/not-closed" variables as a switch in what you are calling the MAIN script. In other words, if emergency status is enabled, it plays the supervisor's recording (that is recorded in the emergency script) and sends the caller to VM. If emergency status is disabled, the script functions normally.
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