Blahbox Support Center
            Knowledge Base Blahbox Rich Messaging Amazon Lex

            Amazon Lex - Link Out - Lambda

            With Blahboxit's possible to send a Link Out to the virtual assistant's user using Lambda.

            Code for Lambda function:
            1. exports.handler =  (event, context, callback) => {
            2.     var bboxResponse = {};
            3.     bboxResponse =  {
            4.    "bbox_linkOut": {
            5.       "uri": "https://blahbox.net/",
            6.       "destinationName": "Link to Blahbox"
            7.     }
            8.     };
            9.     
            10.     callback(null, {
            11.         "dialogAction": {
            12.             "type": "Close",
            13.             "fulfillmentState": "Fulfilled",
            14.             "message":{
            15.                 "contentType": "CustomPayload",
            16.                 "content": JSON.stringify(bboxResponse)
            17.             }
            18.         }
            19.     });
            20. };

            Blahbox interprets the Lambda response and shows it to the user as is shown below:

            Updated: 09 Dec 2019 05:46 AM
            Helpful?  
            Help us to make this article better
            0 0