Skip to content

Instantly share code, notes, and snippets.

@frivas
Created October 23, 2018 13:01
Show Gist options
  • Save frivas/843085cf10a107e3fda370c8bbc1cb36 to your computer and use it in GitHub Desktop.
Save frivas/843085cf10a107e3fda370c8bbc1cb36 to your computer and use it in GitHub Desktop.
CancelAndStopIntentHandler. Medium Article. Creating an Alexa Skill Using Python
class CancelAndStopIntentHandler(AbstractRequestHandler):
def can_handle(self, handler_input):
return (is_intent_name("AMAZON.CancelIntent")(handler_input) or
is_intent_name("AMAZON.StopIntent")(handler_input))
def handle(self, handler_input):
speechText = "Hasta la próxima aventura exploradores!."
return handler_input.response_builder.speak(speechText).response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment