Alexa Dialog Model Step 和 dialogState 永远不会完成 [英] Alexa Dialog Model Step and dialogState is never in COMPLETED
问题描述
我正在使用 PHP 端点实现 Alexa 对话模型.我使用了 Alexa 文档(https://developer.html).amazon.com/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 (https://developer.amazon.com/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 永远不会完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!