input: Write a function to create a simple chatbot using Python and Dialogflow, which can answer questions about the current days of the week. The chatbot should be able to handle both GET and POST requests. If the session_id is not present in the request, it should create a new session_id and use it to detect the intent from the input text. Finally, it should return the fulfillment text as the response.
  assert detect_intent_text("What day is it today?")==expected_response_about_current_day
  assert detect_intent_text("Is it Monday?")==expected_response_about_monday
  assert detect_intent_text("Are we in May?")==expected_response_about_may
  assert detect_intent_text("Does Chatbot support weekend info?")==expected_response_about_weekend_info
  assert detect_intent_text("Hello")==expected_response_about_greeting
output: def detect_intent_text(text):
      from google.cloud import dialogflow
      import uuid
  
      project_id = "your-project-id"
      session_id = str(uuid.uuid4())
      language_code = "en-US"
  
      session_client = dialogflow.SessionsClient()
      session = session_client.session_path(project_id, session_id)
  
      text_input = dialogflow.TextInput(text=text, language_code=language_code)
      query_input = dialogflow.QueryInput(text=text_input)
  
      response = session_client.detect_intent(
          request={"session": session, "query_input": query_input}
      )
  
      return response.query_result.fulfillment_text