Skip to content

Instantly share code, notes, and snippets.

@leoaiassistant
Created August 3, 2020 08:18
Show Gist options
  • Save leoaiassistant/0e0ccce68c3fbfd7145e273a63ed9f3a to your computer and use it in GitHub Desktop.
Save leoaiassistant/0e0ccce68c3fbfd7145e273a63ed9f3a to your computer and use it in GitHub Desktop.
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