Add Bot Responses to Flows

You can define how your botClosed A software application that handles customer interactions in place of a live human agent. responds to contact utterancesClosed What a contact says or types.. FlowsClosed A graphical representation of a conversation used to train a bot. allow you to create a visual representation of the conversation between the contact and your bot, including how the bot should respond to each intentClosed The meaning or purpose behind what a contact says/types; what the contact wants to communicate or accomplish.. During an interaction, when the bot identifies a particular intent, it responds with the response that was configured for that intent. Responses consist of one or more bot actions.

You can also configure bot responses in storiesClosed Used to train bot for interaction handling based on intent and context. and rulesClosed Used to define bot's response to messages that don't change with context.. You do not need to create stories and rules in addition to flows. You can do one or the other.

The steps on this page describe how to add bot responses to a flow. If you're working with stories, rules, or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add bot responses.

Add a Bot Response

When adding a bot response, you can use any of the available bot actionsClosed What the bot can do on its turn in the conversation, such as send a message or fill a slot. that are supported for flows. Intent is an option in the list of bot actions you can add to a flow. However, it is not a bot action. Instead, it represents a contact message and introduces a new intentClosed The meaning or purpose behind what a contact says/types; what the contact wants to communicate or accomplish. to the flowClosed A graphical representation of a conversation used to train a bot..

You must create a flow before adding a bot response to it. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add bot responses.

  1. In CXone Mpower, click the app selector and select Bot Builder.

  2. Click the bot you want to work with.
  3. Click Dialogues icon, which looks like conversation bubbles. in the left icon menu.
  4. On the Flows tab, click the flow you want to work with.
  5. On the flow canvas, locate the place where you want to add a bot response.
  6. Click the plus sign Icon of a plus sign in a circle. and select the bot action you want.
  7. Configure the bot action you selected:

  8. If you add a Message action, you can include buttons or quick replies. Configure them if you add any, and complete the new branch that each button or quick reply creates in the flow.
  9. Continue adding bot actions as needed to complete the bot response. For example, in addition to a Message action, you might want to fill a slot and add a tag all in the same turn in the conversation.
  10. To delete a bot action from the flow, click the trash can A trash can..

  11. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.

Add a Message Bot Action

The Message bot action allows you to define what the bot says in response to the contactClosed The person interacting with an agent, IVR, or bot in your contact center.. A message can include buttons or quick replies.

These steps describe how to add a message to a flowClosed A graphical representation of a conversation used to train a bot.. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. , you can learn how to add this option.

  1. When adding a bot response to a flow, click Message in the bot actions menu.
  2. Enter the message text.
  3. Add buttons or quick replies to the message, if you want to. You can add more than one of each, but you cannot add both to one message. Each button or quick reply creates a new branch in the flow.
  4. Click the clock Icon of a clock. to modify the amount of time the typing indicator displays before this message is sent. If smart typing is enabled for this bot, you can click Auto to override the default.

  5. To move this bot action on the flow canvas, grab the stacked dots Icon of two columns of three dots. and drag the bubble to a new location.

  6. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.

Multimedia, Cards, List Picker, Rich Link, Buttons, Quick Replies

Some of the options on the bot actionsClosed What the bot can do on its turn in the conversation, such as send a message or fill a slot. menu allow you to create messages that have rich content. Rich content enhances the messages the bot sends to the contact. They make it a more satisfying, versatile contactClosed The person interacting with an agent, IVR, or bot in your contact center. experience compared to plain text. You can learn more about rich messaging in Bot Builder, or you can learn how to add the following rich content to flowsClosed A graphical representation of a conversation used to train a bot. :

  • Multimedia: The Multimedia bot action lets you have the bot send images, GIFs, videos, and so on to the contact.
  • Cards: Cards combine images, structured text, and buttons into one message.
  • Rich Link: Rich links are links that include a clickable image.
  • Buttons: Buttons are an add-on to Message bot action and can trigger an intent or open a URL.
  • Quick Replies: Quick replies are a list of possible replies the contact can choose from. They're often used to help clarify or narrow down the intent.

If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add these options.

Add an Adaptive Cards Bot Action

Adaptive Cards are a platform-independent method of creating a variety of rich message content. They're currently only supported on digitalClosed Any channel, contact, or skill associated with Digital Experience. chat and Microsoft Teams channelsClosed Various voice and digital communication mediums that facilitate customer interactions in a contact center.. If a response that includes an adaptive card might be sent via another channelClosed Various voice and digital communication mediums that facilitate customer interactions in a contact center., add rich message fallbackClosed A plain text alternative sent when the destination doesn't support rich media. to the response.

These steps describe how to add a custom bot action to a flowClosed A graphical representation of a conversation used to train a bot.. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add this option.

  1. When adding a bot response to a flow, click Adaptive Cards in the bot actions menu.
  2. Select the Adaptive Card you want to use from the drop-down.
  3. To view or modify the selected Adaptive Card, click preferences Icon of three horizontal slider controls. at the top right corner of the card.
  4. Click rectangles with an arrow Two small rectangles with an arrow pointing from one to the other. to override the default rich message fallback for this bot action only.

  5. Click the clock Icon of a clock. to modify the amount of time the typing indicator displays before this message is sent. If smart typing is enabled for this bot, you can click Auto to override the default.

  6. To move this bot action on the flow canvas, grab the stacked dots Icon of two columns of three dots. and drag the bubble to a new location.

  7. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.

Add a Fill Slot Bot Action

The Fill Slot bot action allows you to choose a slotClosed Entity extracted from contact's message and saved for use in bot responses. Similar to a variable. and specify a value to fill it with. You can use this action to fill a slot during the bot's turn in the conversation.

These steps describe how to fill a slot in a flowClosed A graphical representation of a conversation used to train a bot.. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add this option.

This bot action instructs the bot on what it needs to do. The contact does not see a message in the chat window when you include this action a bot response.

  1. When adding a bot response to a flow, Fill Slot in the bot actions menu.
  2. Select a slot from the drop-down of available slots. If the slot you want doesn't exist yet, you can create it from the Slots Icon of a horizontal square bracket in a circle. option in the right pane on the Dialogues Icon of two chat bubbles.Stories page.
  3. Enter a Value, or leave the field blank to allow the value to be reset. Slot variables are accepted.
  4. Click the flow canvas to continue.
  5. To move this bot action on the flow canvas, grab the stacked dots Icon of two columns of three dots. and drag the bubble to a new location.

  6. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.

Add a Slot Condition Bot Action

You can use the slot condition bot action to train your bot to use different responses based on the value the slot holds. When you include this bot action in a bot response, the value of the specified slot becomes a condition that determines which path the bot takes.

These steps describe how to add a Slot Condition bot action to a flowClosed A graphical representation of a conversation used to train a bot. only. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media., you can learn how to add this option.

This bot action instructs the bot on what it needs to do. The contact does not see a message in the chat window when you include this action a bot response.

  1. When adding a bot response to a flow, click Slot Condition in the bot actions menu.
  2. Select a slot from the drop-down of available slots in your entities and intents. If the slot you want doesn't exist yet, you can create it from the Slots Icon of a horizontal square bracket in a circle. option in the right pane on the Dialogues Icon of two chat bubbles.Stories page.
  3. Enter a Value, or leave the field blank to allow the value to be reset. Slot variables are accepted.
  4. Click the flow canvas to continue.

  5. To move this bot action on the flow canvas, grab the stacked dots Icon of two columns of three dots. and drag the bubble to a new location.

  6. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.

Add a Handover Bot Action

This option allows you to have the preceding customer message trigger the handoverClosed The transfer of a contact from a bot to a live agent. rule. This is an important action to use in fallback and out-of-scope paths, but you can use it any time you want your bot to hand a conversation off to a live agent. You can learn more about handover on the Bot Actions help page.

These steps describe how to add a custom bot action to a flowClosed A graphical representation of a conversation used to train a bot.. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add this option.

This bot action instructs the bot on what it needs to do. The contact does not see a message in the chat window when you include this action a bot response.

  1. When adding a bot response to a flow, click Handover in the bot actions menu.
  2. For Into, select an agent queue from the drop-down of available queues.
  3. Enter a note for the agent if you want to provide more context.
  4. Click the flow canvas to continue.
  5. To move this bot action on the flow canvas, grab the stacked dots Icon of two columns of three dots. and drag the bubble to a new location.

  6. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.

Add a Tag Bot Action

The Tags bot action lets you add Bot Builder tags to an interaction. You can use tags when reviewing bot data to identify patterns in conversations.

These steps describe how to add a custom bot action to a flowClosed A graphical representation of a conversation used to train a bot.. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add this option.

This bot action instructs the bot on what it needs to do. The contact does not see a message in the chat window when you include this action a bot response.

  1. When adding a bot response to a flow, click Tags in the bot actions menu.
  2. Click Add Tag. If the tag you want doesn't exist yet, you can create it by clicking settings Icon of a gear. > Tags.
  3. Click the name of a tag to add it. You can add multiple tags but must do so one at a time. Even if you add more than one tag, only one new branch opens in the flow.
  4. Click the flow canvas to continue.
  5. To move this bot action on the flow canvas, grab the stacked dots Icon of two columns of three dots. and drag the bubble to a new location.

  6. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.

Add a Script Bot Action

The Scripts bot action allows you to choose a custom bot actions that you created as a script integration in Bot Builder. Depending on what the custom actions are designed to do, a message may or may not be sent to the contact.

These steps describe how to add a custom bot action to a flowClosed A graphical representation of a conversation used to train a bot.. If you're working with storiesClosed Used to train bot for interaction handling based on intent and context., rulesClosed Used to define bot's response to messages that don't change with context., or fallbackClosed A plain text alternative sent when the destination doesn't support rich media. you can learn how to add this option.

  1. When adding a bot response to a flow, click Script in the bot actions menu.
  2. Click Select Script and select from the list of available scripts. If the script you want doesn't exist yet, you can create it on the Integrations Icon of a cord plug. Scripts tab.
  3. Click the checkmark Icon of a checkmark in a circle. to confirm the script you selected or click the trash can to start over.
  4. Click preferences Icon of three horizontal slider controls. in the action bubble to open the Scripts page to view or modify the selected script.
  5. To move this bot action on the flow canvas, grab the stacked dots Icon of two columns of three dots. and drag the bubble to a new location.

  6. When you're finished making changes, click Train and Stage to update your bot modelClosed Version of a bot that has been trained and staged to test this change.