Skip to content

Instantly share code, notes, and snippets.

@leoaiassistant
Created August 3, 2020 08:22
Show Gist options
  • Save leoaiassistant/0cce4978cad2690f7fdfbe084d7f356d to your computer and use it in GitHub Desktop.
Save leoaiassistant/0cce4978cad2690f7fdfbe084d7f356d to your computer and use it in GitHub Desktop.
const SessionEndedRequestHandler = {
canHandle(handlerInput) {
return handlerInput.requestEnvelope.request.type === 'SessionEndedRequest';
},
handle(handlerInput) {
//any cleanup logic goes here
return handlerInput.responseBuilder.getResponse();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment