插槽填充触发dialogflow中的不同意图

编程入门 行业动态 更新时间:2024-10-11 17:20:30
本文介绍了插槽填充触发dialogflow中的不同意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我要输入必选参数的两个意图中都有pizzaSelected和burgerSelected两个意图

I have two intents pizzaSelected and burgerSelected in both intents I am asking for required parameters

我有以下实体

@pizza [pepperoni, farmhouse, country special, cheese] @pizzaSize [small, medium, large] @burger [veg, beef, ham] @burgerToppings [onion, tomato, lettuce, pepper]

预期的对话

user: order 2 burgers bot: which burger? user: cheese bot: sorry but we have veg, beef and ham burgers. please select one from this. user: veg bot: toppings? user: tomato and lettuce bot: you order for 2 veg burgers with tomato and lettuce toppings is placed.

实际对话

user: order 2 burgers bot: which burger? user: cheese bot: what size of pizza you want

就像在实际转换中一样,当用户说属于@pizza实体的奶酪时,它会触发PizzaSelected意图,而不是再次提示用户输入正确的值.

as in actual conv when user says cheese which belongs to @pizza entity then it triggers the pizzaSelected intent instead of re-prompting the user for entering correct value.

有没有办法解决这个问题.

Is there a way to handle this.

推荐答案

如果您没有使用基于自定义实现的逻辑进行广告位归档,则您的burger_type实体(或您可能使用的实体名称)必须具有有效的起司价值.

If you are not using custom fulfilment based logic for slot filing then your burger_type entity (or whichever name you might have used for entity) must have cheese as a valid value.

我建议转到实体并检查用于存储汉堡类型的实体的值.即使那里只有正确的值,也请尝试对其重新排序,然后保存.这将迫使机器人进行重新训练,因为这是一种机器学习模型,有时可能会针对错误的输出进行优化,如果您遇到这种情况,请尝试对其进行重新训练.

I would recommend to go to entities and check the values of entity which you are using to store type of burger. Even if you have only the correct values there try reordering them and then save. This will force the bot to retrain as this is a machine learning model sometimes it might get optimized for the wrong output, if that is the case for you then try retraining it.

更多推荐

插槽填充触发dialogflow中的不同意图

本文发布于:2023-11-27 11:24:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637861.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:插槽   意图   dialogflow

发布评论

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

>www.elefans.com

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