简体   繁体   English

在GoogleDialogflow中管理意图

[英]Managing intents in google dialogflow

I am New to the Google dialogflow. 我是Google对话流的新手。
I created the Agent and intents. 我创建了代理和意图。
Now i gave some user utterances (Training Phase) in intent. 现在,我给出了一些用户的意图(培训阶段)。 When user input related to the training phase response is coming. 当与训练阶段有关的用户输入时,响应就会到来。
User input other than the utterances it is going to fallback intent. 用户输入的内容不是语音提示,而是回退意图。
But i need user input does not matches to the utterances dialogflow must give the appropriate response as user need. 但是我需要用户输入与话语不匹配的对话流必须根据用户需要给出适当的响应。
how to solve the situation. 如何解决情况。

Thanks in advance 提前致谢

I believe there are two options for your situation: 我相信您的情况有两种选择:

  1. Create more intents and train them to improve your agent's accuracy for the intents. 创建更多意图并对其进行培训,以提高业务代表针对意图的准确性。 This is what you are supposed to do if you have a lot of training data. 如果您有大量的培训数据,这就是您应该做的。 If not, try the option 2. 如果不是,请尝试选项2。

  2. Create a custom Fallback Intent with an input/output context. 创建具有输入/输出上下文的自定义后备意图。

Option 1. is obvious like sid8491 is saying. 选项1很明显,如sid8491所说。 Option 2. is kind of a hack, but I think it can solve your situation by providing the correct input context and solved mine too. 选项2是一种技巧,但我认为它可以通过提供正确的输入上下文并解决我的问题来解决您的情况。

One example is when you want to ask users to write feedback. 一个示例是当您想要求用户编写反馈时。 Since users can write any feedback (ie it's hard to train the feedback intent with data beforehand), this is where a custom fallback intent comes in. Since you expect feedback from your user, you set an input context for your custom feedback fallback intent and users response (feedback) will match your feedback intent. 由于用户可以编写任何反馈(即,很难事先使用数据来训练反馈意​​图),因此这是自定义回退意图的体现。由于您期望用户反馈,因此您可以为自定义反馈回退意图设置输入上下文,并用户的响应(反馈)将与您的反馈意图相匹配。

You can create a custom Fallback Intent by clicking the three dots right next to "CREATE INTENT" in Intent tab. 您可以通过在“意图”选项卡中单击“创建意图”旁边的三个点来创建自定义后备意图。

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM