Skip to content

Instantly share code, notes, and snippets.

View farhadnowzari's full-sized avatar
💪
Planning/Improving ...,

Farhad Nowzari farhadnowzari

💪
Planning/Improving ...,
View GitHub Profile
@farhadnowzari
farhadnowzari / .js
Created March 28, 2023 07:44
HelloWorldIntentHandler
const HelloWorldIntentHandler = {
canHandle(handlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'HelloWorldIntent';
},
handle(handlerInput) {
const speakOutput = 'Hello World!';
return handlerInput.responseBuilder
.speak(speakOutput)