I have a dialog defined using JSON to present multiple options to an end user:
{
"context": {
"sys_options": [
{
"label": "Monitor",
"value": "Monitor"
},
{
"label": "Wireless Keyboard & Mouse",
"value": "Wireless Keyboard & Mouse"
},
{
"label": "Laptop Bag",
"value": "Laptop Bag"
},
{
"label": "Docking Station",
"value": "Docking Station"
},
{
"label": "Monitor Stand",
"value": "Monitor Stand"
}
],
"ComputerType": "<?input.text?>"
},
"output": {
"generic": [
{
"values": [
{
"text": "What additional accessories are required with the laptop?"
}
],
"response_type": "text",
"selection_policy": "multiline"
}
]
}
}
It shows up like this:
Currently the user can only select one option. I'm looking for ways to allow the user to select more than one option.
Thoughts? Suggestions? I'm new to the building of Dialogs and I'm stumped on this one.
Thank you.
Answer by @chughts (11702) | Dec 23, 2018 at 08:52 AM
You need to take control of how the options are being displayed to the end user. I take it that you are using the test dialogue feature of the Assistant tooling.
In any case you are choosing to show the options as push buttons, for which only one option is normally selected and submitted.
If you would like the end user to be able to make multiple selections then show the options as check boxes, with a submit button. This will mean crafting your own UI code.
Is there a minimum confidence level in Converation Dialog? 3 Answers
How to crawl web to establis corpus into Watson 1 Answer
french - accented characters are not recognized and translate failed 1 Answer
How to pass in a generate_visualization setting to the Tradeoff Analytics dilemmas api 2 Answers