Blahbox Support Center

            Watson Assistant - List

            With Blahboxit's possible to send a list to the virtual assistant's user using IBM's Watson Assistant.


            To make Blahbox display a listthe JSON code below must be pasted in the "contextof the appropriate dialog node, in Watson Assistant:



            1.     "bbox_list": {
            2.       "items": [
            3.         {
            4.           "title": "United State",
            5.           "imageUri": "https://cdn1.eminza.com/images/product/600/034/6/034636/alfombra-velours-redonda-bandera-americana.jpg",
            6.           "textToSend": "United State",
            7.           "description": "Amazing Country"
            8.         },
            9.         {
            10.           "title": "Italy",
            11.           "imageUri": "https://previews.123rf.com/images/itana/itana1710/itana171000147/88367248-bandera-de-italia-en-forma-de-un-bot%C3%B3n-redondo-con-un-ligero-resplandor-y-una-sombra-el-s%C3%ADmbolo-del-d%C3%ADa-de-.jpg",
            12.           "textToSend": "Italy",
            13.           "description": "The best pasta"
            14.         },
            15.         {
            16.           "title": "Spain",
            17.           "imageUri": "https://previews.123rf.com/images/dvarg/dvarg1406/dvarg140601070/29186329-flag-of-spain-as-round-glossy-icon-button-with-spanish-flag.jpg",
            18.           "textToSend": "Spain",
            19.           "description": "Nice people"
            20.         }
            21.       ],
            22.       "order": 1,
            23.       "title": "Countries"
            24.     }
            JSON Description

            bbox_list

            items
            Every item represents a line of the list. You can place as many items as you wish, although it's not recommended to place more than five
               title
            Title of the image
               imageUri
            URL of the image that you wish to display
               textToSend
            When the user clicks on the text, the text in that element is automatically sent to the assistant.
               description
            Description. (Text)
            order
            Whole number that shows the order of the element when there is more than one element

            It's very important that the JSON code be inside the "context" element of the dialog node.

            Blahbox interprets every element of the JSON and shows it to the user as is shown below:



            Helpful?  
            Help us to make this article better
            0 0