Use the Boolean Sequence Builder to create a customized sequences of message elements to send to a recipient. For example, in a Switch action, you can use any combination of data, expressions, prompts, and text elements to build a message after the system evaluates one or more expression cases.

This example demonstrates how a flow author can build functionality for both audio and text, and then return the appropriate response depending on the interaction type.

  1. In a bot flow action element that requires an output, for example a Switch action, click the button at the end of the Case box and select Boolean Sequence Builder.

  2. Click the image to enlarge. Access the Boolean Builder
    Note: Currently, the behavior uses the Main Sequence, which means that the bot uses this sequence under all conditions, which includes the language currently set for the bot flow and the output mode.
  3. Create an alternate sequence for a voice interaction:
    1. In the Boolean Builder dialog box, click Alternate sequence .
    2. Click the Language list and select the alternate language.
    3. Under Output Mode, select Voice.
    4. Click Add Alternate Sequence.
    5. In the Text field, enter the output you want the bot to say to the caller for a voice interaction. For example, “How can I help you today?”
  4. Create an alternate sequence for a chat:
    1. In the Boolean Builder dialog box, click Alternate sequence .
    2. Click the Language list and select the alternate language.
    3. Under Output Mode, select Text.
    4. Click Add Alternate Sequence.
    5. In the Text field, enter the output you want the bot to say to the recipient for a chat interaction. For example, “What would you like to do?”
  5. Alternatively, you can manually enter an expression for the output modes.
    1. In the Boolean Builder dialog box, click the Expression tab.
    2. Click the Large Expression Editor button.
    3. Click Continue.
    4. In the Edit expression dialog box, enter the custom expression using Boolean, Expression, DateTime, or String Parsing configuration.
    5. Click Save.