Created
August 3, 2020 08:18
-
-
Save leoaiassistant/0e0ccce68c3fbfd7145e273a63ed9f3a 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 LTintentHandler = { | |
canHandle(handlerInput) { | |
return handlerInput.requestEnvelope.request.type === 'IntentRequest' | |
&& handlerInput.requestEnvelope.request.intent.name === 'LTintentHandler'; | |
}, | |
handle(handlerInput) { | |
const speechText = 'Lets start your Language program for {language}!'; | |
return handlerInput.responseBuilder | |
.speak(speechText) | |
.withSimpleCard('Lets start your Language program for {language}', speechText) | |
.getResponse(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment