- Newest
- Most votes
- Most comments
In Loop prompts blocks, you don't have the same dynamic selection options that are available in standard Play prompt blocks. The Loop prompts block only offers three types of prompts: Audio recording, Text to Speech, and S3 file path.
However, you can achieve dynamic prompt selection in Loop prompts by using the S3 file path option. Here's how:
- Store your various prompt audio files in an S3 bucket
- Use Set contact attributes blocks to define which S3 path should be used
- Reference that attribute in the Loop prompts block using the S3 file path option
For text-to-speech content, you can use dynamic text strings within the Text to Speech option of the Loop prompts block. When configuring the Text to Speech option, you can reference contact attributes using the syntax $.Attributes.nameOfAttribute.
For example, if you've set a user-defined attribute called "Announcement" using a Set contact attributes block, you should be able to reference it in the Text to Speech field as $.Attributes.Announcement (note the "Attributes" part is required in the syntax).
Make sure your Set contact attributes block is properly configured and connected to the flow before the Loop prompts block. The attribute name is case-sensitive, so ensure it matches exactly between your Set contact attributes block and your reference in the Loop prompts block.
Sources
Flow block in Amazon Connect: Loop prompts - Amazon Connect
Set up prompts to play from an S3 bucket in Amazon Connect - Amazon Connect
Create dynamic text strings in Play prompt blocks in Amazon Connect - Amazon Connect
answered a year ago
Relevant content
asked 6 months ago
asked 2 years ago
asked 5 years ago
asked 3 years ago
- AWS OFFICIALUpdated 5 years ago
