title: How to get text response directly on Dialogflow?
body: <p>I'm trying to get a direct text response from dialogflow. I do get an answer from the example code on github, but thats not user-friendly at all. How can I get the "Speech-Only" response?</p>
  
  <pre><code>import os.path
  import sys
  
  try:
      import apiai
  except ImportError:
      sys.path.append(
          os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)
      )
      import apiai
  
  CLIENT_ACCESS_TOKEN = 'YOUR_ACCESS_TOKEN'
  
  
  def main():
      ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN)
  
      request = ai.text_request()
  
      request.lang = 'de'  # optional, default value equal 'en'
  
      request.session_id = "&lt;SESSION ID, UNIQUE FOR EACH USER&gt;"
  
      request.query = "Hello"
  
      response = request.getresponse()
  
      print (response.read())
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  
  
  <p>I just expect a a simple result. A plain hello text.</p>
  
  
  
  <p>What I get instead = <code>b'{\n  "id": "306fd06a-d9e6-4c2e-8c05-98ff7fc0ecd5",\n  "timestamp": "2017-12-05T22:18:15.563Z",\n  "lang": "en",\n  "result": {\n    "source": "agent",\n    "resolvedQuery": "hi",\n    "action": "input.welcome",\n    "actionIncomplete": false,\n    "parameters": {},\n    "contexts": [],\n    "metadata": {\n      "intentId": "8406ea3a-a0c9-4470-829f-aba0ce2da2e5",\n      "webhookUsed": "false",\n      "webhookForSlotFillingUsed": "false",\n      "intentName": "Default Welcome Intent"\n    },\n    "fulfillment": {\n      "speech": "Hi there!",\n      "messages": [\n        {\n          "type": 0,\n          "speech": "Hi there!"\n        }\n      ]\n    },\n    "score": 1.0\n  },\n  "alternateResult": {\n    "source": "domains",\n    "resolvedQuery": "hi",\n    "action": "smalltalk.greetings.hello",\n    "actionIncomplete": false,\n    "parameters": {},\n    "contexts": [],\n    "metadata": {},\n    "fulfillment": {\n      "speech": "Hey!",\n      "source": "agent"\n    },\n    "score": 1.0\n  },\n  "status": {\n    "code": 200,\n    "errorType": "success",\n    "webhookTimedOut": false\n  },\n  "sessionId": "mr.9000"\n}'</code></p>