Introduction:
In OBI Bots, it is possible to create a closed question for the chatbot user to answer by using buttons (answer suggestions). In this article, we explain how to create a closed question with buttons.
How to create a closed question?
To create a question with buttons, you need to take two steps. First of all, create a bot question:
- Go to Turn editor > Bot turn and select Type of response > Question.
- Enter your question text.
- If you like, you can add some variations to spice up your chatbot dialogue.
- Select the entity that you want to capture for this question. In this case, we'll use pizza.size
Next, create the buttons:
- Click Choice and add the text that you want to show on the button. Let's take Small, Medium and Large.
- If you want to change the order of how your buttons are shown in your chatbot, just drag the buttons around.
- Click Save.
For each button that you created, OBI bot adds a user turn to the bot question. Each user turn shows the name of the button. From here, you can continue building your flow by adding turns to each button.
In the example below we've used a simple bot reply, but you can use any kind of turn here: questions, user turns, knowledge items, or subflows to guide users to another part of your bot.