Build Your First Use Case
Create Intents
Required permission: Chatbot (ACD > Digital Experience > Roles > [choose one] > Core Modules)
Based on her preparation, Akela identifies this happy path:
Contact: Hello.
Bot: Hello. How can I help you?
Contact: I forgot my password.
Bot: I'm sorry to hear that. You can reset it at our website.
Contact: How do I do that?
Bot: Click Forgot Password in the upper right corner of the landing page. Then enter your email address and the system will send you a link to reset your password.
Contact: Thank you!
Bot: You're welcome. Is there anything else I can do for you?
Contact: No. You've been very helpful. Good-bye.
Bot: Thank you for contacting us. Good-bye.
After analyzing the real-life contact messages in this example, Akela decides there are five intents:
- Greeting (Hello)
- Password_reset (I forgot my password)
- Explain (How do I do that?)
- Thanks (You've been very helpful)
- Good-bye (Good-bye)
Create a Single Intent
-
En CXone, haga clic en el selector de aplicaciones y seleccioneCreador de bots.
- Click the bot you want to work with.
- Click NLU in the left icon menu.
- Click the Intents tab.
- Locate the folder your new intent should go in. If the folder doesn't exist, click New Folder and enter the name for the new folder.
- Hover over the folder name and click New Intent.
- Enter a name for your new intent and press Enter.
- Beneath the new intent, begin entering phrases that the bot should recognize for that intent. Separate phrases by pressing Enter. Entries are saved automatically.
- Click Train and Stage to train your bot on the new intent. You can also do more training and testing later.
- Once the intent is used in a story Se utiliza para entrenar al bot para el manejo de interacciones según la intención y el contexto or rule Se usa para definir la respuesta del bot a los mensajes que no cambian con el contexto., you can click Find in Dialogues, then click an item in that list to go to that story or rule.
Create a Multi-Intent
In the planning example, the final bot statement requires the bot to recognize two intents in the contact message.
While reviewing her sample conversations, Akela realizes that users often combine thanks and good-bye in the same message. She decides that the conversation will have a better flow if she creates a multi-intent so the bot can respond to these intents together.
-
En CXone, haga clic en el selector de aplicaciones y seleccioneCreador de bots.
- Click the bot you want to work with.
- Click NLU in the left icon menu.
- Click the Intents tab.
- Locate the folder your new intent should go in. If the folder doesn't exist, click New Folder and enter the name for the new folder.
- Hover over the folder name and click New Intent.
- Enter a name for your new multi-intent and press Enter. The name should contain both intents connected by a + sign. You'll see Akela's multi-intent in the image: thanks + goodbye.
- Beneath the new multi-intent, begin entering phrases that the bot should recognize. Separate phrases by pressing Enter. Entries are saved automatically.
- Click Train and Stage to train your bot on the new multi-intent. You can also do more training and testing later.
- Once the multi-intent is used in a story Se utiliza para entrenar al bot para el manejo de interacciones según la intención y el contexto or rule Se usa para definir la respuesta del bot a los mensajes que no cambian con el contexto., you can click View Dialogues, then click an item in that list to go to that story or rule.
Create Rules
Required permission: Chatbot (ACD > Digital Experience > Roles > [choose one] > Core Modules)
Rules tell your bot Una aplicación de software que maneja las interacciones del cliente en lugar de un agente humano en vivo. how to respond to messages Cualquier cosa que diga un contacto en una interacción de bot, ya sea una pregunta o declaración, escrita o hablada. that are the same in every context. Examples include:
- 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. Creador de bots CXone comes with default intents El significado o propósito detrás de lo que dice/escribe un contacto; lo que el contacto quiere comunicar o lograr and rules Se usa para definir la respuesta del bot a los mensajes que no cambian con el contexto. for common building blocks. These include greetings, handover Cualquier mensaje de contacto que deba activar la transferencia a un agente en vivo requests, and more.
- FAQs: Questions that customers often ask your bot.
- Insults and classic bot challenges: Are you a real person? Is this a bot?
- Interruptions: Questions or topic changes from the customer while the bot is attempting to fill slots for a form.
Conditions
You can define specific conditions that must be met in order for the rule to be used. You can choose from the following types of conditions:
- Active Form: The rule only runs when the specific form or forms are active.
- Slot Value: The rule only runs when the slot or slots have a specific value.
Akela wants to create a rule that provides the same response to any expression of thanks from the contact. She adds the rule to the default Small Talk folder, but she could also create a new folder to house the rule. She also wants to add two more messages to the Greeting rule that are common among her users.
Add a New Rule
Before following these steps, be sure you create an intent for the rule, if you haven't already.
-
En CXone, haga clic en el selector de aplicaciones y seleccioneCreador de bots.
- Click the bot you want to work with.
- Click Dialogues in the left icon menu.
- Click the Rules tab.
- Locate the folder your new rule should go in. If the folder doesn't exist, click New Folder and enter a name for the folder.
- Hover over the folder name and click New Rule.
- Type a name for the rule and press Enter.
- If your rule should only be used under a certain condition, click Add condition. Choose the condition type and the appropriate form or slot value.
- In the middle panel, click the + icon on the right. In the Customer may say box, enter a message a contact might send and then press Enter. Creador de bots CXone analyzes the message and offers a list of intents and confidence level.
- If Creador de bots CXone identified the correct intent, click Confirm. If not, click Intents to expand the Intents pane on the right and select the correct intent, then click Confirm.
- Hover over the plus sign until it changes to a bot icon. Click the General, Forms, or Integrations tab, then click an action.
-
Provide the information matching the action type you selected. For example, if you selected Message, enter what the bot should say.
- 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.
- For message actions only, click Variations to open a dialogue where you can add additional variations to the existing 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.
- For rich message actions only, click rich message fallback 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.
- You can add more examples to the intent. This helps ensure the rule is triggered for each way a customer may phrase something.
- Click the intent under the contact message to load it in the Intents pane on the right. Then click Add example and add new messages.
- Go to NLU , then click Add example for the intent you want add messages to.
- Click Train and Stage to train your bot on the new rule. You can also do more training and testing later.
Add New Messages to an Existing Rule
Before following these steps, be sure you create an intent for the rule, if you haven't already.
-
En CXone, haga clic en el selector de aplicaciones y seleccioneCreador de bots.
- Click the bot you want to work with.
- Click Dialogues in the left icon menu.
- Click the Rules tab.
- Click the rule you want to edit.
- Click Intents to open the Intents pane on the right.
- Click the intent under the contact message to load it in the Intents pane. Then click Add example and add new messages.
- Click Train and Stage to train your bot on the new rule. You can also do more training and testing later.
Duplicate a Rule
If you have an existing rule that is similar to the one you want to create, you can copy it and edit as needed. To create a copy, hover over an existing rule, click Options, then click Duplicate. The new rule is created and displayed for editing.
Create Stories
Required permission: Chatbot (ACD > Digital Experience > Roles > [choose one] > Core Modules)
Stories teach your bot Una aplicación de software que maneja las interacciones del cliente en lugar de un agente humano en vivo. how to respond to messages Cualquier cosa que diga un contacto en una interacción de bot, ya sea una pregunta o declaración, escrita o hablada. in the context of an interaction. They are typically expressed as happy Historia que produce el resultado correcto para la intención and unhappy paths Historia que produce un resultado erróneo para la intención. Don't make up stories that you think might happen. Use real interactions to create them instead.
Akela refers to her examples to create the happy path story for a forgotten password. The story includes only the part of the conversation that is relevant to the context of the Password_reset intent:
Customer: I forgot my password.
Bot: I'm sorry to hear that. I can help! You can reset it on our website. Here is a direct link for you: www.jungle.com/passwordreset
-
En CXone, haga clic en el selector de aplicaciones y seleccioneCreador de bots.
- Click the bot you want to work with.
- Click Dialogues in the left icon menu.
- Click the Stories tab.
- Locate the folder your new story should go in. If the folder doesn't exist, click New Folder and enter a name for the folder.
- Hover over the folder name and click New Story.
- Type a name for the story and press Enter.
- In the middle panel, click the + icon on the right. In the Customer may say box, enter a message a contact might send and then press Enter. Creador de bots CXone analyzes the message and offers a list of intents and confidence level.
- If Creador de bots CXone identified the correct intent, click Confirm. If not, click Intents to expand the Intents pane on the right and select the correct intent, then click Confirm.
- Hover over the plus sign until it changes to a bot icon. Click the General, Forms, or Integrations tab, then click an action.
-
Provide the information matching the action type you selected. For example, if you selected Message, enter what the bot should say.
- 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.
- For message actions only, click Variations to open a dialogue where you can add additional variations to the existing 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.
- For rich message actions only, click rich message fallback 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.
- Repeat this process until you have completed the messages and actions for this story. If you need to edit intents or slots, you can do so right in the story builder.
- Click Train and Stage to train your bot on the new story. You can also 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. To create a copy, hover over an existing story, click Options, then click Duplicate. The new story is created and displayed for editing.
Train Your Bot
You can duplicate the real-world interactions you collected earlier to make sure your bot handles them correctly. You can also create new interactions when you collect new training examples. As you're building your bot, the Train and Stage button lets you train your bot on new intents El significado o propósito detrás de lo que dice/escribe un contacto; lo que el contacto quiere comunicar o lograr, rules Se usa para definir la respuesta del bot a los mensajes que no cambian con el contexto., stories Se utiliza para entrenar al bot para el manejo de interacciones según la intención y el contexto, and so on. You can use the health monitor to track training progress.
You can hide individual dialogues (stories and rules) or intents. This excludes them from training until they're ready. Hover over the dialogue or intent, click Options, then click Hide. 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 icon. When the dialogue or intent is ready for training, click Options, then click > Show, then click Train and Stage.
You can also take time to talk to your bot to review its responses and correct any problems.