Skip to content

Instantly share code, notes, and snippets.

@frivas
Last active October 23, 2018 13:00
Show Gist options
  • Save frivas/233b4c2152829813977b72108850264a to your computer and use it in GitHub Desktop.
Save frivas/233b4c2152829813977b72108850264a to your computer and use it in GitHub Desktop.
LaunchRequestHandler. Medium Article. Creating an Alexa Skill Using Python
class LaunchRequestHandler(AbstractRequestHandler):
def can_handle(self, handler_input):
return is_request_type("LaunchRequest")(handler_input)
def handle(self, handler_input):
speechText = "<say-as interpret-as=\"interjection\">Hey Exploradores!</say-as>, espero estéis listos para una nueva aventura. ¿Cuántos objetos queréis buscar hoy?."
rePrompt = "<say-as interpret-as=\"interjection\">Venga exploradores!</say-as>. A la aventura, ¿Cuantos objetos queréis buscar hoy?"
return handler_input.response_builder.speak(speechText).ask(rePrompt).set_should_end_session(False).response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment