question

callmerockyli avatar image
callmerockyli asked

Sending different context to Echo app card

Alexa will always send speechOutput to Echo app and present on the card, but is there a way to setup a different context on the card from Lambda? I see they have a webpage talk about that in JAVA. Java can does something like 'card.setContent(String.format("SessionSpeechlet - %s", output)); ' But in JS only 'var cardTitle; ' Does anyone know that?
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

April L. Hamilton avatar image
April L. Hamilton answered
Sure. Just change the 'card' part of the Lambda function. Here's what it is for my Bingo skill - card: { type: "Simple", title: "Bingo - " + title, content: "Bingo - " + output 'title' and 'output' are the defaults here, and are already mapped to variables in the code. You can simply create your own variable(s) for each type of speech output in your code, then replace 'output' and/or 'title' in the code section above with the name of your custom variable(s). Message was edited by: April L. Hamilton
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

callmerockyli avatar image
callmerockyli answered
Thank you so much
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.