基本上,我的技能有两个意图,比如说“intent1”和“intent2”。
这是我的问题。当我输入一个没有有效意图的短语时,而不是像(我认为?)那样进入帮助菜单,它应该直接进入意图 2 或意图 1。我只是不明白。UDPATE:无论多么牵强,它似乎都只是选择它认为最接近的那个。当它不匹配时,有什么方法可以让它进入帮助菜单?
我是 Alexa 开发的新手,所以请在回复时记住这一点。我的技能主要基于 Space Geek 样本。
如果需要更多代码来回答这个问题,请告诉我,我会添加它。
非常感谢!
更新:
意图架构:
{
"intents": [
{
"intent": "GetNewDogThoughtIntent"
},
{
"intent": "GetNewCatThoughtIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
}
]
}
示例话语:
GetNewDogThoughtIntent What is my dog thinking
GetNewDogThoughtIntent What's my dog thinking
GetNewDogThoughtIntent What my dog is thinking
GetNewCatThoughtIntent What is my cat thinking
GetNewCatThoughtIntent What's my cat thinking
GetNewCatThoughtIntent What my cat is thinking