Referring to the solution posted here (DialogFlow V2 Webhook - Expects Speech responses Immediately and not after async requests) What I want to achieve is that the web
The Promise logic looks sound, but this line doesn't make sense:
let params = request.body.result.parameters;
There is no request object that is in scope.
request
You can get the parameters for the request from agent.parameters.
agent.parameters