Working with questions
Use questions to identify the user's interests and direct them down the path that is most likely to meet their objectives for using the chatbot. The chatbot will not continue until the user answers the question. The chatbot will ignore any responses from the user that are not one of the following:
- One of the answers defined for the question.
- An utterance defined in an intention used by the chatbot.
- One of the words or phrases for canceling the conversation.
This example shows a question that expects an answer. The conversation cannot progress until the user chooses one of these 3 answers. These are defined as quick replies (on the Answers tab of the interaction):
This question defines the answers as buttons (on the Answers tab of the interaction):
On the Canvas, answers defined as quick replies and buttons appear as separate elements that are linked to the interaction that owns them and to any directly linked following interaction:
You can also define answers using any of the predefined types, such as date or email address.
Handling unexpected and unwanted answers
There are several ways of handling unexpected or unwanted answers. For example:
- Handle unexpected answers by setting up a default answer such as That wasn't really what I was expecting. This is part of the bot configuration. See Defining the chatbot's default responses.
- Handle unwanted answers that you'd like to have a specific response for by setting up an intention. Use a message to send some text in response to the unwanted answer, then link back to the original question. The interactions would look like this:
For further information about this example, see Example: handling unwanted and unexpected answers.
See also