Set Up Slots for CXone Bot Builder

Content on this page is for a product or feature in controlled release (CR). If you are not part of the CR group and would like more information, contact your CXone Account Representative.

Slot Filling Methods

There are five methods to fill slotsClosed Entity extracted from contact's message and saved for use in bot responses. Similar to a variable. in CXone Bot Builder:

  • From System—When an interaction between contact and bot begins, CXone Bot Builder automatically creates two slots that can be used in that unique interaction: Last Customer Message and Customer ID. These slots are system-generated and cannot be edited.
  • From Entity—These slots are extracted from interactions. When you create an entityClosed Defined keyword or phrase, with or without variants, in an interaction or message, a slot is created automatically. You can use the slot value as a variable in the same interaction or in other areas of Digital First Omnichannel. If you delete the entity, the slot is also deleted and you can no longer use it anywhere. Entity-based slots can be any of the slot types.
  • From Intent—This method fills the slot with a defined value if the defined intent is recognized. Both value and intent can be defined in the slot configuration. Slots using this method are created manually and are currently only applicable to forms.
  • From Message—This method uses the text of the next message to fill the slot. The recognized intent is ignored and the slot is filled with the message value, unless there is no intent restriction configured. Slots using this method are created manually and are currently only applicable to forms.
  • Custom slots—Custom slots typically hold information based on business logic. An example would be data retrieved by an API call to your CRM or another third-party application. You manually create custom slots in the same way you create intentsClosed What the contact wants to communicate or accomplish. You can use the slot value as a variable in multiple interactions between botsClosed Virtual agent designed to handle specific interactions and contacts, or in other areas of Digital First Omnichannel. Custom slots persist until they are manually deleted. They can be any of the slot types. These slots are created manually.

Create Slots

When you create an entityClosed Defined keyword or phrase, with or without variants, in an interaction or message, CXone Bot Builder automatically creates a slotClosed Entity extracted from contact's message and saved for use in bot responses. Similar to a variable. for that entity. But if you want to use a slot for information from another source, you can create slots directly in CXone Bot Builder. For example, you might use a pre-chat form that asks for your contact's account number. You could then pull the contact's account status from another system, and design your stories so that the botClosed Virtual agent designed to handle specific interactions always attempts to collect any past-due balance.

Talk to your CXone Account Representative about how to set up an integration between CXone Bot Builder and the data source for a custom slot.

  1. In the Digital First Omnichannel portal, click Chatbot.
  2. Click the bot you want to work with.
  3. Click NLU NLU icon in the left icon menu.
  4. In the right pane, click Slots and then click New Slot.
  5. Enter a name for your new slot and press Enter. Click the slot name to edit it.
  6. Click Type and select from the drop-down menu.
  7. If you want the slot to influence the interaction and bot behavior, set the Influence Dialog slider to On.

Use Slots as Variables

Required permissionChatbot (ACD > DFO > Roles > [choose one] > Core Modules)

You can personalize your stories, rules, fallback, and more by including variables: entities that come from slots. To use a variable, enclose the name of the entity in curly brackets.

  1. In the Digital First Omnichannel portal, click Chatbot.
  2. Click the bot you want to work with.
  3. Click Dialogues Dialogues icon in the left icon menu.
  4. Click New Folder, type a new name for the folder, and then press Enter.
  5. Under the new folder, click New Story.
  6. At the top of the story section, enter a name for your story.
  7. In the Customer may say box, enter the customer message and then press Enter. CXone Bot Builder analyzes the message and offers a list of intents and confidence level.
  8. If CXone Bot Builder identified the correct intent, click Confirm. If not, expand the list of intents and select the correct intent, then click Confirm. In the preceding image, CXone Bot Builder correctly identified the intent as provide_location and stored Columbus as a location entity.
  9. Hover over the plus sign at the left of the rule builder until it changes to a bot icon, then click the action.
  10. Provide the information matching the action type you selected. For example, if you selected Message, enter the message with which the bot should respond. In the example image, Akela has created a response message that includes a variable using the location entity. The message would appear to the contact as, "Okay, you're at the Columbus location. Got it."
  11. Click Train and Stage to train your bot on the new story.