You can configure CCAI Platform to display session data in
the agent adapter. This includes virtual agent [session
variables](https://docs.cloud.google.com/contact-center/ccai-platform/docs/session-data-agent-adapter#let-users-view-virtual-agent-session-variables) and [custom
data](https://docs.cloud.google.com/contact-center/ccai-platform/docs/session-data-agent-adapter#let-users-view-sdk-custom-data) from the web and mobile SDKs. This
information can be useful for an agent to get additional information during a
session, or for a supervisor to get an overview of a session that they
[barge](https://docs.cloud.google.com/contact-center/ccai-platform/docs/barge) into.

## Display virtual agent session variables

You can configure CCAI Platform to display [virtual agent session
variables](https://docs.cloud.google.com/contact-center/ccai-platform/docs/va-custom-payload#session-variables-custom-payload) in the agent adapter. This gives an
agent or supervisor an overview of previous interactions that the end-user had
with the virtual agent.

For session variables that contain custom payloads, you can use the following
properties:

- `invisible_to_agent`: Use this to specify payload properties that you don't
  want to be displayed in the agent adapter or sent to your CRM. For more
  information, see [Capture from intent
  response](https://docs.cloud.google.com/contact-center/ccai-platform/docs/va-custom-payload#capture_from_intent_response).

- `display_order_in_adapter`: Specifies the order that session variables
  should appear in the agent adapter and in CRM records. If you don't include
  this property with your custom payload, session variables appear in the
  agent adapter and in CRM records in random order. The
  `display_order_in_adapter` property doesn't affect properties that are
  specified as `invisible_to_agent`. For more information, see [Custom Session
  variables for custom payload handling](https://docs.cloud.google.com/contact-center/ccai-platform/docs/va-custom-payload#session-variables-custom-payload).

### Display virtual agent session variables in the chat adapter

To display virtual agent session variables in the chat adapter, follow these
steps:

1. In the CCAI Platform portal, click **Settings \> Operation
   Management** . If you don't see the **Settings** menu, click **Menu**.

2. Go to the **Virtual Agent** pane.

3. Do one or both of the following, depending on your use case:

   - To display chat session variables from customer support virtual agents,
     do the following:

     1. Go to **Customer support agents**.

     2. For **Chats** , select the **Collect configured custom data in chat
        sessions and send it to CRM** checkbox.

     3. Select the **Display collected custom data in Agent Adapter**
        checkbox.

   - To display chat session variables from virtual task assistants, do the
     following:

     1. Go to **Task assistants**.

     2. For **Chats** , select the **Collect configured custom data in chat
        sessions and send it to CRM** checkbox.

     3. Select the **Display collected custom data in Agent Adapter**
        checkbox.

4. Click **Save Changes**

### Display virtual agent session variables in the call adapter

To display virtual agent session variables in the call adapter, follow these
steps:

1. In the CCAI Platform portal, click **Settings \> Operation
   Management** . If you don't see the **Settings** menu, click **Menu**.

2. Go to the **Virtual Agent** pane.

3. Do one or both of the following, depending on your use case:

   - To display call session variables from customer support virtual agents,
     do the following:

     1. Go to **Customer support agents**.

     2. For **Calls** , select the **Collect configured custom data in call
        sessions and sent it to CRM** checkbox.

     3. Select the **Display collected custom data in Agent Adapter**
        checkbox.

   - To display call session variables from virtual task assistants, do the
     following:

     1. Go to **Task assistants**.

     2. For **Calls** , select the **Collect configured custom data in call
        sessions and send it to CRM** checkbox.

     3. Select the **Display collected custom data in Agent Adapter**
        checkbox.

4. Click **Save Changes**

## Display SDK custom data

You can configure CCAI Platform to display SDK custom data in the agent
adapter. This custom data can come from the [web
SDK](https://docs.cloud.google.com/contact-center/ccai-platform/docs/web-sdk#chat-unsigned-custom-data), the [Android
SDK](https://docs.cloud.google.com/contact-center/ccai-platform/docs/android-sdk-guide#send-custom-data-to-your-crm) or the [iOS
SDK](https://docs.cloud.google.com/contact-center/ccai-platform/docs/ios-sdk-guide#send-custom-data-to-your-crm). This gives the user quick access to the
SDK custom data for that session.

You can use the `invisible_to_agent` property to specify custom properties that
you don't want to be displayed in the agent adapter. For more information, see
the "Prevent the display of custom data" section of the [web SDK
guide](https://docs.cloud.google.com/contact-center/ccai-platform/docs/web-sdk#prevent-the-display-of-custom-data), the [Android SDK
guide](https://docs.cloud.google.com/contact-center/ccai-platform/docs/android-sdk-guide#prevent-the-display-of-custom-data), and the [iOS SDK
guide](https://docs.cloud.google.com/contact-center/ccai-platform/docs/ios-sdk-guide#prevent-the-display-of-custom-data).

To let users view SDK custom data, follow these steps:

1. In the CCAI Platform portal, click **Settings \> Operation
   Management** . If you don't see the **Settings** menu, click **Menu**.

2. Go to the **Data Parameters** pane.

3. Under **Display SDK custom data in Agent Adapter** , select the type of SDK
   custom data that you want to be displayed in the agent adapter, and then
   click **Save Data Parameters**.

## What's next

- [Send SDK custom data](https://docs.cloud.google.com/contact-center/ccai-platform/docs/send-sdk-custom-data)