This file contains 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
'GoOutIntent': function () { | |
getWeather( (weatherData) => { | |
let say = `The high temperature will be ${weatherData.temp} in ${weatherData.city} and conditions are forecast to be ${weatherData.conditions}.`; | |
this.emit(':tell', say, say); | |
// getWordsmithNarrative({data: weatherData}, (say) => { | |
// this.emit(':tell', say, say); | |
// }) | |
}); | |
}, |
This file contains 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
var wordsmithKey = 'YOUR KEY HERE'; | |
var Alexa = require('alexa-sdk'); | |
var https = require('https'); | |
// 1. Text strings ===================================================================================================== | |
// Modify these strings and messages to change the behavior of your Lambda function | |
var languageStrings = { | |
'en': { |