Amazon Lex - Suggestion Chips - Lambda
With Blahbox, it's possible to send Suggestion Chips to the virtual assistant's user using Lambda.
Code for Lambda function:
- exports.handler = (event, context, callback) => {
- var bboxResponse = {};
- bboxResponse = {
- "bbox_suggestions": {
- "options": [
- {
- "title": "Buy"
- },
- {
- "title": "More Info"
- }
- ]
- }
- };
-
- callback(null, {
- "dialogAction": {
- "type": "Close",
- "fulfillmentState": "Fulfilled",
- "message":{
- "contentType": "CustomPayload",
- "content": JSON.stringify(bboxResponse)
- }
- }
- });
- };
Blahbox interprets the Lambda response and shows it to the user as is shown below:
Related Articles
Amazon Lex - Suggestion Chips
With Blahbox, it's possible to send Suggestion Chips (Buttons) to the virtual assistant's user using IBM's Watson Assistant. To make Blahbox display Suggestion Chips, the JSON code below must be pasted in the "Custom ...
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 - 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", ...
Dialogflow - Link Out Suggestion
A Link Out Suggestion is a type of response that a virtual assistant trained with Dialogflow can send to the user in order to improve the usability experience using a button that links out to a URL. When Blahbox detects a Link Out ...