The key to teaching your chatbot how to answer questions is to observe Unanswered Messages and educate your chatbot how to respond to them. Unanswered Messages are the bot whisperers' best friends!
Unanswered Messages
To see the list of unanswered messages, in Chatbot Studio with the correct bot selected:
- Click the Unanswered Messages option on the left-hand menu.
- Optionally, you can adjust the date range of the unanswered messages by changing the From/to fields.
The Unanswered Messages view lists all the messages your chatbot has not been able to answer. You will see what the Message was, the Time it was sent, and if the chatbot has suggestions for matching intent, how strong it thinks the Suggestion quality is.
Icons to the right of each unanswered message lets you either:
- Add the message to an existing intent.
- Mark this message as "done", if you want to remove the message from the list without adding it to an intent.
Note that unanswered messages will only be listed if the chatbot is connected to a chat platform. Testing the chatbot in Chatbot Studio’s own Bot preview screen will never create unanswered messages.
Message context
Sometimes it can be useful to see the context the question was asked in. Perhaps an earlier reply can be edited so the next customer will not need to ask the question.
- Click the unanswered message.
The Conversation detail page will open showing the messages in this conversation. Unanswered messages are marked with a yellow icon.
Find the unanswered message and see what led the customer to ask it. This can help you spot weak replies in other intents.
Adding to an existing intent
If the message is one that you want the bot to be able to answer in the future, you will need to add the message to an intent. In either the Unanswered messages list or the Conversation detail page:
- Click the Add to intent's queries icon,
.
The Add to intent's queries dialog opens, showing the message, and allowing you to choose an intent to match with.
- Optionally, you can edit the message in the User says field. Perhaps tidying up the way the customer asked the question, perhaps to generalise the questions, removing any specific details. Either way, note that the matching only considers the first 100 characters in the message.
- In the Suggested Intents tab, click the Intent name to see a list of suggestions for matching intents.
- Click to select an appropriate intent, if there is one.
- Alternatively, if none of the suggested intents are a good match, click the All intents tab.
- Again, click the Intent name drop-down list, this time to see a list of all intents for this bot.
- Click to select an appropriate intent, if there is one.
In either tab, if you have selected an intent:
- To see more information about the selected intent, click the Go to intent link.
- Once you are happy you have selected the appropriate intent, click the Save button.
Once the message has been added to a intent, the yellow icon in the Conversation detail page will turn green, and if it was the last Unanswered Message in that conversation, it will disappear from your list.
Creating a new intent
If no relevant intent exists, you might consider making a new intent. In the Add to intent's queries dialog, on the All intents tab:
- Click the Intent name dop-down list.
- Click the Create new intent option.
- Type a Name for the new intent.
- Type the appropriate Reply.
- Click the Create button.
The unanswered message will be automatically added as a query to this new intent. You can then edit it in the Intents page to add any further details, including alternatives to the query.