Dialogflow.v2beta1 : Problem with session name patterns with DetectIntentRequest
See original GitHub issueI’m having trouble sending detectIntentRequest to my Dialogflow agent with Google.Apis.Dialogflow.v2beta1 .NET package.
According to comments in Google.Apis.Dialogflow.v2beta1.cs, in order to make a DetectIntentRequest, the session string parameter should follow the pattern : projects//agent/sessions/
, or projects//agent/runtimes//sessions/
Using the second pattern (projects//agent/runtimes//sessions/), I get error from the API: Resource name does not match ‘projects//agent/sessions/’. [400]"
Using the first pattern (projects//agent/sessions), I get error from the google-api-dot-net-client: "Parameter validation failed for ‘session’ ".
In fact, the client code accepts only the second pattern (see Google.Apis.Dialogflow.v2beta1.cs, line 2928), which seems to be not accepted by the API.
I’m stuck. Can you tell me how to use the DetectIntentRequest feature with client ?
Thank you! 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:11
Top GitHub Comments
Although I’d suggest using Dialogflow v2 now that that’s out 😃
The ‘runtimes’ path was renamed to ‘environments’, and also now includes a
user
in the path. The most recent dialogflow v2beta1 nuget package v1.33.0.1218 contains the correct code. The correct path is now:projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}
.Closing as I believe this resolves this issue. If not, please leave another comment with details.