title: DialogFlow detectIntentText
body: <p>I am using DF with Python API and here is the code and I can't use the detect intent text.</p>
  
  <p>If I use the second line I get the next error:
  google.api_core.exceptions.PermissionDenied: 403 IAM permission 'dialogflow.sessions.detectIntent' on 'projects/newagent/agent' denied.</p>
  
  <p>If I use the first one:
  google.api_core.exceptions.InvalidArgument: 400 Resource name 'projects/newagent/agent/environments/draft/users//agent/sessions/5276b6d4-a0b6-4e91-84d3-16512d1f3299' does not match 'projects/<em>/agent/environments/</em>/users/<em>/sessions/</em>'.</p>
  
  <p>I have enabled billing on Google Cloud and the user has Owner privileges. What is going wrong?</p>
  
  <pre><code>def detect_intent_texts(project_id, session_id, texts, language_code):
  session_client = dialogflow_v2.SessionsClient()
  
  #----------------------------------------------------------Lines that I talk about in the question---------------------------------------------------------------------------------------------------
  #session = session_client.session_path(project_id, session_id)
  session = "projects/newagent/agent/environments/draft/users/&lt;user id&gt;/sessions/6344a857-9de5-406c-ba0f-c71b7b3ffdba"
  #----------------------------------------------------------Lines that I talk about in the question---------------------------------------------------------------------------------------------------
  
  for text in texts:
      text_input = dialogflow_v2.types.TextInput(text=text, language_code=language_code)
      query_input = dialogflow_v2.types.QueryInput(text=text_input)
      response = session_client.detect_intent(session=session, query_input=query_input)
  
  detect_intent_texts("newagent/agent/environments/draft/users/&lt;User Number&gt;",str(uuid.uuid4()),"Que tal?","es-ES")
  </code></pre>