插槽填充触发dialogflow中的不同意图 [英] slot filling triggers different intent in dialogflow

查看:84
本文介绍了插槽填充触发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中的不同意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆