我知道Watson是一个强大的工具,但是出于不同的原因,我不想使用它提供的所有功能。我想知道是否可以创建复选框。 想法是用预定义的选项替换用户的文本输入。
我无处可去。
谢谢您的帮助。
答案 0 :(得分:0)
使用选项输出。
您可以通过IBM提供的Web UI来执行此操作,输出如下所示:
当您使用JSON编辑器打开它时,它看起来像这样:
{
"output": {
"generic": [
{
"values": [
{
"text": "Some text."
}
],
"response_type": "text",
"selection_policy": "sequential"
},
{
"title": "demo",
"options": [
{
"label": "button1",
"value": {
"input": {
"text": "1"
}
}
},
{
"label": "button2",
"value": {
"input": {
"text": "2"
}
}
}
],
"response_type": "option"
}
]
}
}