input: 
  from flask import Flask, request, make_response
  import json
  
  def create_flask_app() -> Flask:
      """
      Create a Flask app that listens for POST requests on the '/webhook' route.
      Extract necessary parameters from the request and call the 'makeWebhookResult' function to generate a response.
      The response should be a JSON object containing a 'speech' field with the text to be spoken by the voice assistant.
      The app should be started on port 5000 and run in debug mode.
  
      >>> app = create_flask_app()
      >>> # Simulate a POST request with JSON payload
      >>> with app.test_client() as client:
      ...     response = client.post('/webhook', json={"result": {"action": "productos.sura", "parameters": {"tipo_cliente": "regular"}}})
      ...     response_data = response.get_json()
      ...     response_data['speech']
      'Buscando productos para regular'
      """
      app = Flask(__name__)
  
      @app.route('/webhook', methods=['POST'])
      def webhook():
          req = request.get_json(silent=True, force=True)
          res = makeWebhookResult(req)
          res = json.dumps(res, indent=4)
          r = make_response(res)
          r.headers['Content-Type'] = 'application/json'
          return r
  
      def makeWebhookResult(req):
          result = req.get("result")
          parameters = result.get("parameters")
          speech = ""
  
          if req.get("result").get("action") == "productos.sura":
              cliente = parameters.get("tipo_cliente")
              speech = "Buscando productos para " + cliente
          elif req.get("result").get("action") == "producto.info":
              producto = parameters.get("producto")
              if (producto == "hogar"):
                  speech = "No encontrado"
              else:
                  speech = "Buscando informacion del producto " + producto
          elif req.get("result").get("action") == "planes.salud":
              speech = "Seguros Sura Colombia ofrece los siguientes planes de salud: \n"
          elif req.get("result").get("action") == "info.especialistas":
              speech = "Los profesionales que coinciden con tu busqueda son: \n"
          elif req.get("result").get("action") == "coberturas.producto":
              producto = parameters.get("productos")
              speech = "Buscando coberturas del producto: " + producto
          else:
              speech = " "
  
          return {
              "speech": speech,
              "displayText": speech,
              "source": "apiai-onlinestore-shipping"
          }
  
      return app
  
  if __name__ == '__main__':
      app = create_flask_app()
      port = 5000
      app.run(debug=True, port=port, host='0.0.0.0')
  
output:     
      app.config['DEBUG'] = True
      return app
  