@@ -231,7 +231,8 @@ message DeleteWebhookRequest {
231231 bool force = 2 ;
232232}
233233
234- // The request message for a webhook call.
234+ // The request message for a webhook call. The request is sent as a JSON object
235+ // and the field names will be presented in camel cases.
235236message WebhookRequest {
236237 // Represents fulfillment information communicated to the webhook.
237238 message FulfillmentInfo {
@@ -253,8 +254,9 @@ message WebhookRequest {
253254 }
254255
255256 // Always present. The unique identifier of the last matched
256- // [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
257- // ID>/agents/<Agent ID>/intents/<Intent ID>`.
257+ // [intent][google.cloud.dialogflow.cx.v3.Intent].
258+ // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
259+ // ID>/intents/<Intent ID>`.
258260 string last_matched_intent = 1 [(google.api.resource_reference ) = {
259261 type : "dialogflow.googleapis.com/Intent"
260262 }];
@@ -289,6 +291,29 @@ message WebhookRequest {
289291 // will be returned to the API caller.
290292 string detect_intent_response_id = 1 ;
291293
294+ // The original conversational query.
295+ oneof query {
296+ // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
297+ // will contain a copy of the text.
298+ string text = 10 ;
299+
300+ // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
301+ // contain a copy of the intent identifier.
302+ // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
303+ // ID>/intents/<Intent ID>`.
304+ string trigger_intent = 11 [(google.api.resource_reference ) = {
305+ type : "dialogflow.googleapis.com/Intent"
306+ }];
307+
308+ // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
309+ // this field will contain the transcript for the audio.
310+ string transcript = 12 ;
311+
312+ // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
313+ // the name of the event.
314+ string trigger_event = 14 ;
315+ }
316+
292317 // Always present. Information about the fulfillment that triggered this
293318 // webhook call.
294319 FulfillmentInfo fulfillment_info = 6 ;
0 commit comments