How to play messages while in the queue
The example shows how to build a flow in Xperience Routing that plays messages to the customer while the phone call waits in the campaign queue.
- In the Xperience Routing editor, create a new flow.
- Add blocks.
- Start
- End
- Enqueue phone
- Wait while phone in queue
- Disconnect phone
- Play file.
- Connect the blocks.

- Select the block Wait while phone in queue and configure the block properties.

- Select the block Play File and configure the block properties.

- Publish the flow in the Altitude uCI Server.
- Associate the generated IVR script with a campaign.
How does the example work
- The IVR campaign receives a call.
- The IVR script runs and enqueues the call in the campaign Sales.
- If the expected waiting time does not exceed 60 seconds, the call remains in the queue.
- Otherwise, or if an error occurs, the IVR script plays a message informing the customer that there are no agents available, hangs up the call, and ends.
- While the call is in the queue:
- Plays waiting music.
- If the phone call waits more than 300s:
- The flow exits the block Wait while phone in queue through the exit point Timeout and proceeds to the block Important message.
- The block Important message plays a message and exits.
- The flow executes the block Wait while phone in queue.
- If the phone call is dequeued:
- The flow exits the block Wait while phone in queue through the exit point Success.
- The flow ends.