Add Bot Responses to Dialogues or Fallback

You can define how the bot responds to contact utterancesClosed What a contact says or types.. Bot responses are configured in dialoguesClosed Bot stories and rules in Bot Builder.. 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.

The steps on this page describe how to add bot responses to 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., you can learn how to add bot responses on the Add Bot Responses to Flows page.

Add a Bot Response

When you create a dialogueClosed Bot stories and rules in Bot Builder. or fallbackClosed A plain text alternative sent when the destination doesn't support rich media., you can choose which actions the bot will use when responding to contact utterancesClosed What a contact says or types.. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., you can learn how to add a bot response.

  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 Stories, Rules, or Fallback tab, click the dialogue you want to work with.

  5. In the middle panel, hover your cursor over the + icon on the left. It changes to the bot icon A robot head. and the bot actions menu appears.

  6. Click the bot action you want to use. The action appears on the workspace in the dialogue you're working with.

  7. Configure the action you selected:

  8. Continue adding actions as needed to complete the bot response.

  9. 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.

Message

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 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., you can learn how to add this option.

  1. When adding a bot response, click Message in the bot actions menu.
  2. In the bot action that appears in the dialogueClosed Bot stories and rules in Bot Builder., enter the message you want the bot to send to the contact in the Type a bot response field. In addition to adding plain text, you can:

    • Type a colon : to bring up an emoji picker.
    • Type a curly bracket { to bring up a list of existing slot variables. Select from the list or type the variable yourself. Enclose the name of the slot in curly brackets ( { } ).
    • Click Button or Quick Reply to add one to the message. Configure the button or quick reply. Details of the configuration appear next to it on the dialogue page. You can add more buttons or quick replies, but you cannot mix the types of rich content in one message.
  3. Use the other options available for this action as needed: 
    • 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.

    • Click the crossed arrows icon, represented by two crossing arrows to open a box where you can add variations to the existing message. The bot will randomly select which variation to use in a conversation.
    • 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.

    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  4. 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 General tab of the bot actions 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 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 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. on the Add Rich Message Content help page:

  • 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.
  • List Picker: A list picker is a list of options the contact can choose from.
  • 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 a flowClosed A graphical representation of a conversation used to train a bot., you can learn how to add these options.

Adaptive Cards

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 adaptive cards to 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., you can learn how to add this option.

  1. When adding a bot response, click Adaptive Cards in the bot actions menu.
  2. In the bot action that appears in the dialogueClosed Bot stories and rules in Bot Builder., select an Adaptive Card from the drop-down list.
  3. To modify the card or to view its properties, hover your cursor over the selected card and click Edit. The adaptive card designer opens in the pane on the right side of the page.
  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. Use the other options available for this action as needed: 

    • 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.

    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  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.

Fill Slot

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 add a Fill Slot bot action to 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., 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, click Fill Slot in the bot actions menu.
  2. In the bot action that appears in the dialogueClosed Bot stories and rules in Bot Builder., select a Slot from the drop-down list. You can click Create Slot if the slot you need doesn't exist yet. If you create a slot, open the Slots panel A square bracket ] laying on its long side, points up. on the right to configure it.
  3. Enter the Value you want to fill the selected slot with.  You can: 
    • Enter a new value to fill the slot with.
    • Leave the field empty to reset the value of the slot.
    • Use the name of a slot as a variable by enclosing the slot name in curly brackets ( { } ).
  4. Use the other options available for this action as needed: 

    • 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.

    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  5. 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.

Slot Condition

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 action to 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., 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, click Slot Condition in the bot actions menu.

  2. In the bot action that appears in the dialogueClosed Bot stories and rules in Bot Builder., select a Slot from the drop-down list.
  3. Enter the Value that must be matched to trigger the next action. You can use the name of a slot as a variable by enclosing the slot name in curly brackets ( { } ). If you want to reset the value of the slot, leave this field empty.
  4. Use the other options available for this action as needed: 

    • 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.

    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  5. 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.

Handover

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 Handover action to 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., 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, click Handover in the bot actions menu.
  2. In the bot action that appears in the dialogueClosed Bot stories and rules in Bot Builder., select a digitalClosed Any channel, contact, or skill associated with Digital Experience. routing queue from the Into drop-down list.
  3. Enter a Note for Agent if you want to pass any information on to the human agent. You can include slot variables in this field by enclosing the name of the slot in curly brackets ( { } ).
  4. Use the other options available for this action as needed:
    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  5. 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 Tag

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 Tag action to 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., 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, click Add Tag in the bot actions menu.
  2. Click Add Tag A plus sign in a circle. in the bot response workspace.
  3. Select one or more tags from the drop-down list. You can search for tags by name.
  4. To create a tag:
    1. Enter a tag name the search bar.
    2. Click the Create tag option that appears.
    3. Select the new tag to add it to the bot response.
  5. Click Add Tag A plus sign in a circle. to add more tags.
  6. Use the other options available for this action as needed: 
    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  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.

Checkpoint

A checkpoints links stories within the same story. This action is not available in rules or flows.

These steps describe how to add a Checkpoint action to 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. only. This option is not available for flowsClosed A graphical representation of a conversation used to train a bot..

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, click Checkpoint in the bot actions menu.
  2. Click Story continues to A plus sign in a circle. in the bot response workspace.
  3. Select the story you want to link to. You can enter a keyword to search for a story.
  4. Use the other options available for this action as needed: 
    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  5. 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.

Forms

Forms are a convenient way your bot can gather information from the contact. They guide form-based conversations, where the bot asks the contact questions, then completes the form with the responses. Form responses are stored in slotsClosed Entity extracted from contact's message and saved for use in bot responses. Similar to a variable..

These steps describe how to add a Forms action to 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. only. This option is not available for formsClosed A collection of questions used to evaluate agent interactions..

You must create a form before you can complete this task.

  1. When adding a bot response, click the Forms tab in the bot actions menu.
  2. Select Activate or Submit. You must add actions for both of these options to the bot response.
  3. Select the form you want to activate or submit.
  4. Add another Forms bot action to the bot response and click the Cancel option. This gives the contact the ability to cancel out of the form.
  5. Use the other options available for this action as needed: 

    • 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.

    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  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.

API Actions

API actions are a customizable bot action that allows you to include API integrations in your bot's configuration. They're an advanced option you can use to connect your bot to other applications or platforms using API calls.

This option is only supported in 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. . It's not currently supported in flowsClosed A graphical representation of a conversation used to train a bot..

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, click the APIs tab in the bot actions menu.
  2. Click the API action you want to add to the bot response.
  3. In the Save response into drop-down, select the slot where you want the response returned via the API call to be saved.
  4. To view the configuration page for this API integration, click the configuration icon Three horizontal lines, each with a small veritical line on it line a slider. in the bot response. When you are ready to return to the bot response, click Dialogues icon, which looks like conversation bubbles. in the left icon menu and navigate to the story, rule, or fallback you were working with.
  5. Use the other options available for this action as needed: 

    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  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.

Script Actions

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 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. only. If you're working with a flowClosed A graphical representation of a conversation used to train a bot., you can learn how to add this option.

  1. When adding a bot response, click the Scripts tab in the bot actions menu.
  2. Click the custom bot action you want to use in the bot response.
  3. To view the script of the custom action you added, click the configuration icon Three horizontal lines, each with a small veritical line on it line a slider. in the bot response. When you are ready to return to the bot response, click Dialogues icon, which looks like conversation bubbles. in the left icon menu and navigate to the story, rule, or fallback you were working with.
  4. Specify a value for any editable variables the custom action you added has:
    • For text type variables, enter a value in the field. This value overrides the default value, if the variable has one.
    • For select type variables, choose a value from the drop-down list. The values in the list are the ones assigned to the variable when it was created.
  5. Use the other options available for this action as needed: 

    • Click and hold the six vertical dots Two sets of three vertical dots side by side. to drag the message to a new place in the dialogue.

    • Click the trash can A trash can. to remove the message from the dialogue.

  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.