input: 
  from typing import Dict
  from flask import Flask, request, make_response, json
  
  def handle_webhook(req: Dict) -> Dict:
      """
      Handles incoming POST requests on the '/webhook' route in a Flask app. 
      Extracts necessary parameters from the request and calls the 'makeWebhookResult' 
      function to generate a response. The response is a JSON object containing a 
      'speech' field with the text to be spoken by the voice assistant. 
  
      >>> req = {'result': {'action': 'productos.sura', 'parameters': {'tipo_cliente': 'VIP'}}}
      >>> handle_webhook(req)
      {'speech': 'Buscando productos para VIP', 'displayText': 'Buscando productos para VIP', 'source': 'apiai-onlinestore-shipping'}
      """
      res = makeWebhookResult(req)
      res_json = json.dumps(res, indent=4)
      r = make_response(res_json)
      r.headers['Content-Type'] = 'application/json'
      return r
  
  def makeWebhookResult(req: Dict) -> Dict:
      result = req.get("result")
      parameters = result.get("parameters")
      
      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")
          speech = "Buscando informacion del producto " + producto
          
      else:
          speech = ""
  
      return {
          "speech": speech,
          "displayText": speech,
          "source": "apiai-onlinestore-shipping"
      }
  
  app = Flask(__name__)
  
  @app.route('/webhook', methods=['POST'])
  def webhook() -> make_response:
      req = request.get_json(silent=True, force=True)
      return handle_webhook(req)
  
  if __name__ == '__main__':
      app.run(debug=True, port=5000)
  
output:     
      res = makeWebhookResult(req)
      res_json = json.dumps(res, indent=4)
      r = make_response(res_json)
      r.headers['Content-Type'] = 'application/json'
      return r
  