What I am trying to do is generate a dynamic prompt, that will contain varying countries and their corresponding option number.
For example a call might come in and based of a database lookup they are presented with
For U.S Press 1
For Canada Press 2
For UK Press 3
next call might only have 2 options
For Canada Press 1
For UK Press 2
Etc
Each call might prompt differently based off a database lookup.
I wrote a java script that generates the dynamic prompt gracefully, however I can only get it to play using TTS. I want to use pre recorded phrases instead.
So I created a phrase set called Shared
I have created the following phrases
"For"
"US"
"Canada"
"UK"
"Press"
"One"
"Two"
"Three"
All I'm looking for is the syntax or method to play any of those phrases from a java script or a way to modify my playDynamicPrompt step to play a list of compiled phrases. Is this possible?
Thanks
For example a call might come in and based of a database lookup they are presented with
For U.S Press 1
For Canada Press 2
For UK Press 3
next call might only have 2 options
For Canada Press 1
For UK Press 2
Etc
Each call might prompt differently based off a database lookup.
I wrote a java script that generates the dynamic prompt gracefully, however I can only get it to play using TTS. I want to use pre recorded phrases instead.
So I created a phrase set called Shared
I have created the following phrases
"For"
"US"
"Canada"
"UK"
"Press"
"One"
"Two"
"Three"
All I'm looking for is the syntax or method to play any of those phrases from a java script or a way to modify my playDynamicPrompt step to play a list of compiled phrases. Is this possible?
Thanks