Skip to content

Instantly share code, notes, and snippets.

@apoorvlathey
Created April 23, 2020 17:22
Show Gist options
  • Select an option

  • Save apoorvlathey/f23deded50277e37f313d27eb015efcc to your computer and use it in GitHub Desktop.

Select an option

Save apoorvlathey/f23deded50277e37f313d27eb015efcc to your computer and use it in GitHub Desktop.

Revisions

  1. apoorvlathey created this gist Apr 23, 2020.
    14 changes: 14 additions & 0 deletions AlexaSkillTut_5.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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();
    }
    };