• United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.206

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Support for multiple answers within a Dialog.

50WSSGW8FJ gravatar image
Question by virginia_leandro.201810111743  (1) | Dec 10, 2018 at 09:40 AM watsondialogue

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: alt text

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.

2018-12-10-8-36-54.png (24.3 kB)

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
110000PNBC gravatar image

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.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

156 people are following this question.

Answers

Answers & comments

Related questions

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

Passing options to return parameter in Discovery only honors the first item in the comma separated list. 2 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • DataPower
  • Decision Optimization
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges