내용으로 건너뛰기

Using dynamic prompt selection in Loop prompts

0

Hi

Is there a way to dynamically select prompts that are used in a loop prompt ? (loop prompt NOT standard prompt)

You can set dynamic prompts in a standard "play prompt" node, using the drop downs, but in Loop prompts you only have the option of S3, audio recording or text to speech, no drop downs for the test to speech as you have for a standard prompt.

I've tried setting up a user defined attribute "Announcement", using a "set contact attributes" node, before the loop prompt node and used $.Announcement, $.Attribute.Announcement, Announcement .... all sorts of combinations to play the contents of the user defined attribute I created but nothing works.

As I repeat the announcement 6-10 times, it would be easier to have a dynamic reference, rather than have to enter the text for each prompt

thanks in advance

질문됨 일 년 전214회 조회

1개 답변
0

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:

  1. Store your various prompt audio files in an S3 bucket
  2. Use Set contact attributes blocks to define which S3 path should be used
  3. 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

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠