Closed agnescameron closed 4 years ago
Resolved: when creating a new context, the 'name' given is actually the contextPath
, which needs to be set in the same way as the session path, as in the API sample docs here https://github.com/googleapis/nodejs-dialogflow/blob/master/samples/resource.js#L902.
Hi there --
I'm having some issues with
contextClient.createContext
andcontextClient.ListContexts
methods. As per the documentation, I'm setting the request path as'projects/{projectId}/agent/sessions/{sessionId}'
, but I get back the errorResource name '' does not match 'projects/*/locations/*/agent/environments/*/users/*/sessions/*'.
.I know that
projectId
andsessionId
are correct, assessionClient.detectIntent
works as expected.Would you be able to clarify what should be going in the context request string? Thanks!