Set up a starting task


You can set a task as the starting task in place of a starting menu. This option is helpful when you want Architect to look up something about the call before proceeding with the flow. You might want to use a starting task to determine if the current time of the call is a.m. or p.m., and then process “Good morning” or “Good afternoon” audio accordingly. Or, you might want to determine if the caller already selected a language in a previous flow and does not need to set it again in the current flow.

In this example, we will set up a flow to determine if the caller previously selected a language for the call and if not, present the caller with a Select Language menu. First, create a Check Language task  and set it as the Starting task. Next, configure the task to capture the language setting, if available. If not, present language choices to the caller.

Note: This example assumes English (en-US)  and Spanish (en-ES) are the configured languages in the call flow.

Click to expand the example task. Click it again to close it:


  1. From the Toolbox, click to expand the Task category and drag the Task option to the Reusable Tasks area.
  2. On the Reusable Tasks design area, do the following:
    1. In the Name field type Check Language.
    2. Click Set this as the starting task. Notice that the reusable Check Language task moves up to become the Starting Task, and the Initial Greeting now appears in the Starting Task area. Also, the Main Menu moves to the bottom of the page to Reusable Menus.
    3. Click Edit Task. The task editor opens.


Next, to determine if a languages is already set on the call, configure the task by checking the value of the Interaction.Language variable.

Note: Architect can also obtain the language for the flow by calling the GetCurrentLanguage() function, but the Interaction.Language variable tells Architect that no language has been set on the interaction and provides an opportunity to build a prompt telling the caller to pick a language.
  1. From the Toolbox, drag a Decision action to the task design form and drop it below the Start action.
  2. In the Decision design area, do the following:
    1. In the Name field, type Is language set?.
    2. Switch to expression mode. For information on how to switch between literal and expression modes, see the Suggested content.
    3. In the Expression area, type IsNotSetOrEmpty(Interaction.Language).

This step asks if the Interaction.Language variable is not set, or empty:

  • If it is not “not set or empty”, then the language has previously been set by the caller and the interaction will follow the No output.
  • If it is “not set or empty”, then the language has not been set and the path follows the Yes output.


f the Interaction.Language variable it is “not set or empty”, then the caller has selected a language in a previous flow and the path follows the Yes output. At this point, you can direct the interaction to the next desired action. For example, to the call flow’s main menu:

  1. From The toolbox, click to expand the Menu category.
  2. Drag a Jump to Menu action to the task design form and drop it below the No output.
  3. In the Jump to Menu design area, select a Name for the action and select the Menu to which you want to direct the interaction.

After Architect determines that the language has already been set, it immediately passes the call to the menu you select here.


  1. From the Toolbox, drag a Play Audio action, drop it below the Yes decision path and add an initial greeting, such as Thank you for calling XYZ.
  2. From the Toolbox, expand the Data category, drag a Collect Input action and drop it below the Play Audio action.
  3. Configure the Collect Input action that requests the user to select the language:
    1. On the Data design form, in the Name field type Get User Language Choice.
    2. In the Input Audio field type Press 1 for English, press 2 for Spanish.
    3. In the Input Data Name, type Task.LanguageChoice. This is the variable Architect uses to detect if the user pressed 1 or 2, and will set the language accordingly.
    4. Move the Number of Digits slider bar to the left until Exactly 1 digits appears. Architect only analyzes the interaction for a 1 or 2, so you do not need to set more than 1 digit.
    5. Click the Verification drop-down list and select Numeric.
    6. Leave the default timeout settings unchanged.
Note: At this point in the flow, the caller will press 1 or 2.
  1. From the Toolbox, drag a Decision action, drop it below the Success path and configure it:
    1. In the Decision design form, in the Name field type Did the user choose English?.
    2. Switch to expression mode. For information on how to switch between literal and expression modes, see the Suggested content.
    3. In the Expression area, type Task.LanguageChoice == “1”.
  2. From the Toolbox, drag a Select Language action, drop it below the Yes path, and configure it:
    1. In the Name field, type User chose English.
    2. Click the language drop-down list and select English [United States] (en-us).
  3. Configure the remainder of the path if the user chose English:
    1. From the Toolbox, expand the Menu category, drag a Jump to Menu action, and drop it below the User chose English action.
    2. On the Jump to Menu design form, select a Name for the action and select the Menu to which you want to direct the interaction.
  4. Configure the remainder of the path if the user did not choose English:
    1. Repeat step 4, replacing Did the user choose English? with Did the user choose Spanish? and Task.LanguageChoice==”1″ with Task.LanguageChoice==”2″.
    2. Repeat step 5, replacing User chose English with User chose Spanish and English [United States] (en-us) with Spanish [Spain] (es-ES).

Configure the remaining No and Failure outputs to meet your company requirements when the flow fails to obtain a configured language. For example, you may want to transfer the interaction to an operator or disconnect the call.