Dialogflow ES API returns payload not found in Intents

Hello,

When calling the DialogFlowES agent via API for a query, it returns a payload that is not found in any of the intents. Any ideas on why this is happening? 

Thanks!

0 3 191
3 REPLIES 3

Good day @qwertynik,

Welcome to Google Cloud Community!

There are several reasons why you are encountering this error, you can validate the following if it will solve your problem:

1. Double check your script or request if it is calling the correct agent. You can check the reference here: https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.intents#simpleresponses

2. Verify the entities and intents of your agent, it is possible that you might have overlooked any intent that might have caused the issue.

3.  You can also double check your training phrases that may have led to unexpected behavior and you are using the correct agent version. As best practice an intent must have at least 10-20 training phrases. You can check this link to learn more: https://cloud.google.com/dialogflow/es/docs/intents-training-phrases

4. Please note also that there are also default intents installed when you create an agent, you can check this link to learn more: https://cloud.google.com/dialogflow/es/docs/intents-default

5. You can also check the best practices when designing an agent: https://cloud.google.com/dialogflow/es/docs/agents-design

Since there is minimal information provided, it is difficult to pinpoint the issue but I hope this helps!

Good day to you too @kvandres.


@kvandres wrote:

1. Double check your script or request if it is calling the correct agent. You can check the reference here: https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.intents#simpleresponses


Yes. Had checked this earlier. The requested agent's name is correct.


@kvandres wrote:

2. Verify the entities and intents of your agent, it is possible that you might have overlooked any intent that might have caused the issue.


This was done too. Exported the agent and searched for the payload that was being returned in exported files. However, couldn't locate the payload.


@kvandres wrote:

3.  You can also double check your training phrases that may have led to unexpected behavior and you are using the correct agent version. As best practice an intent must have at least 10-20 training phrases. You can check this link to learn more: https://cloud.google.com/dialogflow/es/docs/intents-training-phrases


Currently, there are no versions created for the agent. Hopefully, the correct place is being looked at. Not sure about any other section where the version needs to be looked at. In this section, no versions are deployed. Regarding training phrases, will look at adding more phrases to the intents. Unable to check the training phrase for intents in this case, because it is not certain which intent is returning the payload.


@kvandres wrote:

4. Please note also that there are also default intents installed when you create an agent, you can check this link to learn more: https://cloud.google.com/dialogflow/es/docs/intents-default


Under these intents, the payload being searched for is not found.


@kvandres wrote:

5. You can also check the best practices when designing an agent: https://cloud.google.com/dialogflow/es/docs/agents-design


Sure, will take a look.


@kvandres wrote:

Since there is minimal information provided, it is difficult to pinpoint the issue but I hope this helps!


Yes, having all the essential information for debugging is essential. Sharing some information that I think will be helpful.

- Project Name: bi-*******rtan-gmgrjy

- query/question posted via API 'i better?'

Can you share other information that will help in troubleshooting this?

Looking forward to your response.

How to create test case dialogue flow api and call it with a request payload?