# WebhookRequest

- [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/WebhookRequest#SCHEMA_REPRESENTATION)

The request message for a webhook call.

| JSON representation |
|---|
| ``` { "session": string, "responseId": string, "queryResult": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/QueryResult`) }, "originalDetectIntentRequest": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/OriginalDetectIntentRequest`) } } ``` |

| Fields ||
|---|---|
| `session` | `string` The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`. |
| `responseId` | `string` The unique identifier of the response. Contains the same value as `[Streaming]DetectIntentResponse.response_id`. |
| `queryResult` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/QueryResult`)`` The result of the conversational query or event processing. Contains the same value as `[Streaming]DetectIntentResponse.query_result`. |
| `originalDetectIntentRequest` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/OriginalDetectIntentRequest`)`` Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call. |