This tutorial shows how to get started with Conversation Learner, including creating actions, teaching the Bot interactively, and making corrections of logged dialogs which come from end users.
If you haven't already, first ensure all setup steps have been completed, including creating a .env
file with your LUIS authoring key. See Quickstart for details.
This tutorial requires that the general tutorial Bot is running
npm run tutorial-general
Start on the home page in the Web UI.
- Click the "New Model" button.
- In the "Name" field, enter "Hello World".
- Click the "Create" button.
You should now see the view of the model you created.
- On the left panel, click "Actions", then the "New Action" button.
- An Action can be a text message that Conversation Learner returns to the user, an API call, or a card.
- In the "Bot's Response..." field type "Hello".
- This is the response that the Bot will return.
- Click the "Create" button.
You have created the first Action that the Bot can perform, i.e. return a text response.
This is where you Train the Model on how to respond to user utterances.
- On the left panel, click "Train Dialogs", then the "New Train Dialog" button.
- Type "Hi", hit enter.
- As an example of what the user might say in the beginning of a conversation.
- Click the "Score Actions" button.
- Select "Hello".
- You just completed one full turn in this example dialog.
- Type in the user reply, "Goodbye".
- Click the "Score Actions" button.
- Click the "+ Action" button.
- Type "Goodbye!" in "Bot's response..." field, then click the "Create" button.
- Notice that the Bot responded with that action you just created.
- Click the "Save" button.
- This will end and save this Training Dialog.
Now you have one Training Dialog in the Model, along with a single Entity and two Actions.
Let's do one more training and see how the Bot responds.
- Click the "New Train Dialog" button.
- Type in, "Hi"
- This is similar to the first dialog and we expect to get a good score from the Bot.
- Click the "Score Actions" button.
- The position and score may still not be accurate enough and may require additional training.
- Select "Hello".
- Type in the user reply, "bye".
- Click the "Score Actions" button.
- Select "Goodbye!"
- Click the "Save" button.
This is where you Test, View and Correct Conversations that you or real users have had with your Bot.
- On the left panel, click "Log Dialogs", then the "New Log Dialog" button.
- Type "hello there".
- Wait a short time, the Bot should respond automatically with "Hello"
- Enter 'byebye'
- Wait a short time, again the Bot should respond automatically with "Hello".
- Click the "Done Testing" button.
Using Log Dialogs, you can view the list of conversations users held with your Bot. You can also edit them in order to correct the Bot's responses and save the interactions as Training Dialogs. To do that:
- In the grid, click on the log of the conversation.
- Click on the last Bot action e.g. "Hello".
- Select "Goodbye!" to correct the Bot.
- Click the "Save As Train Dialog" button.
[!div class="nextstepaction"] Introduction to Training