问题描述
我正在实现带有PHP端点的Alexa对话框模型。
我使用了Alexa文档()
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:
话语:添加一个{obj}在卧室里
Utterance : add an {obj} in the bedroom
插槽:{obj} /插槽填充
Slots : {obj} / Slot Filling
短语:
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:
我使用ElicitSlot设置{obj} slo t
I use ElicitSlot to set the {obj} slot
STEP2:
我使用ConfirmIntent要求用户确认
I use ConfirmIntent to ask user to confirm it
STEP3:
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状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!