Menu
Amazon Lex
Developer Guide

AMAZON.TIME

When Amazon Lex captures AMAZON.TIME slot values, it uses the slotDetails attribute of a Lambda event to pass resolutions for ambiguous times. For example, if your bot prompts the user for a delivery time the user can respond by saying "10 o'clock." This time is ambiguous, it means either 10:00 a.m. or 10:00 p.m. In this case, the value in the slots map contains null and the slotDetails entity contains the two possible resolutions of the time. The following is the partial input to the Lambda function:

"slots": {
   "deliveryTime": null
},
"slotDetails": {
   "deliveryTime": {
      "resolutions": [
         {
            "value": "10:00"
         },
         {
            "value": "22:00"
         }
      ]
   }
}

For more information about the data sent from Amazon Lex to a Lambda function, see Input Event Format.