【发布时间】:2017-08-15 07:53:43
【问题描述】:
我正在编写的 Alexa 技能有以下设置:
意图架构
{
"intents": [
{
"intent": "AddToGroceriesIntent",
"slots": [
{
"name": "GroceriesItems",
"type": "GROCERIES_ITEMS"
}
]
},
{
"intent": "GetGroceriesIntent"
},
{
"intent": "ClearGroceriesIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
}
]
}
示例话语
AddToGroceriesIntent to add {GroceriesItems}
AddToGroceriesIntent to add {GroceriesItems} to shopping list
AddToGroceriesIntent to add {GroceriesItems} to the shopping list
AddToGroceriesIntent to add {GroceriesItems} to the list
GetGroceriesIntent list
GetGroceriesIntent shopping list
GetGroceriesIntent for the shopping list
GetGroceriesIntent for the list
GetGroceriesIntent what's on my shopping list
GetGroceriesIntent what's on the shopping list
GetGroceriesIntent what's on the list
GetGroceriesIntent what's on my list
GetGroceriesIntent what is on my shopping list
GetGroceriesIntent what is on the shopping list
GetGroceriesIntent what is on the list
GetGroceriesIntent what is on my list
ClearGroceriesIntent to clear my shopping list
ClearGroceriesIntent to clear my list
ClearGroceriesIntent to clear the shopping list
ClearGroceriesIntent to clear the list
ClearGroceriesIntent to empty my shopping list
ClearGroceriesIntent to empty my list
ClearGroceriesIntent to empty the shopping list
ClearGroceriesIntent to empty the list
ClearGroceriesIntent to delete my shopping list
ClearGroceriesIntent to delete my list
ClearGroceriesIntent to delete the shopping list
ClearGroceriesIntent to delete the list
当 Alexa 听到时:
alexa 要求我的应用清除我的购物清单
正如预期的那样,发送了正确的 ClearGroceriesIntent。然而,当 Alexa 听到:
alexa 要求我的应用清除 购物清单
改为发送 GetGroceriesIntent。
Service Simulator 无法复制此问题 - 它可以正常工作。只是在演讲过程中才会混淆,尽管(根据历史)Alexa 听到的内容与我在测试表中输入的内容完全相同。
(所有 AddToGroceriesIntent 和 GetGroceriesIntent 话语都按预期工作)
【问题讨论】:
-
在使用技能 UI 时是否需要示例话语中的意图名称?
-
@user3437721 技能UI我怕是不熟悉
标签: alexa alexa-skills-kit alexa-skill