私の要求がある:私は活性化発話を供給した後スロットが届かないのはなぜですか?次のように
"request": {
"type": "IntentRequest",
"requestId": "EdwRequestId.0941c2f8-30b3-4001-aa05-1cec3a715b05",
"intent": {
"name": "Buses",
"slots": {
"Heading": {
"name": "Heading",
"value": "eastbound"
}
}
},
"locale": "en-US",
"timestamp": "2017-12-27T02:45:22Z"
}
上記はサービスシミュレータによって生成されました。
'Buses': function() {
const itemSlot = this.event.request.intent.slots.Item;
let heading;
if (itemSlot && itemSlot.value) {
console.log(itemSlot.value);
heading = itemSlot.value.toLowerCase();
}
else
console.log("No slots!");
No slots!
は、コンソールに出力された:
マイAWSラムダ関数は、次があります。