Amazon Lex - Link Out - Lambda

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:

    • 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 - 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 - 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 - Carousel - Lambda

      With Blahbox, it's possible to send a Carousel to the virtual assistant's user using Lambda. Code for Lambda function: exports.handler =  (event, context, callback) => {     callback(null, {         "dialogAction": {             "type": "Close",     ...
    • 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": {             ...