Dynamically select which prompts to play in Amazon Connect
You can dynamically select which prompt to play by using an attribute.
-
Add Set contact attributes blocks to your flow. Configure each one to play the appropriate audio prompt. For example, the first one might play the .wav file when your contact center is open. The second one might play the .wav file for when it's closed.
The following image shows how you might configure a Set contact attributes block. In this example, the user-defined attribute is named CompanyWelcomeMessage. You can name your attribute anything you want.
-
In the Play prompt block, choose User Defined, and then enter the name of the attribute that you created in step 1, as shown in the following image.
-
Connect the Set contact attributes blocks to the Play prompt block. The following example shows how it might look if you added one of each block to test how this works.