Work with Stories

Stories are how you teach your bot to respond to intents in the context of the whole conversation.

Create a Story

When you create a story, you are designing a scenario that you want your bot to learn how to handle. You start by adding something a contact might say. The bot attempts to predict an intentClosed The meaning or purpose behind what a contact says/types; what the contact wants to communicate or accomplish. You can correct the intent if necessary, then add how you want the bot to respond.

While creating a story, you can view each intent used in the story. This allows you to see other examples of what the contact might say to trigger that intent. You can modify the intent without leaving the story page.

  1. In CXone, 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 tab in the Dialogues section of Bot Builder, locate the folder your new story should go in. You can also click New Folder icon, indicated by a plus sign inside a circle., enter a name, and press Enter.
  5. Hover over the folder name and click New Storyicon, indicated by a plus sign inside a circle..
  6. Type a name for the story and press Enter.
  7. Add an example of what the contact might say: 
    1. In the middle panel, click the + icon on the right. It turns into the contact icon A square with rounded corners with a face in it..
    2. In the Customer may say field, enter a message a contact might send in the scenario you're creating, then press Enter. CXone Bot Builder analyzes the message and offers a list of intents with a confidence level for each.
    3. If the top intent is the correct intent, click Confirm. If it's not, click the incorrect intent to expand the Intents list, then select the correct intent and click Confirm.
    4. While you're working with the intent in this step, Bot Builder displays a list of the training examples the selected intent is configured with on the right side of the page. From this list, you can add examples, modify or delete existing examples, and add entities from the words in the examples.
  8. Add the bot's response:
    1. In the middle panel of the story page, hover over the plus sign until it changes to a bot icon A square with rounded corners and a robot head inside.. Click the General, Forms, APIs, or Scripts tab, then click a bot action.
    2. Configure the bot action you added. For example, if you added a message action, enter what the bot should say.

    3. Click the typing indicator to set or override the length of time a typing indicator displays for the action. If smart typing is turned on, the bot automatically determines this for you.
    4. For message actions only, click Variations icon, represented by two crossing arrows to open a dialogue where you can add variations to the existing bot message. In this dialogue, click Add Variation, then type a different version of your original message shown at the top. Add as many variations as you want. The bot will randomly select which variation to use in a conversation.
    5. For rich messageClosed Elements in digital messaging such as buttons, images, menus, and option pickers. actions only, click Rich Message Fallback icon, represented by two boxes with an arrow pointing from one to the other. to customize the response if the message is being sent over a channel that doesn't support rich content. By default, the bot will use what is configured in Rich Messaging Fallback.
  9. Repeat this process until you have completed the messages and actions for this story. If you need to edit intents, slots, or forms, you can do so right in the story builder. Click Intents, Slots, or Forms on the right side of the page.
  10. Click Hide An eye with a diagonal line across it. if you want to exclude this story from training. For example, if you cannot complete the story in one session, you can hide it until you're able to finish it.
  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. You can do more training and testing later.

Duplicate a Story

If you have an existing story that is similar to the one you want to create, you can copy it and edit as needed.

  1. In CXone, 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. Hover over an existing story, click Options icon, represented by three horizontal dots., then click Duplicate. The new story is created and displayed for editing.
  5. To change the name of the duplicated story:
    1. Hover over the copy and click Options icon, represented by three horizontal dots., then select Edit.
    2. Add a new name.
    3. Press Enter on your keyboard to apply the change.
  6. Click on the duplicated story and make changes to the story content if needed.
  7. Click Train and Stage to update the bot modelClosed Version of a bot that has been trained and staged.

Convert a Conversation to a Story

You can convert an interaction from the Conversations tab in Insights to a story. You can then use it as training data to improve the bot's future responses. If needed, you can delete parts of the conversation, or add intents to make it better fit your situation.

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

  2. Click the bot you want to work with.
  3. Click Insights icon, which looks like a line graph. in the left icon menu.
  4. Click Conversations.
  5. Locate the conversation you want to review. You can search using natural language or write queries in a query language for more detailed results.

  6. Click the conversation in the list on the left side of the Conversations tab.
  7. Click Convert to Story A speech bubble with a lightning bolt in one corner.. Bot Builder converts the conversation and displays a success message at the top of the page.

  8. Click Show in the success message to jump to the new story. You can also navigate to the new story by clicking Dialogues icon, which looks like conversation bubbles. and select the new story on the Stories tab. Stories converted from conversations appear in the From Learning folder.

  9. Click the story and drag it to the folder where it belongs. You can also click New Folder icon, indicated by a plus sign inside a circle., enter a name, and press Enter. Then you can move the converted story into your new folder.

  10. Go through the story and modify it as needed. Changes to the story are saved automatically. You can:

    • Click the intent shown under a contact message to assign a new intent to that message.

    • Hover your cursor over the contact icon next to a message in the conversation and click Delete to remove a message from the story.

    • Hover your cursor over the contact icon next to a message in the conversation, then click and hold the rearrange icon Two columns of three dots next to each other. to move the message to a new location in the conversation.

    • Click Typing Indicator A clock face showing one hand pointing to 10:00. next to a bot response to set a typing indicator or override the smart typing settings for a bot message.

    • Click Variations Two arrows crossed in an X. next to a bot response to add a variation of this response message.

    • Click Rich Messaging Fallback Two rectangles stacked on top of each other with an arrow pointing from one to the other. next to a bot response to configure the rich messagingClosed Elements in digital messaging such as buttons, images, menus, and option pickers. fallback for this response.

    • Click a rich messaging option beneath a bot response and modify it. This is an option only for responses that can include rich mediaClosed Elements in digital messaging such as buttons, images, menus, and option pickers., such as buttons. You can learn more about these options in the Rich Messaging help page.

    • Click Intents A circle with a light bulb in it. on the right side of the page to modify or delete

      Click Slots A circle with a ] shape laying horizontally in it. on the right side of the page and click the slot you want to modify from the list that appears. You can add a slot by clicking New Slot at the bottom of the list.

    • Click Forms A circle with a drawing of a piece of paper with a bent corner. on the right side of the page and click the form you want to modify from the list that appears. You can add a slot by clicking New Form at the bottom of the list.

  11. If the story is not finished and you don't want to add it to the bot training data, click Hide An eye with a diagonal line across it, as if saying no. in the toolbar at the top of the conversation. You can release it for training when it's ready.

  12. If the story is ready, click Train and Stage to train your bot on it.

Hide a Draft Story from Training

You can hide individual dialoguesClosed Bot stories and rules in CXone Bot Builder. . This excludes them from training until they're ready.

When hidden, the data is visible to you for editing, but your bot does not learn from it. It is also displayed with the Hidden an eye icon with a slash through it icon.

  1. In CXone, 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 tab, hover your cursor over the dialogue and click Options icon, represented by three horizontal dots., then click Hide.
  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.

Release a Draft Story to Training

When you're ready to release a draft dialoguesClosed Bot stories and rules in CXone Bot Builder. , you can unhide it and train your bot to use it.

  1. In CXone, 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 tab, hover your cursor over the dialogue and click Options icon, represented by three horizontal dots., then click Show.
  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.