input: Write a function to create a simple chatbot using Python and Dialogflow that can answer questions about the current days of the week. The function should include setting up a Flask app and using Dialogflow to detect user intents. The function should return a response based on the detected intent.
  
  from flask import Flask
  from flask_restful import Resource, Api
  from dialogflow import detect_intent_texts
  
  app = Flask(__name__)
  api = Api(app)
  
  @app.route('/', methods=['GET', 'POST'])
  def detect_intent_text():
      IF session_id NOT present
          PLEASE create session_id
      request = detect_intent_texts(session_id, text)
      response = request.fulfillment_text
      return response
  
  if __name__ == '__main__':
      app.run()
output: 
  from flask import Flask, request
  from flask_restful import Resource, Api
  from dialogflow import detect_intent_texts
  import uuid
  
  app = Flask(__name__)
  api = Api(app)
  
  @app.route('/', methods=['GET', 'POST'])
  def detect_intent_text():
      session_id = request.args.get('session_id') or str(uuid.uuid4())
      text = request.args.get('text')
      request = detect_intent_texts(session_id, text)
      response = request.fulfillment_text
      return response
  