From 87a76c5781d7dd1f681ccf0cd58fa9e776c2445a Mon Sep 17 00:00:00 2001 From: Chris Jimenez Date: Fri, 22 Jul 2016 14:27:59 -0700 Subject: [PATCH] including the cardContent from :askWithCard and :tellWithCard including the cardContent from :askWithCard and :tellWithCard I was using the SDK and trying to include a card with content was resulting in blank cards. --- lib/response.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/response.js b/lib/response.js index 2b41e2cf..4da91cd8 100644 --- a/lib/response.js +++ b/lib/response.js @@ -169,7 +169,7 @@ function buildSpeechletResponse(options) { alexaResponse.card['image'] = {}; delete alexaResponse.card.content; - alexaResponse.card.text = options.content; + alexaResponse.card.text = options.cardContent; if(options.cardImage.smallImageUrl) { alexaResponse.card.image['smallImageUrl'] = options.cardImage.smallImageUrl; @@ -202,4 +202,4 @@ function getSSMLResponse(message) { type: 'SSML', speech: ` ${message} ` }; -} \ No newline at end of file +}