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. When a request is received,
      extract the 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()
      >>> app.run(debug=True, port=5000)
      """
      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
  
      return app
  
  def makeWebhookResult(req: dict) -> dict:
      """
      Generate a JSON response for the webhook.
      
      >>> makeWebhookResult({'result': {'action': 'productos.sura', 'parameters': {'tipo_cliente': 'empresarial'}}})
      {'speech': 'Buscando productos para empresarial', 'displayText': 'Buscando productos para empresarial', 'source': 'apiai-onlinestore-shipping'}
      
      >>> makeWebhookResult({'result': {'action': 'info.especialistas', 'parameters': {'plan-salud': 'salud', 'ciudad': 'bogota', 'especialidad': 'medicina general'}}})
      {'speech': 'Los profesionales que coinciden con tu busqueda son:\\n', 'displayText': 'Los profesionales que coinciden con tu busqueda son:\\n', 'source': 'apiai-onlinestore-shipping'}
      """
      result = req.get("result")
      parameters = result.get("parameters")
      action = result.get("action")
      speech = ""
  
      if action == "productos.sura":
          cliente = parameters.get("tipo_cliente")
          speech = "Buscando productos para " + cliente
      elif action == "info.especialistas":
          speech = "Los profesionales que coinciden con tu busqueda son:\n"
      else:
          speech = " "
  
      return {
          "speech": speech,
          "displayText": speech,
          "source": "apiai-onlinestore-shipping"
      }
  
output:     
      if __name__ == "__main__":
          app.run(debug=True, port=5000)
  