# SessionInfo

- [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/SessionInfo#SCHEMA_REPRESENTATION)

Represents session information communicated to and from the webhook.

| JSON representation |
|---|
| ``` { "session": string, "parameters": { string: value, ... } } ``` |

| Fields ||
|---|---|
| `session` | `string` Always present for `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/WebhookRequest`. Ignored for `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/WebhookResponse`. The unique identifier of the `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.sessions/detectIntent#body.PATH_PARAMETERS.session`. This field can be used by the webhook to identify a session. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>` if environment is specified. |
| `parameters` | ``map (key: string, value: value (`https://protobuf.dev/reference/protobuf/google.protobuf#value` format))`` Optional for `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/WebhookRequest`. Optional for `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/WebhookResponse`. All parameters collected from forms and intents during the session. Parameters can be created, updated, or removed by the webhook. To remove a parameter from the session, the webhook should explicitly set the parameter value to null in `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/WebhookResponse`. The map is keyed by parameters' display names. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |