Created
April 23, 2020 17:13
-
-
Save apoorvlathey/2c302eaeb8face0358734e63e39ad3a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const HelloWorldIntentHandler = { | |
| canHandle(handlerInput) { | |
| return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' | |
| && Alexa.getIntentName(handlerInput.requestEnvelope) === 'HelloWorldIntent'; | |
| }, | |
| handle(handlerInput) { | |
| const speakOutput = 'Hello there! If you want to hear facts regarding Windows, say Facts.'; | |
| return handlerInput.responseBuilder | |
| .speak(speakOutput) | |
| //.reprompt('add a reprompt if you want to keep the session open for the user to respond') | |
| .getResponse(); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment