Node.js Alexa skill第一次总是失败
我正在写我的第一个Alexa技巧,遇到了一个问题。当我在Alexa开发人员控制台中测试它时,第一次调用每个语句时,它都会失败,然后它就会正常工作。例如:Node.js Alexa skill第一次总是失败,node.js,alexa,alexa-skill,Node.js,Alexa,Alexa Skill,我正在写我的第一个Alexa技巧,遇到了一个问题。当我在Alexa开发人员控制台中测试它时,第一次调用每个语句时,它都会失败,然后它就会正常工作。例如: User: Alexa, ask VHS if they are open Alexa: Sorry, I didn't understand the command. Please try again. User: Alexa, ask VHS if they are open Alexa: Yes, we are open User: A
User: Alexa, ask VHS if they are open
Alexa: Sorry, I didn't understand the command. Please try again.
User: Alexa, ask VHS if they are open
Alexa: Yes, we are open
User: Alexa, ask VHS if the laser is in use
Alexa: Sorry, I didn't understand the command. Please try again.
User: Alexa, ask VHS if the laser is in use
Alexa: Laser is currently off
User: Alexa, ask VHS if they are open
Alexa: Yes, we are open
我的第一个想法是,由于它遇到了一个web API,它在调用完成之前就开始运行了,所以我在请求
周围添加了一个异步/等待对,但这没有帮助
我的代码在github上:我构建了您的交互模型,只做了一个更改,即我使用了
v.h.s.
无处不在,而不是vhs
,这是在Alexa中定义缩写的标准方法
一切正常。每次都会生成请求JSON
调用名称必须只包含小写字母
字符、单词之间的空格、所有格撇号(例如,
“山姆的科学琐事”),或缩写中使用的句号(用于
例如,“a.b.c.”
你能提供一个重现你问题的MCVE吗?您可以在站点帮助()中阅读有关MCVE的内容,但总而言之,这是一个小程序,说明了您试图提出的问题。很难期望我们访问您的Github帐户以了解您的程序有什么问题。在我第一次调用任何意图时,我仍然会听到“对不起,我不理解命令。请重试”。我甚至尝试将调用名称从“VHS”改为“VanHack”和“VanHack”