github.com/Foodji/aws-lambda-go@v1.20.2/events/testdata/lex-response.json (about)

     1  {
     2    "sessionAttributes": {
     3      "key1": "value1",
     4      "key2": "value2"
     5    },
     6    "dialogAction": {
     7      "type": "ElicitIntent, ElicitSlot, ConfirmIntent, Delegate, or Close",
     8      "fulfillmentState": "Fulfilled or Failed",
     9      "message": {
    10        "contentType": "PlainText or SSML",
    11        "content": "message to convey to the user"
    12      },
    13      "intentName": "intent-name",
    14      "slots": {
    15        "slot-name1": "value1",
    16        "slot-name2": "value2",
    17        "slot-name3": "value3"
    18      },
    19      "slotToElicit": "slot-name",
    20      "responseCard": {
    21        "version": 3,
    22        "contentType": "application/vnd.amazonaws.card.generic",
    23        "genericAttachments": [
    24          {
    25            "title": "card-title",
    26            "subTitle": "card-sub-title",
    27            "imageUrl": "URL of the image to be shown",
    28            "attachmentLinkUrl": "URL of the attachment to be associated with the card",
    29            "buttons": [
    30              {
    31                "text": "button-text",
    32                "value": "value sent to server on button click"
    33              }
    34            ]
    35          }
    36        ]
    37      }
    38    }
    39  }