Alexa skill developed in node.js doesn't display any card in the home page of the Alexa app, for Simple or Standard Card type with npm package 'alexa-sdk' . It seems there's an issue in the 'Alexa-sdk' package's response.js file. I used the following method
'THREE_D_QuestionIntent': function() {
let reply = " Here’s a list"
let speechOutput = reply;
let repromptSpeech = "Question";
let cardTitle = resultCardTitle;
let cardContent = "Result is ";
let imageObj = "https://s3.amazonaws.com/visitmadison/HTML/shape.png";
console.log(speechOutput);
this.emit(':askWithCard', speechOutput, repromptSpeech, cardTitle, cardContent, imageObj);
}
For Standard Alexa cards with image you have include an image object with
smallImageUrl
andlargeImageUrl
properties.smallImageUrl
andlargeImageUrl
are the URLs of a small and large version of the image to display.For example, the response JSON will have:
Update your code with an image object having both
smallImageUrl
andlargeImageUrl
More about Standard Card here
Card images must meet certain conditions like: