Is it possible to pass some key value objects in the initial request to dialogflow which maybe needed in the webhook?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
When you call /query
, you can include key:value data in one of three ways:
- Include it in an object assigned to the
originalRequest
field. - Include a context that has an object containing your key:value data in its
parameters
field. - Trigger an event that has an object containing your key:value data in its
data
field.
You can find this information in the details of the /query
request format in Dialogflow's API reference.
The values you pass will be available in any resulting webhook request. Context values will also be available for templating into your intents' responses.
标签:
dialogflow