Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 24, 2020 05:28
Show Gist options
  • Save velotiotech/4cd41aca34d19073a999ddadaead432f to your computer and use it in GitHub Desktop.
Save velotiotech/4cd41aca34d19073a999ddadaead432f to your computer and use it in GitHub Desktop.
'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