Build customized output with the Communication Sequence Builder
You can build customized output for voice bot flows with the Communication Sequence Builder, or for digital bot flows with the Rich Text Builder. In a Switch action, direct the path to take based on the response it gets during the interaction. 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.
How to use the builder
The following common operations are available in Architect builders that support multiple data types:
- To build an expression value using a sequence of items of specific data types, click and configure the desired data types. Architect displays the added items as card elements within the sequence.
- To rearrange the sequence of cards, click and hold the card that you want to move up or down in the list. Alternatively, use the Tab key to move through the list of cards and select the card that you want to move. To move the card to the desired position within the list, select Alt or Option and use the up and down arrow keys.
- To delete a card, click the trash icon for the card that you want to delete. Alternatively, use the Tab key to move through the list of cards and select the card that you want to delete. Then, use the Delete key to delete the card.
Bot flows
For bot flows, you can add text or use the Communication Sequence Builder or use the Rich Text Builder. These steps illustrate how to use the Communication Sequence Builder.
- In a bot flow action element that needs an output, for example an Ask for Intent action, click the button at the end of the element and select Communication Sequence Builder.
Click the image to enlarge.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. - Create an alternate sequence for a voice interaction:
- In the Communication Sequence Builder dialog box, click Alternate sequence .
- Click the Language list and select the alternate language; for example, French Canada.
- Under Output Mode, select Voice.
- Click Add Alternate Sequence.
- In the Text field, enter the localized output you want the bot to say to the caller for a voice interaction. For example, “Que souhaitez-vous faire? “
- Create an alternate sequence for a text:
- In the Communication Sequence Builder dialog box, click Alternate sequence .
- Click the Language list and select the alternate language.
- Under Output Mode, select Text.
- Click Add Alternate Sequence.
- In the Text field, enter the output you want the bot to say to the recipient for a chat interaction. For example, “Que souhaitez-vous faire? “
- Click Save.
- Alternatively, you can manually enter an expression for the output modes.
- In the Communication Sequence Builder dialog box, click the Expression tab.
- Click the Large Expression Editor button.
- Click Continue.
- In the Edit expression dialog box, enter the custom expression.
Click the image to enlarge.
Note: In this example, the first parameter in the ToMultimodalCommunication expression applies to voice, and the second parameter applies to text.
Digital bot flows
For digital bot flows, you can add text, use the Communication Sequence Builder, or use the Rich Text Builder. These steps illustrate how to use the Rich Text Builder.
- In a digital bot flow action element that needs an output, for example a Communicate action, click the button at the end of the element and select Rich Text Builder.
- Use the toolbar in the Rich Text Builder to create communication to the user:
- Add a text string and format the text using bold, italic, or strikethrough text.
- To add customizable text and a link to an external URL, click the Add Link icon.
- To add a variable value for a preconfigured slot, click the Add Variable icon.
- To enter a manual expression and inert the result into the rich text, click the Add Expression icon.
- To add an image from a URL, click the Insert Image icon.
- Create an alternate sequence for a chat:
- In the Communication Sequence Builder dialog box, click Alternate sequence .
- Click the Language list and select the alternate language.
- Under Output Mode, select Text.
- Click Add Alternate Sequence.
- 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?”
- Click Save.
- Alternatively, you can manually enter an expression for the output modes.
- In the Communication Sequence Builder dialog box, click the Expression tab.
- Click the Large Expression Editor button.
- Click Continue.
- In the Edit expression dialog box, enter the custom expression.