title: Dialogflow API access follow up intent in Python
body: <p>I am following the following tutorial to understand Dialogflow Python API. </p>
  
  <p>Here is how my adaptation looks:</p>
  
  <pre><code>import dialogflow_v2 as dialogflow
  import json
  from google.api_core.exceptions import InvalidArgument
  from google.oauth2 import service_account
  
  dialogflow_key = json.load(open(r'path_to_json_file.json'))
  credentials = (service_account.Credentials.from_service_account_info(dialogflow_key))
  session_client = dialogflow.SessionsClient(credentials=credentials)
  
  
  DIALOGFLOW_LANGUAGE_CODE = 'en-US'
  DIALOGFLOW_PROJECT_ID = 'some_project_id'
  SESSION_ID = 'current-user-id'
  session = session_client.session_path(DIALOGFLOW_PROJECT_ID, SESSION_ID)
  
  text_to_be_analyzed =  "mobile data"
  text_input = dialogflow.types.TextInput(text=text_to_be_analyzed, language_code=DIALOGFLOW_LANGUAGE_CODE)
  query_input = dialogflow.types.QueryInput(text=text_input)
  try:
      response = session_client.detect_intent(session=session, query_input=query_input)
  except InvalidArgument:
      raise
  
  print("Query text:", response.query_result.query_text)
  print("Detected intent:", response.query_result.intent.display_name)
  print("Detected intent confidence:", response.query_result.intent_detection_confidence)
  print("Fulfillment text:", response.query_result.fulfillment_text)
  </code></pre>
  
  <p>Here is what program outputs:</p>
  
  <pre><code>Query text: mobile data
  Detected intent: support.problem
  Detected intent confidence: 0.41999998688697815
  Fulfillment text: Make sure mobile data is enabled and Wi-Fi is turned off.
  </code></pre>
  
  <p>Now my intent <code>support.problem</code> has follow up intent <code>support.problem-yes</code>, where customer replies <code>Done it</code> and gets back another response <code>Let us try another step</code></p>
  
  <p>How do I pass text/query to follow up intent and how do I get response in Python?</p>