我正在开发一个带有一个Intent的Alexa技能,其中包含一个带有几个可能值的Slot. 我的插槽用“名称”定义:“频道”,“类型”:“LIST_OF_CHANNELS”和值 iqram ingrid 菲尔 克莱德 如何检索要在
我的插槽用“名称”定义:“频道”,“类型”:“LIST_OF_CHANNELS”和值
> iqram
> ingrid
>菲尔
>克莱德
如何检索要在Lambda函数中使用的发出的槽值?这是“从话语部分检索插槽的价值”我希望得到回答.非常感谢.
// retrieve value of slot from utterance
var c = intent.slots.Channel.value;
// append value to end of URL that references API
fetchEnseParse("/channel/" + c, function(body) {
// continuation of this function is below
var c = this.event.request.intent.slots.slotname.value
这应该会给你你想要的东西.
