title: How to use Dialogflow CX API pass parameters to webhook？It seemed that detectIntent() set session queryParams does not work
body: <p>According to the google dialogflow cx document: <a href="https://cloud.google.com/dialogflow/cx/docs/concept/parameter" rel="nofollow noreferrer">https://cloud.google.com/dialogflow/cx/docs/concept/parameter</a>
  <a href="https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3/QueryParameters" rel="nofollow noreferrer">https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3/QueryParameters</a></p>
  <p><a href="https://i.stack.imgur.com/NOhQJ.png" rel="nofollow noreferrer">click to show the reference</a>
  I know we can use api to set session parameters. So I want pass the parameters to webhook by API way.</p>
  <p>Step 1:Front-end, use detectintent() API, fill the queryParams item.<br>
  Step 2:Google dialogflow cx server will set parameters as the session parameter.<br>
  Step 3:Webhook receive the google-side fucnction call.We can found all of the session parameters from the http request.</p>
  <p>As far as I am concerned, I can only receive the variables set in the DialogFlow Agent, but I have not received any parameters set via detectintent() API. I think I must have done something wrong, who can tell me how to? thanks.</p>
  <p>My code as below(Nodejs code):</p>
  <pre><code>  const sessionPath = client.projectLocationAgentSessionPath(
      projectId,
      location,
      agentId,
      sessionId
    );
   
    var mapParameters = new Map([['Michael', 95], ['Bob', 75], ['Tracy', 85]]);
   
   const request = {
      session: sessionPath,
      
      &quot;queryInput&quot;: {
        
        &quot;text&quot;: {
          &quot;text&quot;: query,
        },
        languageCode,
      },
  
      'queryParams': {
        'timeZone': 'America/Los_Angeles',
        'parameters': {
          &quot;fields&quot;:mapParameters
        }
      },
  
   };
  const [response] = await client.detectIntent(request);
  </code></pre>