如何在Dialogflow中设置更复杂的"IsList"参数 [英] How to setup a more complicated 'IsList' parameter in Dialogflow

查看:40
本文介绍了如何在Dialogflow中设置更复杂的"IsList"参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前曾问过这个问题:

请勿在实体中使用@ sys.any."

还有其他方法可以实现这一目标吗?

帮助/建议表示赞赏.

解决方案

不要使用"sys.any"

  1. 创建一个名为"fruit-description"的自定义实体,并添加"small,Cavendish,green等"之类的值.

  2. 还添加了带有此新实体水果描述"的新语音之后训练代理.

I've asked this question previously:

How to setup a complicated 'IsList' parameter in Dialogflow

In there I had this example:

"I want 7 apples, 8 oranges and 12 bananas"

So by setting up a 'Developer Composite Entity' that looks like this:

@sys.cardinal:Amount @Fruits:Fruit

I was able to solve my problem.

In there I'm using the @sys.cardinal system entity and my own custom @Fruits entity, which has a bunch of fruits in it.

I'm now looking for a way to handle examples like this:

"I want green apples, small oranges and cavendish bananas"

I then tried to make a new 'Developer Composite Entity' as follows:

@sys.any:Description @Fruits:Fruit

Now I'm using the @sys.any system entity instead of @sys.cardinal, but then I get this error:

"Do not use @sys.any in entities."

Is there any other way I can achieve this?

Help / Advice appreciated.

解决方案

Don't use "sys.any"

  1. Create a custom entity named "fruit-description" and add values like "small,cavendish,green etc." as many as you expect and also tick the "Allow automated expansions" Checkbox ,so any unexpected property which you have not mentioned is likely to be detected as a property.

  2. Also train agent after adding new utterances carrying this new entitiy "fruit-description".

这篇关于如何在Dialogflow中设置更复杂的"IsList"参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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