Passing key value in the dialog flow request from

2019-08-17 04:10发布

问题:

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