我要输入必选参数的两个意图中都有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中的不同意图
发布评论