我正在实现带有PHP端点的Alexa对话框模型。 我使用了Alexa文档( https: //developer.amazon/fr/docs/custom-skills/dialog-interface-reference.html )
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
RequestIntent
话语:添加一个{obj}在卧室里
Utterance : add an {obj} in the bedroom
插槽:{obj} /插槽填充
Slots : {obj} / Slot Filling
短语:
我:Alexa,在卧室添加对象
Me : Alexa, Add an object in the bedroom
Alexa:您要在卧室中添加什么对象?
Alexa : What object do you want to add in bedroom ?
我:我想在卧室中添加汽车
Me : I would like to add a cars in the bedroom
Alexa:您想在卧室里加一辆车吗?
Alexa : You want to add a car in the bedroom ?
Me:是
STEP1:
DialogState已启动
DialogState is STARTED
我使用ElicitSlot设置{obj} slo t
I use ElicitSlot to set the {obj} slot
STEP2:
对话状态为IN_PROGRESS。
dialogState is IN_PROGRESS.
我使用ConfirmIntent要求用户确认
I use ConfirmIntent to ask user to confirm it
STEP3:
用户说是/否
User say yes/no
ConfirmIntent现在设置为CONFIRMED / DENIED
ConfirmIntent is now set to CONFIRMED/DENIED
但仍处于IN_PROGRESS
BUT still in IN_PROGRESS
dialogState应该为COMPLETED,因为我将所有广告位和意图值都设置了对吗?那么,为什么不应该在这里工作?
dialogState should be COMPLETED because i set all of my slot and intent value right ? So why should not be working in here ?
在此先感谢
推荐答案您的 dialogState 之所以不能 COMPLETE 的原因是因为您使用的是 Dialog.ElicitSlot 指令。 仅当您使用 Dialog.Delegate 指令时,状态才可能。
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.
有关使用 Dialog.Delegate 指令此处
更多推荐
Alexa对话框模型步骤和dialogState永远不会处于COMPLETED状态
发布评论