【发布时间】:2018-02-28 15:20:58
【问题描述】:
在我的 NodeJS Dialogflow 实现中,我想从会话中 2 个请求之前的意图中引用输出上下文参数。
最新请求的 queryResult 没有该数据。而且样本似乎只处理 WebhookRequest 和 WebhookResponse (
参考:https://dialogflow.com/docs/reference/api-v2/rest/v2beta1/WebhookResponse)
如果我可以访问https://dialogflow.com/docs/reference/api-v2/rest/v2beta1/projects.agent.sessions.contexts/get,我也许可以做到。但我不太明白这是否意味着将https://github.com/dialogflow/fulfillment-webhook-nodejs/blob/master/functions/index.js 与此客户端库混合: https://github.com/googleapis/nodejs-language 。
换句话说,我不清楚https://github.com/googleapis/nodejs-language 的目的是什么。 nodejs-language 是否旨在替代 actions-on-google 实现(格式为 https://github.com/dialogflow/fulfillment-webhook-nodejs/blob/master/functions/index.js )?
【问题讨论】:
标签: nlp google-cloud-platform actions-on-google dialogflow-es