具体来说,在Alexa技能工具包中是否存在类似于这里描述的能力的内容,您可以在其中发送一张卡片作为技能的响应?
发布于 2017-06-01 15:10:47
发布于 2017-04-13 09:29:39
发布于 2017-04-09 11:39:45
是的,Alexa支持在Alexa应用程序中显示一张卡作为响应的一部分。如何做到这一点取决于您正在使用的Alexa框架或SDK,但这一点也不困难。例如,我使用的是alexa框架,我只需要添加这样的内容:
response.card({
type: "Standard",
title: "My Cool Card", // this is not required for type Simple or Standard
text: "Your ride is on the way to 123 Main Street!\nEstimated cost for this ride: $25",
image: { // image is optional
smallImageUrl: "https://carfu.com/resources/card-images/race-car-small.png", // required
largeImageUrl: "https://carfu.com/resources/card-images/race-car-large.png"
}
});https://stackoverflow.com/questions/43302916
复制相似问题