Play Music
The Play Music activity plays music when a call arrives or is in a queue. You can choose an audio file to play, when you place a caller on hold.
The following sections enable you to configure the Play Music activity:
General Settings
Parameter |
Description |
---|---|
Activity Label |
Enter a name for the activity. |
Activity Description |
(Optional) Enter a description for the activity. |
Music Settings
Note | If any of the ordered list inputs is empty, the system throws a Flow Error. Resolve these errors before publishing the flow. |
Parameter |
Description |
||
---|---|---|---|
Static Audio File | Choose this option if you wish to configure the static audio to be played from the Resources page in the Management Portal. Choose the name of the audio (.wav) file from the Music File drop-down list. For more information, see Upload an Audio Resource File. |
||
Dynamic Audio File |
Choose this option if you wish to configure the audio to be played dynamically within a single flow. For example, you can configure this variable to play the audio prompt in multiple languages based on the customer's preference during the interaction. To configure the dynamic audio file, enter the audio variable value in the form of a pebble expression. For more information, see Pebble Template Syntax.
|
||
Start Offset |
Set the duration in seconds for the music file to play. For example, assume that your music file is 60 seconds long. If the Start Offset is set as 45 seconds and the music duration is 30 seconds, the file plays the last 15 seconds and loops back to the start and plays the first 15 seconds. 0 is the start time. You can enter the start offset as a static number (example: 20) or an expression (example: Ensure that your input has numeric values. |
||
Music Duration |
Specify the duration in seconds for the selected music file. (For example, 30 seconds). You can enter the music duration as a static number (example: 20) or an expression (example: Ensure that your input has numeric values. If the Start Offset and the Music Duration are longer than the file length, the music loops back to the start and continues to play. |
Note | When you include the Play Music activity before the HTTP Request activity in a call flow, the HTTP request executes only after the audio is played fully. |