Forms
Bots are often used to collect a few pieces of information from a customer. Using full stories Used to train bot for interaction handling based on intent and context or rules Used to define bot's response to messages that don't change with context. for this type of conversation can be inconvenient. Forms simplify the process of filling slots to provide a smoother experience.
Akela notices that her bot is receiving multiple requests each day from customers wanting to change their address. This is not something her bot is currently set up to do, so customers were getting frustrated. Rather than write out a complete and entirely new story or rule to handle address changes, Akela decides to build a form, then create a rule for her bot to deliver the form. This simplifies the process for the bot and for customers.
You need to create a form, then activate it in a story or rule. Advanced configuration is required to handle more complex situations, like interruptions or specific database search queries.
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 NLU This process expands on Natural Language Processing (NLP) to make decisions or take action based on what it understands. 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. |
|
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. |
Form-Based Bot Conversations
The bot uses intents The meaning or purpose behind what a contact says/types; what the contact wants to communicate or accomplish to determine when a form is needed. Once a form is triggered by an intent, the bot starts to ask questions to fill slots in that specific form. The bot continues to ask the questions until it fills all slots in that form. This is true even if something interrupts the conversation, such as a question from the customer. The bot will pause to answer the question, then return to the form loop to continue filling the slots.