我正在使用 PHP 端点实现 Alexa 对话模型.我使用了 Alexa 文档(developer.html).amazon/fr/docs/custom-skills/dialog-interface-reference.html)
这是我的例子:我的技能:
请求意图
话语:在卧室里添加一个{obj}
插槽:{obj}/插槽填充
短语:
我:Alexa,在卧室里添加一个物体
Alexa:你想在卧室里添加什么东西?
我:我想在卧室里加一辆车
Alexa:你想在卧室里加一辆车吗?
我:是的
第一步:
DialogState 已启动
我使用 ElicitSlot 来设置 {obj} 插槽
第 2 步:
对话框状态为 IN_PROGRESS.
我使用 ConfirmIntent 要求用户确认
第 3 步:
用户说是/否
ConfirmIntent 现在设置为 CONFIRMED/DENIED
但仍处于 IN_PROGRESS
dialogState 应该是 COMPLETED 因为我设置了我所有的槽和意图值对吗?那么为什么不应该在这里工作呢?
提前致谢
解决方案你的 dialogState 不是 COMPLETE 的原因是因为你使用了 Dialog.ElicitSlot 指令.COMPLETED 状态只有在您使用 Dialog.Delegate 指令时才有可能.
有关使用 Dialog.Delegate 指令控制对话框的更多信息这里
I'm implementing an Alexa Dialog Model with an PHP Endpoint. I used the Alexa doc (developer.amazon/fr/docs/custom-skills/dialog-interface-reference.html)
Here is my example: My skill:
RequestIntent
Utterance : add an {obj} in the bedroom
Slots : {obj} / Slot Filling
Phrase:
Me : Alexa, Add an object in the bedroom
Alexa : What object do you want to add in bedroom ?
Me : I would like to add a cars in the bedroom
Alexa : You want to add a car in the bedroom ?
Me : Yes
STEP1:
DialogState is STARTED
I use ElicitSlot to set the {obj} slot
STEP2:
dialogState is IN_PROGRESS.
I use ConfirmIntent to ask user to confirm it
STEP3:
User say yes/no
ConfirmIntent is now set to CONFIRMED/DENIED
BUT still in IN_PROGRESS
dialogState should be COMPLETED because i set all of my slot and intent value right ? So why should not be working in here ?
Thanks by advance
解决方案The reason your dialogState is not COMPLETE because you are using Dialog.ElicitSlot directive. The COMPLETED status is only possible when you use Dialog.Delegate directive.
More information on controlling the dialog with Dialog.Delegate directive here
更多推荐
Alexa Dialog Model Step 和 dialogState 永远不会完成
发布评论