I've just about successfully completed and tested my skill, but whenever my skill calls the built in intents (HelpIntent, StopIntent or CancelIntent) the skill shuts down. I get a card saying "The target Lambda application returned a failure response" - looking at the CloudWatch logs, when attempting to call StopIntent I see this:
"errorMessage": "Cannot read property 'filter' of undefined",
"errorType": "TypeError",
"stackTrace": [
"buildPrompt (/var/task/handlers/respond.js:80:30)",
"buildResponse (/var/task/handlers/respond.js:39:50)",
"Object.module.exports.exitWithCard (/var/task/handlers/respond.js:23:16)",
"defaultIntentHandlers.AMAZON.StopIntent (/var/task/handlers/intentHandlers_default.js:105:13)",
"eventHandlers.onIntent (/var/task/handlers/eventHandlers.js:52:21)",
"AlexaSkill.requestHandlers.IntentRequest (/var/task/AlexaSkill.js:28:33)",
"AlexaSkill.execute (/var/task/AlexaSkill.js:79:20)"
Do you know what's going wrong here? I'm really not a coder, so any insight you could give would be very helpful! Thanks.