title: Actions on Google Fulfillment Response
body: <p>When you receive a request, <strong>your fulfillment must return a response</strong></p>
  
  <p>I have a HTTPS endpoint which receives commands sent thru the google assistant(My Fulfilment URL). But i want to return a text to the user for every request made <br><br>
  Eg:
            USER REQUEST : "Tell, 'app name' to do blah blah"<br>
             ASSISTANT RESPONSE : "Okay, sure"
    <br> <br>
  As documented in  this article --> <a href="https://developers.google.com/actions/components/fulfillment" rel="nofollow noreferrer">https://developers.google.com/actions/components/fulfillment</a> (RESPONSE FORMAT) , I have coded the json file according to the format said in the above link 
  But it says <strong>your fulfillment must return a response</strong></p>
  
  <h1>RESPONSE.JSON</h1>
  
  <pre><code>"finalResponse": {
       "richResponse": {
            "items": [
                 {
                   "simpleResponse": {
                   "textToSpeech": "sure thing",
                   "displayText": "Sure, thing!"
                    }
             ]
       }
  }
  </code></pre>
  
  <p>In my Fulfilment end point i did the above.</p>
  
  <h1>fulfilment.php</h1>
  
  <pre><code>$file = [
   "expectUserResponse" =&gt; false,
   "finalResponse" =&gt; [
   "richResponse" =&gt; [
    "items" =&gt; [
      [
        "simpleResponse" =&gt; [
          "textToSpeech" =&gt; "Sure thing!",
          "displayText" =&gt; "Sure, thing?"
          ]
        ]
       ]
      ]
    ]
  ];
  
  echo json_encode($file);    
  header('Content-Type: application/json');
  </code></pre>
  
  <p>How do i return this file in php back to google assistant?
  I am using PHP :)</p>