Set Up Slots
Slots are key/value pairs that function as your memory. They hold data that can come from various sources, including contact or your .
Glossary
Concept |
Definition |
Example |
What the Bot Does |
Utterance
|
Anything a contact says in an interaction. Sometimes called a message. |
"I lost my password."
"What is my balance?"
"Are you a bot?"
|
The bot uses Natural Language Understanding (NLU) to analyze each contact utterance to determine its meaning, or intent. |
Intent
|
What the contact wants to communicate or accomplish. Every message the contact sends has an intent. |
"I lost my password" has the intent of "reset password".
"Hello" has the intent of "greeting".
|
The bot analyzes a contact's message using to determine the intent. Once it knows that, it can respond with a message of its own. You configure the response you want the bot to use for each intent.
|
Entity
|
A defined piece of information in a contact's message. |
Person or product name, phone number, account number, location, and so on. |
The bot uses NLU to identify entities in a contact's message. Entities help the bot understand what the contact's message means. |
Slot
|
An entity extracted from a contact's message and saved for use in bot responses. Similar to a variable. |
Creating a slot for contact name lets the bot use that name in responses during an interaction, making it more personal. |
When configured to do so, the bot extracts an entity from a contact message and saves it in a slot. You can have the bot use this information later in the conversation. |
Rule
|
Defines a bot's response to messages that don't change meaning with context. |
- Single-turn interactions with fixed responses: What are your hours? What is your address?
- Conversation building blocks: Greetings, good-byes, thank yous and transitions; simple yes/no questions; and acknowledgments. Bot Builder comes with default intents and rules for several of these, including greetings, requests, and more.
- FAQs
- Insults and classic bot challenges
|
Rules are one of two ways you can configure how the bot responds to an intent. Rules are useful for certain kinds of intents, but not all intents. |
Story
|
Trains a bot to handle an interaction based on message intent and conversational context. |
In an interaction about a forgotten password, the bot would respond to, "How do I do that?" in one way. If the interaction were about creating a new account, the response would be quite different even though in both cases the contact is using the same words with the same intent – to get more information. |
Stories are the second of two ways you can configure how the bot responds to an intent. Stories teach the bot how to use the context of the conversation to respond appropriately. |
Bot Action
|
Anything a bot says or does while handling an interaction. |
In an interaction about a forgotten password, the bot responds by sending the link to the password reset FAQ on the website.
When a contact expresses frustration, such as "I don't understand! It's not working!!!" the bot responds with "I'm sorry. Would you like me to transfer you to a human agent?" When the contact says yes, the bot initiates the transfer.
|
Actions are the options you have when defining how you want the bot to respond to each intent. They give you the flexibility to configure each response to achieve the outcome that meets the contact's needs.
|
When you add an entity, Bot Builder creates a corresponding slot. You must configure entity-based slots if you want to change the settings from the default.
-
In CXone Mpower, click the app selector
and select Bot Builder.
- Click the bot you want to work with.
- Click Dialogues
in the left icon menu.
- In the right pane, click Slots.
-
Under the From Entity section, click the slot you want to configure.
-
Configure the slot Type and, if the slot type supports it, indicate if you want this slot to Influence Dialogue.
Learn more about fields in this step
Field |
Details |
Text |
Select this type if you want the slot to holdtext information. This includes numeric characters that don't need to be treated as numbers, such as a telephone or account number. If you set Influence Dialogue to On, your bot can behave differently depending on the slot's content. For entity-based slots, the bot only evaluates whether or not there is content. It doesn't behave differently based on the meaning of the content. |
Number |
Select this type if you want the slot to holdnumeric information that needs to be treated as numbers and not text. Enter the Min Value and Max Value to define a range of acceptable values. If the value that fills the slot is outside those bounds, the bot's behavior is different. You must train the bot to respond based on values that are in and out of the defined range.
If you set Influence Dialogue to On, the bot's behavior can change depending on the value in the slot:
- Values below the minimum are treated as the minimum.
- Values above the maximum are treated as the maximum.
|
Categorical |
Select this type if you want this slot to hold a defined set of text information. Depending on which of the defined Valuesfills the slot, the bot can provide a different response.
Separate the specific values with commas.
If you set Influence Dialogue to On, the bot's behavior can change depending on the value in the slot. Any values not specified in the Values field are treated as Other.
|
Boolean |
Select this type if you want a slot that holds true or false values.
If you set Influence Dialogue to On, the bot's behavior can change depending on whether the slot is set to True, set to False, or is Empty. An empty slot does not automatically act as a False value. You can train the bot to recognize "yes" as true and "no" as false.
|
Any |
Select this type if you want the slot to hold other types of values, including lists or JSON. This type of slot cannot affect the bot's behavior. Any value slots might a good choice if you are gathering data from the that you want to use in other systems.
Slots of this type cannot be used to influence the bot's behavior.
|
- To restrict this slot, select the Intent Restriction or Form Restriction for the slot. Changes are saved automatically.
Learn more about fields in this stepField | Details |
---|
Intent Restriction | Use the drop-down to select one or more of your intents to restrict slot filling to. The slot is only filled when the selected intents are identified. This field is only available for the From Message filling method. |
Form Restriction | Use the drop-down to select a form or forms where this slot should be used. The slot will only be filled from the selected forms. This field is only available for the From Intent and From Message filling methods. |
Create a Slot that Fills from Intents
You can create slots that fill with pre-defined values when the bot recognizes the specified . Intent-based slots can have multiple pre-defined values that fill the slot depending on which of the specified intents occurs during the interaction. You can map the values to the appropriate intents in the slot's configurations.
-
In CXone Mpower, click the app selector
and select Bot Builder.
- Click the bot you want to work with.
- Click Dialogues
in the left icon menu.
- In the right pane, click Slots.
-
Choose the filling method by scrolling down to the From Intent section, then clicking New Slot.
- Enter a name for the new slot and press Enter.
-
Click the slot name to edit it.
-
Select the slot Type and, if the slot type supports it, indicate if you want this slot to Influence Dialogue.
Learn more about fields in this step
Field |
Details |
Text |
Select this type if you want the slot to holdtext information. This includes numeric characters that don't need to be treated as numbers, such as a telephone or account number. If you set Influence Dialogue to On, your bot can behave differently depending on the slot's content. |
Number |
Select this type if you want the slot to holdnumeric information that needs to be treated as numbers and not text. Enter the Min Value and Max Value to define a range of acceptable values. If the value that fills the slot is outside those bounds, the bot's behavior is different. You must train the bot to respond based on values that are in and out of the defined range.
If you set Influence Dialogue to On, the bot's behavior can change depending on the value in the slot:
- Values below the minimum are treated as the minimum.
- Values above the maximum are treated as the maximum.
|
Categorical |
Select this type if you want this slot to hold a defined set of text information. Depending on which of the defined Valuesfills the slot, the bot can provide a different response.
Separate the specific values with commas.
If you set Influence Dialogue to On, the bot's behavior can change depending on the value in the slot. Any values not specified in the Values field are treated as Other.
|
Boolean |
Select this type if you want a slot that holds true or false values.
If you set Influence Dialogue to On, the bot's behavior can change depending on whether the slot is set to True, set to False, or is Empty. An empty slot does not automatically act as a False value. You can train the bot to recognize "yes" as true and "no" as false.
|
Any |
Select this type if you want the slot to hold other types of values, including lists or JSON. This type of slot cannot affect the bot's behavior. Any value slots might a good choice if you are gathering data from the that you want to use in other systems.
Slots of this type cannot be used to influence the bot's behavior.
|
-
Click Add Value Mapping.
-
Click No intent - Default value to configure the new value mapping.
-
Select the Intents and specify the Value you want to map. Changes are saved automatically.
Learn more about fields in this step
Field |
Details |
Intents |
Use the drop-down to select one or more intents to associate with this slot. When one of the selected intents is recognized in a conversation, the Value you define is filled into the slot.
This field is only available for the From Intent filling method.
|
Value |
Enter the value you want to the slot to fill with when an intent is recognized.
|
-
Add more value mappings if you want the slot to fill with a value when other intents are recognized.
-
Select one or more forms from the Form Restriction drop-down if you want to restrict this slot to filling only when the selected forms are used in a conversation.
- When you're finished making changes, click Train and Stage to update your bot to test this change.
Create a Slot that Fills From a Message
You can create a slot that holds the text of the contact's next . There is a system message slot that holds the contact's most recent message. You can use that slot in conversations. However, you cannot change its configurations. If you want to customize how the slot works, you can create your own message-based slot.
-
In CXone Mpower, click the app selector
and select Bot Builder.
- Click the bot you want to work with.
- Click Dialogues
in the left icon menu.
- In the right pane, click Slots.
-
Choose the filling method by scrolling down to the From Message section, then clicking New Slot.
- Enter a name for the new slot and press Enter.
-
Click the slot name to edit it.
-
Select the slot Type, if the slot type supports it, indicate if you want this slot to Influence Dialogue.
Learn more about fields in this step
Field |
Details |
Text |
Select this type if you want the slot to holdtext information. This includes numeric characters that don't need to be treated as numbers, such as a telephone or account number. If you set Influence Dialogue to On, your bot can behave differently depending on the slot's content. |
Any |
Select this type if you want the slot to hold other types of values, including lists or JSON. This type of slot cannot affect the bot's behavior. Any value slots might a good choice if you are gathering data from the that you want to use in other systems.
Slots of this type cannot be used to influence the bot's behavior.
|
- To restrict when this slot can be filled, set the Intent Restriction or Form Restriction for the slot. Changes are saved automatically.
Learn more about fields in this stepField | Details |
---|
Intent Restriction | Use the drop-down to select one or more of your intents to restrict slot filling to. The slot is only filled when the selected intents are identified. This field is only available for the From Message filling method. |
Form Restriction | Use the drop-down to select a form or forms where this slot should be used. The slot will only be filled from the selected forms. This field is only available for the From Intent and From Message filling methods. |
-
When you're finished making changes, click Train and Stage to update your bot to test this change.
Create a Custom Slot
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 cannot assign intent or form restrictions to custom slots.
-
In CXone Mpower, click the app selector
and select Bot Builder.
- Click the bot you want to work with.
- Click Dialogues
in the left icon menu.
- In the right pane, click Slots.
-
Choose the filling method by scrolling down to the Custom section, then clicking New Slot.
-
Configure the slot Type and, if the slot type supports it, indicate if you want this slot to Influence Dialogue. Changes are saved automatically.
Learn more about fields in this step
Field |
Details |
Text |
Select this type if you want the slot to holdtext information. This includes numeric characters that don't need to be treated as numbers, such as a telephone or account number. If you set Influence Dialogue to On, your bot can behave differently depending on the slot's content. |
Number |
Select this type if you want the slot to holdnumeric information that needs to be treated as numbers and not text. Enter the Min Value and Max Value to define a range of acceptable values. If the value that fills the slot is outside those bounds, the bot's behavior is different. You must train the bot to respond based on values that are in and out of the defined range.
If you set Influence Dialogue to On, the bot's behavior can change depending on the value in the slot:
- Values below the minimum are treated as the minimum.
- Values above the maximum are treated as the maximum.
|
Categorical |
Select this type if you want this slot to hold a defined set of text information. Depending on which of the defined Valuesfills the slot, the bot can provide a different response.
Separate the specific values with commas.
If you set Influence Dialogue to On, the bot's behavior can change depending on the value in the slot. Any values not specified in the Values field are treated as Other.
|
Boolean |
Select this type if you want a slot that holds true or false values.
If you set Influence Dialogue to On, the bot's behavior can change depending on whether the slot is set to True, set to False, or is Empty. An empty slot does not automatically act as a False value. You can train the bot to recognize "yes" as true and "no" as false.
|
Any |
Select this type if you want the slot to hold other types of values, including lists or JSON. This type of slot cannot affect the bot's behavior. Any value slots might a good choice if you are gathering data from the that you want to use in other systems.
Slots of this type cannot be used to influence the bot's behavior.
|
-
When you're finished making changes, click Train and Stage to update your bot to test this change.