This tutorial shows the basics of training a Model, branching off a new training based on a previous training, and editing a Bot response in order to change it.
This tutorial requires that the general tutorial bot is running
npm run tutorial-general
- Actions: A Bot response to user input.
- Train: The way we teach a Bot to respond to user input.
- Branching: The modification of a user input within a saved Train Dialog for the purpose of creating a new Train Dialog that starts out the same as the original, but takes the conversation in a different direction.
- In the Web UI, click New Model
- For the "Name", type "Inspire Bot". Then click Create.
- On the left panel, click "Actions", then the "New Action" button.
- In the "Bot's response" field, enter "Hi! Would you like to be inspired today?".
- Leave all other fields and check boxes at their default setting.
- Click Create.
- On the left panel, click "Train Dialogs", then the "New Train Dialog" button.
- In the chat panel, where it says "Type your message...", type in "hello".
- This simulates the user's side of the conversation.
- Click "Score Actions".
- Select the response, "Hi! Would you like to be inspired today?".
- As the user, respond with, "yes".
- Click "Score Actions".
- Click on the "+ Action" button.
- This will take you to the familiar "Create an Action" dialog box.
- Type in the Bot's response as, "You're awesome!"
- Click Create.
- Notice that the Bot responds immediately.
- Click the "Save" button.
- Click on the grid row that summarizes the first training.
- This allows you to view and edit the existing training.
- Click on the "yes" user response.
- This will expose editing controls.
- Click on the branch icon.
- This will bring up a prompt for a different user input for a new conversation.
- Type in "no", hit enter or click the "Create" button.
- At this point you will have a new instance of a Train Dialog, the original one remains unchanged.
- Click "Score Actions".
- Click on the Bot's incorrect response that just appeared.
- Click on the "+ Action" button
- so that we can create a new Action for the Bot to respond with.
- Type in the Bot's response as, "No problem! Have a great day!"
- Click Create
- Notice that the Bot responds immediately.
- Click the "Save" button.
- On the left panel, click "Log Dialogs", then "New Log Dialog".
- Type in the message, "hi".
- Notice that the Bot responds automatically in the way we trained it.
- Type in the user reply, "yes".
- Notice the Bot response, it shows that the first training is working.
- Click the "Session Timeout" button. This tells Conversation Learner we want to begin again, ignoring the conversational turns that just took place.
- Type in the message, "hi".
- Notice that the Bot responds automatically in the way we trained it.
- Type in the user reply, "no".
- Notice the Bot response, it shows that the second training is working.
- Click the "Done Testing" button.
[!div class="nextstepaction"] Wait and non-wait actions