Passing key value in the dialog flow request from client

做~自己de王妃 提交于 2019-12-11 17:53:16

问题


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.



来源:https://stackoverflow.com/questions/47115004/passing-key-value-in-the-dialog-flow-request-from-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!