/
Switch

Switch

A “Switch” panel is used to evaluate an interaction variable and enable different output paths or execution based on the comparison result. It is commonly used to make decisions based on user input or other dynamic factors.

Figure 1: Switch panel

The switch panel offers versatile functionality, acting as a decision-making tool within your system. For instance, when combined with a “Play Message” panel, it can route calls based on the caller’s DTMF input.

Using the panel

Each Switch Panel evaluates only one value, but each panel allows multiple condition sets to be used. This allows the panel to address scenarios in which you both expect different results and need to respond differently to them.

For example, a Logic designed to schedule appointments might need to act differently based on how many availabilities are left at any time. A Switch panel might allow the flow to proceed to scheduling while availabilities remain, then redirect to another option when no availabilities remain.

Configuration

  1. Set as Flow Initiator: By selecting "Set as Flow Initiator," this panel will serve as the starting point of the IVR flow, before proceeding to subsequent panels within the Logic+ flow.

  2. Panel Name: It is recommended that you choose a name and keep it consistent. You will also need to specify the variable name to update. If the variable does not exist, it will be created.

  3. Panel Description: It is recommended to provide a clear description of the panel, detailing its purpose and functionality. This is akin to documentation, making it easier for others to understand and identify its intended use when they encounter it.

  4. Value: A string value that represents the variable to compare. This could be any variable in the flow, such as user input.

  5. Evaluations: Create an evaluation: a set of conditions for comparison with the value entered above. One evaluation is available by default. Select Add Evaluation to create more. Each evaluation listed here will be compared against the Value entry specified above. Each evaluation consists of a name, an operator, and a value for comparison.

    1. Name: The name of the comparison.

    2. Operator: The operator is used when comparing the current variable against all specified comparison values. Options are Equal, Not Equal, Less Than, Less Than or Equal To, Greater Than, Greater Than or Equal To, Contains, Does Not Contain, Exists, and Does Not Exist.

    3. Value to Evaluate: Enter a value or variable to be compared against the Value entry specified above.

  6. Ignore Case: Specify whether capitalization should be ignored in all evaluations. This affects all evaluation entries in this panel. This setting uses either a toggle or a variable.

    1. Use Toggle: If switched off (default), all evaluations will check for matching capitalization when applicable. If switched on, all evaluations will ignore matching capitalization.

  7. Exit Paths: All evaluations will have a matching exit path listed here with the default exit path. Use each exit path's dropdown menu to select another panel in your flow. Any output from this panel will advance to the linked panel.

    1. Evaluation Exit Path: Select an exit path to take when this evaluation is a valid match.

    2. Default Exit Path: Select an exit path to take when none of your evaluations match.

 

Figure 2: Configuring the Switch panel

 

 

Related content

Set Variable Panel
Set Variable Panel
More like this
Disconnect
More like this
Set Variable
More like this
Generic Integrations
Generic Integrations
Read with this
Time Control
More like this