Placing an outgoing call based on a variable

Contact center admins can set up logic in the flow editor to write to a custom variable, then use this variable in the Route To widget to place an outgoing phone call.

This article covers:

Prerequisites for placing an outgoing call based on a variable

How to place an outgoing call based on a variable

  1. Create a custom variable with the Phone, E.164 data type that will be used to define the phone number to call.
  2. Add and customize the Script widget to write a phone number to a custom variable.
    Note: Refer to the Script widget support article for examples on using the Script widget.
  3. Add a Route To widget to the flow.
  4. Select the Route To widget and customize these settings in the Settings tab:
  5. Click the Exit tab to set the exit settings.

Example

Note: This section shows an example configuration and is not meant to be a complete configuration guide.

The following example contains a global custom variable with the variable name, NightAnsweringService. This string variable will contain the number of an after-hours answering service that will receive calls when the queue is closed.

Flow layout

Route To widget

Set the following settings in the AfterhoursService Route To widget. This will send the caller to a queue defined by the global variable.