Use Async Functions in DialogFlow WebHook

后端 未结 2 866
北恋
北恋 2020-12-06 14:01

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

2条回答
  •  孤街浪徒
    2020-12-06 14:32

    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.

    You can get the parameters for the request from agent.parameters.

提交回复
热议问题