Amazon Lex - List

Amazon Lex - List

With Blahboxit's possible to send a list to the virtual assistant's user using Amazon Lex

To make Blahbox display list the JSON code below must be pasted in the "Custom Markupof the appropriate "Response", in Amazon Lex Console:

  1. {
  2.     "bbox_list": {
  3.        "title": "Countries",
  4.       "items": [
  5.         {
  6.           "title": "United State",
  7.           "imageUri": "",
  8.           "textToSend": "United State",
  9.           "description": "Amazing Country"
  10.         },
  11.         {
  12.           "title": "Italy",
  13.           "imageUri": "",
  14.           "textToSend": "Italy",
  15.           "description": "The best pasta"
  16.         }
  17.       ]      
  18.     }
  19. }

JSON Description


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 of the image
URL of the image that you wish to display
When the user clicks on the text, the text in that element is automatically sent to the assistant.
Description. (Text)

Limitation: The space available for in the "Custom Markup" is 1000 characters. If more items are required to be added to the list and the JSON code exceeds 1000 characters, the list must be implemented with a Lambda function as shown in the following instructions:

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

    • Related Articles

    • Integrate Amazon Lex

      This article will help you set up Amazon Lex in Blahbox. To access the Amazon Lex trained bot, you must first of all obtain certain information from the AWS platform Data required: User Credentials Bot name, Alias and Version Region Link ...
    • Amazon Lex - List - Lambda

      With Blahbox, it's possible to send a List to the virtual assistant's user using Lambda. Code for Lambda function: exports.handler =  (event, context, callback) => {     var bboxResponse = {};     bboxResponse = {           "bbox_list": {             ...
    • Amazon Lex - Card - Lambda

      With Blahbox, it's possible to send a Card to the virtual assistant's user using Lambda. Code for Lambda function: exports.handler =  (event, context, callback) => {     callback(null, {         "dialogAction": {             "type": "Close",         ...
    • Amazon Lex - Link Out

      With Blahbox, it's possible to send a Link Out Button to the virtual assistant's user using Amazon Lex. To make Blahbox display Link Out Button, the JSON code below must be pasted in the "Custom Markup" of the appropriate "Response", in Amazon Lex ...
    • Amazon Lex - Carousel

      A Carousel is a type of response that a virtual assistant trained with Amazon Lex can send to the user in order to improve the usability experience using images as a Carousel. Click here for more information. ...