input: Write a function that creates a Python Flask app which listens for POST requests on the '/webhook' route. When a request is received, the function should 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.
  assert webhook_response("POST /webhook {\"result\":{\"action\":\"productos.sura\",\"parameters\":{\"tipo_cliente\":\"empresa\"}}}") == {"speech": "Buscando productos para empresa", "displayText": "Buscando productos para empresa", "source": "apiai-onlinestore-shipping"}
  assert webhook_response("POST /webhook {\"result\":{\"action\":\"producto.info\",\"parameters\":{\"producto\":\"hogar\"}}}") != {"speech": "No encontrado", "displayText": "No encontrado", "source": "apiai-onlinestore-shipping"}
  assert webhook_response("POST /webhook {\"result\":{\"action\":\"planes.salud\"}}") != {"speech": "Seguros Sura Colombia ofrece los siguientes planes de salud: \n", "displayText": "Seguros Sura Colombia ofrece los siguientes planes de salud: \n", "source": "apiai-onlinestore-shipping"}
  assert webhook_response("POST /webhook {\"result\":{\"action\":\"info.especialistas\",\"parameters\":{\"plan-salud\":\"empresarial\",\"ciudad\":\"bogota\",\"especialidad\":\"cardiologia\"}}}") != {"speech": "Los profesionales que coinciden con tu busqueda son: \n", "displayText": "Los profesionales que coinciden con tu busqueda son: \n", "source": "apiai-onlinestore-shipping"}
  assert webhook_response("POST /webhook {\"result\":{\"action\":\"coberturas.producto\",\"parameters\":{\"productos\":\"hogar\"}}}") == {"speech": "Buscando coberturas del producto: hogar", "displayText": "Buscando coberturas del producto: hogar", "source": "apiai-onlinestore-shipping"}
output: from flask import Flask, request, jsonify
  
  app = Flask(__name__)
  
  @app.route('/webhook', methods=['POST'])
  def webhook():
      req = request.get_json(silent=True, force=True)
      action = req.get("result", {}).get("action")
      parameters = req.get("result", {}).get("parameters", {})
      response = makeWebhookResult(action, parameters)
      return jsonify(response)
  
  if __name__ == '__main__':
      app.run(port=5000, debug=True)