【发布时间】:2019-01-18 20:33:22
【问题描述】:
我正在开发一项技能,我希望用户能够通过在调用时提供一个槽值来启动该技能
Alexa start [skill name] for the [slot value]
在 Alexa 模拟器中,当我将其作为文本输入时,我只会从模拟器中得到 <audio response only>。
当我分两步完成时,它确实有效:
我:Alexa start [skill name]
Alexa:For which election?
我:For the [slot value]
Alexa:Okay here we go...
有什么我错过了设置它的工作吗?
这是代码:
var newSessionHandlers = {
NewSession: function() {
this.emit(
':ask',
'For which election?',
);
},
ChooseElection: function() {
this.emit(':tell', 'Here we go');
}
}
【问题讨论】:
标签: javascript node.js aws-lambda alexa alexa-skills-kit