Alexa Dialog Model Step 和 dialogState 永远不会完成

编程入门 行业动态 更新时间:2024-10-07 19:21:19
本文介绍了Alexa Dialog Model Step 和 dialogState 永远不会完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用 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 永远不会完成

本文发布于:2023-11-28 04:14:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640914.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:永远不会   Dialog   Alexa   Model   dialogState

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!