嗨我的意图架构是这样的:
{
"intents": [
{
"slots": [
{
"name": "Literalslot",
"type": "AMAZON.LITERAL"
}
],
"intent": "ConverseGenieIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
}
]
}
我的话语是:
ConverseGenieIntent {hello|Literalslot}
ConverseGenieIntent {validate payroll|Literalslot}
ConverseGenieIntent {no no|Literalslot}
ConverseGenieIntent {no|Literalslot}
ConverseGenieIntent {no its not correct|Literalslot}
ConverseGenieIntent {no my payroll id is |Literalslot}
ConverseGenieIntent {its not correct|Literalslot}
ConverseGenieIntent {its wrong|Literalslot}
ConverseGenieIntent {no|Literalslot}
ConverseGenieIntent {that's not correct|Literalslot}
ConverseGenieIntent {that is not correct|Literalslot}
ConverseGenieIntent {hi yeah|Literalslot}
ConverseGenieIntent {what is your name|Literalslot}
ConverseGenieIntent {may i know your name please|Literalslot}
ConverseGenieIntent {hey what is your name|Literalslot}
我的技能实际上是一个提供多个对话的机器人。
预期转化次数
网友:Alexa请精灵打个招呼。
Alexa:欢迎来到精灵。
用户:开始会话..
用户:一二三四
用户:是
用户:5678 (....并继续至少三次对话)
但在Echo中测试时:
网友:Alexa请精灵打个招呼。
用户:一二三四
Alexa:抱歉,我找不到
.....总是在这里进行对话.......我真的不知道为什么......我不想使用对话框指令,因为来自lambda函数的响应来自DialogFlow bot 。
我测试了服务模拟器的技能,技能工作正常!这个问题只发生在为什么我在Echo中测试我的技能。
答案 0 :(得分:0)
AMAZON.LITERAL一次只需literal个{{3}}。你一次只能说一两个或三个......另外,如果您希望一组文字进行进一步处理,则必须使用状态管理逐个接收输入。
提议的对话
Alexa:请告诉我商店号码?
用户:一个
Alexa:下一个号码?
用户:两个
Alexa:下一个号码?
用户:三个
答案 1 :(得分:0)
嘿,实际上并不喜欢那样。你的答案是对的。我不需要输入“一个”然后“两个”,然后它要求“三个”......不,不是那样的。可以给出类似“1234”的输入,因为它在Echo设备中运行良好。永远不要在Echosim.io中测试你的技能。始终在亚马逊设备上进行测试。