Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
'use strict';
exports.handler = (event, context, callback) => {
// when intent get fulfilled, inform lex to complete the state
let response = {sessionAttributes: event.sessionAttributes,
dialogAction: {
type: "Close",
fulfillmentState: "Fulfilled",
message: {
contentType: "PlainText",
content: "Thanks for purchasing book."
callback(null, response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.