Something went wrong with my AMAZON.StopIntent. No matter what I put there (I tried everything from each textbook), whenever he called, I get “There was a problem with the requested answer to the skill”, and the Alexa application shows an error, because “the response of the voice message cannot be zero " My project is in JSON format, not in Java format.
If anyone can help, I am very grateful for that!
Thanks!
As requested here, what is Lambda going to
{ "session": { "sessionId": "SessionId.XXXXX", "application": { "applicationId": "amzn1.ask.skill.XXXXXXX" }, "attributes": {}, "user": { "userId": "amzn1.ask.account.XXXXXXX" }, "new": true }, "request": { "type": "IntentRequest", "requestId": "EdwRequestId.XXXXXX", "locale": "en-US", "timestamp": "2017-01-18T22:38:53Z", "intent": { "name": "AMAZON.StopIntent", "slots": {} } }, "version": "1.0" }
And here is the corresponding code:
var handlers = { 'LaunchRequest': function () { this.emit('AMAZON.HelpIntent'); }, 'GetNewDogThoughtIntent': function () { this.emit('GetDogThought'); }, 'GetNewCatThoughtIntent': function () { this.emit('GetCatThought'); }, 'GetDogThought': function () { var dogthoughtIndex = Math.floor(Math.random() * DOGTHOUGHTS.length); var randomDogThought = DOGTHOUGHTS[dogthoughtIndex];
source share