Dynamically select which prompts to play - Amazon Connect

Dynamically select which prompts to play

You can dynamically select which prompt to play by using an attribute.

  1. 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 for 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.

  2. In the Play prompt block, choose User Defined, and then enter the name of the attribute that you created in step 1.

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