title: How to set query parameters dialogflow php sdk
body: <p>I want to send queryParameters , mostly the payload on dialogflow so i can get it on google cloud function.</p>
  
  <p>I've tried </p>
  
  <pre><code>private function getPayload(ChatbotDialog $dialog): Struct
      {
          $data = '{
                    "fields" : {
                      "source" : {
                          "stringValue" : "platform",
                          "kind" : "stringValue"
                      }
                    }
          }';
          $payload = new Struct();
          $payload-&gt;mergeFromJsonString($data);
          return $payload;
      }
  
  $queryParam = new QueryParameters();       
  $queryParam-&gt;setPayload($this-&gt;getPayload($dialog));
  </code></pre>
  
  <p>but it seem it does not work the <code>originalDetectIntentRequest</code> is always empty on cloud function.</p>
  
  <p>I've seen that : <a href="https://stackoverflow.com/questions/47583996/send-parameters-to-webhook-on-dialogflow-sdk-v2">Send parameters to webhook on dialogflow sdk v2</a></p>
  
  <p>but they use <code>queryInput.event</code> and i use <code>queryInput.text</code> so the solution does not work.</p>