Skip to content

Instantly share code, notes, and snippets.

@apoorvlathey
Created April 23, 2020 17:22
Show Gist options
  • Save apoorvlathey/f23deded50277e37f313d27eb015efcc to your computer and use it in GitHub Desktop.
Save apoorvlathey/f23deded50277e37f313d27eb015efcc to your computer and use it in GitHub Desktop.
const HelpIntentHandler = {
canHandle(handlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'AMAZON.HelpIntent';
},
handle(handlerInput) {
const speakOutput = 'To know about the facts, just say Facts'; //just edit this
return handlerInput.responseBuilder
.speak(speakOutput)
.reprompt(speakOutput)
.getResponse();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment