Hello!
I’ve been looking for a way in which the agent’s environment could be specified when using nodejs.
I noticed the environment is specified in the simulator’s answer as “Version”
we tried what is specified in here, but it was not sucessful
any help will be really appreciated
1 Like
Can you try this answer from SO:
> const client = new dialogflow.v2beta1.SessionsClient({});> > const sessionPath = client.environmentSessionPath(project, environment, user, session);> > // The text query request.> const request = {> session: sessionPath,> queryInput: {> text: {> text: 'hello'> }> }> };>