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
------------------------------