简体   繁体   中英

Checkbox with watson

I know that Watson is a powerful tool, but for different reasons I do not want to use all the power it offers. I want to know if it is possible to create checkboxes. The idea would be to replace the users' text inputs with predefined choices.

I do not find anywhere to do that.

Thank you for your help.

Use the options output. You can do this through the web UI IBM provides and there the output looks like this: 在此处输入图片说明

When you open it with the JSON editor it looks like this:

{
  "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"
      }
    ]
  }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM