Thanks for reply . We need to add dynamic grammar based on size of the array . If size 2 ,then DTMF 1 and DTMF 2 allowed.
As per the solution suggested -
1)
vCountryArray contains array of countries ,
vCountryLength contains the size of array using expression
vCountryArray.length and
vCountryIterator will be initialize to 0
2) Get the value from array using
vPromtToBePlayed = vCountryArray[vCountryIterator] and increment the
vCountryIterator+13) Segmentation Block - Check the condition (
vCountryLength == vCountryIterator)
TRUE -
1) Initalize the grammar - If vCountryLength == 3 , then initalize the DTMF with 1,2,3
2) Use the input block -
Announcement- "Prerecorded.wav" type-audio ---> This contain the pre recorded message <
Covid cases in>
TTS - <vPromtToBePlayed> type-text
attach the grammar to it .
FALSE - 1) Use the Play message component with
Announcement- "Prerecorded.wav" type-audio ---> This contain the pre recorded message<
Covid cases in>
TTS - <vPromtToBePlayed> type-text
2) Go to Step 2 Again
Kindly let me know your thoughts also .
------------------------------
Kamlesh Mahapatra
TIAA
------------------------------
Original Message:
Sent: 07-18-2020 11:30
From: Gomathi Vasagam
Subject: Designer Tool Requirement
See if this approach works for you
1. Create a string collection and store the response array values
2. Create a prompt variable
3. Create a loop for the count of the string collection
4. Create the prompt expression with append function and assign that to the prompt variable
5. Use the prompt variable in the Collect node which will play the expression created in the loop
------------------------------
Gomathi Vasagam
Original Message:
Sent: 07-17-2020 00:12
From: Kamlesh Mahapatra
Subject: Designer Tool Requirement
How can we play dynamic prompt in User Input block where half part of text is prerecorded file and other part is Http Rest Block response Array .Each element of array need to be appended with the prerecorded message and then attached to user Input Block.
For Example- responseArray=["US","CANADA","UK"]----Note This array is not static and can vary with size/length based on http response.
Prompt to be played =Covid cases numbers in {indexValueOfArray}
Covid cases numbers in {indexValueOfArray}
Covid cases numbers in {indexValueOfArray}
Note - Covid cases numbers in is the Prerecorded message
#Ask Me Anything (AMA)
#ArchitectureandDesign
#ConnectwithaCustomer(NEW)
#DigitalChannels
#Implementation
#Integrations
#Omni-ChannelDesktop/UserInterface
#Outbound
#PlatformAdministration
#QualityManagement
#RemoteWorkEnablement
#Reporting/Analytics
#Roadmap/NewFeatures
#Routing(ACD/IVR)
#Security
#SIP/VolP
#SystemAdministration
#Telephony
#Unsure/Other
#GenesysCloudCXQAEpisode
------------------------------
Kamlesh Mahapatra
------------------------------