Contact Center AI Platform (CCAI Platform) lets you export session data to a
Cloud Storage bucket or an external server. With this
data, you can get insights into calls, chats, emails, queues, agent performance,
virtual agents, and more.

## Before you begin

To set up session data export, you must have the following:

- A Google Cloud [service account](https://docs.cloud.google.com/iam/docs/service-account-overview) with the `Storage Object Admin` role. For more information, see [Create service accounts](https://docs.cloud.google.com/iam/docs/service-accounts-create).
- A JSON service account key. You use this key in [Set up external storage with Cloud Storage](https://docs.cloud.google.com/contact-center/ccai-platform/docs/external-storage#set-up-cloud-storage). For more information, see [Create a service account key](https://docs.cloud.google.com/iam/docs/keys-create-delete#creating).

  > [!NOTE]
  > **Important:** Follow Google Cloud's [Best practices for managing service account keys.](https://docs.cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys)

## Export session data

To export session data, follow these steps:

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

2. Go to the **Session Data Export** pane, and then click **Manage Data Export
   Settings** . The **Session Data Export** page appears.

3. Click the **Raw Data Export** toggle to the on position.

4. Select one of the following:

   - **Google Cloud**

   - **Amazon S3**

5. In the **Bucket Name** field, enter the name of the
   Cloud Storage bucket where you want to export your session data.

6. Under **Service Account Key (JSON File)** , click **Upload key** to upload
   your JSON service account key for authentication. For more informatoion, see
   [Manage access to service accounts](https://docs.cloud.google.com/iam/docs/manage-access-service-accounts)
   and [Create and delete service account keys](https://docs.cloud.google.com/iam/docs/keys-create-delete).

   > [!NOTE]
   > **Note:** If you've already uploaded a service account key, you can skip this step.

7. Optional: In the **Folder Path** field, enter the path to the subfolder
   where you want to store your session data, and then click **Save**.