title: How to set agent.parameters in Dialogflow using fulfillment code?
body: <p><a href="https://i.stack.imgur.com/JznGe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JznGe.png" alt="This is my **request.body**. Can I change the parameters using any of this? Like **request.body.queryResult.parameters** "></a>I want to set agent.parameters using my fulfillment code in DialogFlow but I am not able to do it.
  I am using:</p>
  
  <pre><code>agent.parameters.product=query;
  </code></pre>
  
  <p>Where query is:</p>
  
  <pre><code>var query=request.body.queryResult.queryText;
  </code></pre>
  
  <p>How can I set my product parameter by coding?</p>