Class WebhookResponse (1.1.3)

The response message for a webhook call. This response is validated by the Dialogflow server. If validation fails, an error will be returned in the [QueryResult.diagnostic_info][google.cloud.dialogflow. v2.QueryResult.diagnostic_info] field. Setting JSON fields to an empty value with the wrong type is a common error. To avoid this error: - Use "" for empty strings - Use {} or null for empty objects - Use [] or null for empty arrays For more information, see the Protocol Buffers Language Guide <https://developers.google.com/protocol-buffers/docs/proto3#json>__.

Optional. The rich response messages intended for the end- user. When provided, Dialogflow uses this field to populate [Q ueryResult.fulfillment_messages][google.cloud.dialogflow.v2.Qu eryResult.fulfillment_messages] sent to the integration or API caller.

Optional. This field can be used to pass custom data from your webhook to the integration or API caller. Arbitrary JSON objects are supported. When provided, Dialogflow uses this field to populate [QueryResult.webhook_payload][google.cloud.d ialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the Google Assistant integration <https://cloud.google.com/dialogflow/docs/integrations/aog> for rich response messages. See the format definition at Google Assistant Dialogflow webhook format <https://developer s.google.com/assistant/actions/build/json/dialogflow-webhook- json>

Optional. Invokes the supplied events. When this field is set, Dialogflow ignores the fulfillment_text, fulfillment_messages, and payload fields.