Created
June 24, 2020 05:28
-
-
Save velotiotech/4cd41aca34d19073a999ddadaead432f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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