---
title: Create a Genie Clean Room
description: Share a Genie Agent with an external recipient through a Genie Clean Room. Learn how to set prompt limits and understand data visibility.
canonical_url: https://docs.databricks.com/gcp/en/clean-rooms/clean-room-genie-agent
---

# Create a Genie Clean Room

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/gcp/en/release-notes/release-types.md). Account admins can manage access to this feature from the account console **Previews** page. See [ Manage account-level previews](https://docs.databricks.com/gcp/en/admin/workspace-settings/manage-previews.md#account).

A Genie Clean Room lets a data provider share one Genie Agent with a recipient in another organization. The recipient asks the agent questions in natural language and gets answers using the data shared into the clean room.

To learn about Genie Agents, see [Genie Agents](https://docs.databricks.com/gcp/en/genie-agents/index.md). For an overview of clean rooms, see [What is Databricks Clean Rooms?](https://docs.databricks.com/gcp/en/clean-rooms/index.md).

## Why use a Genie Clean Room?

Share a curated Genie Agent with a recipient in another organization:

* **Share an agent**: Let the recipient ask questions using your agent's instructions and the data you share into the clean room.
* **Combine datasets**: Customers can bring their own data and get insights from the combination of both datasets.
* **Limit question frequency**: Set a daily prompt limit for the recipient. The limit doesn't restrict the amount of information in each answer.

## How Genie Clean Rooms work

When you create the clean room, Databricks shares your Genie Agent and all of its instructions into the central clean room, along with the tables, views, and volumes the agent references. The recipient chats with the agent from the **Chat** tab on the clean room details page. Queries run in the central clean room, not in either collaborator's workspace.

The following table compares what each collaborator can do in a Genie Clean Room:

| Capability                                        | Provider                                                                   | Recipient |
| ------------------------------------------------- | -------------------------------------------------------------------------- | --------- |
| Attach and sync the Genie Agent                   | Yes                                                                        | No        |
| Set the daily prompt limit                        | Yes                                                                        | No        |
| View instructions and examples directly in the UI | Yes                                                                        | No        |
| Add data assets                                   | No (data can't be added through the clean room, only from the Genie Agent) | Yes       |
| Ask the agent questions                           | No                                                                         | Yes       |

The recipient can view the provider's table names and column metadata. The clean room UI doesn't offer direct browsing of provider table contents or sample values. However, answers can include row-level data and reveal information from the agent's instructions. Disabling downloads doesn't prevent recipients from reading or copying information in answers. The provider can't see any data assets the recipient adds, including their names.

The provider views the agent's instructions and examples under **Genie Agent Instructions** on the clean room's **Overview** tab. The recipient sees a notice that the instructions are hidden, and can't add instructions of their own.

If the provider updates the Genie Agent in their workspace, the recipient doesn't see the changes until the provider syncs them. See [Sync changes to the Genie Agent](https://docs.databricks.com/gcp/en/clean-rooms/clean-room-genie-agent.md#sync).

Unlike a [packaged clean room](https://docs.databricks.com/gcp/en/clean-rooms/packaged-clean-rooms.md), where a consumer runs the provider's notebooks or JARs, a Genie Clean Room runs no notebooks or JARs.

## <a id="requirements" />Requirements

* Your workspace meets the requirements for clean rooms. See [Requirements](https://docs.databricks.com/gcp/en/clean-rooms/index.md#requirements).
* The **Genie Clean Room** preview is enabled for both the provider's and the recipient's accounts. An account admin can check or change the setting from the account console **Previews** page. See [ Manage account-level previews](https://docs.databricks.com/gcp/en/admin/workspace-settings/manage-previews.md#account).
* To create the clean room, the provider must have:
  * The `CREATE CLEAN ROOM` privilege on the metastore.
  * CAN EDIT permission on the Genie Agent they want to share.
  * `SELECT` on every table and metric view, and `READ VOLUME` on every volume, that the Genie Agent references.
  * `USE CATALOG` and `USE SCHEMA` on the catalogs and schemas that contain those assets.
  * The recipient's Clean Room sharing identifier. See [Step 1. Request the collaborator's sharing identifier](https://docs.databricks.com/gcp/en/clean-rooms/create-clean-room.md#identifier).
* To add their own data to the clean room, the recipient must be the owner of the clean room or have the `MODIFY CLEAN ROOM` privilege on it, and must have `SELECT` on any table or view and `READ VOLUME` on any volume that they add, plus `USE CATALOG` and `USE SCHEMA` on the catalogs and schemas that contain them.
* To ask the agent questions, the recipient must have the `EXECUTE CLEAN ROOM TASK` privilege on the clean room.

## Best practices

Databricks recommends the following when you create a Genie Clean Room:

* **Finish curating before you share**: Review the agent's instructions and examples in your workspace before you create the clean room, because the recipient's experience depends on them.
* **Choose data for the recipient**: Share only data the recipient is permitted to receive in an answer. Use curated or aggregated views to reduce the data available to the agent, and keep the agent within the size limit. See [Limitations](https://docs.databricks.com/gcp/en/clean-rooms/clean-room-genie-agent.md#limitations).
* **Start with a conservative prompt limit**: For a trial or evaluation, set a low daily limit and raise it later.
* **Sync after every change**: Changes you make to the agent in your workspace don't reach the clean room until you sync.

## <a id="share" />Create a Genie Clean Room

Complete the following steps as the provider.

### <a id="identifier" />Get the recipient's sharing identifier

Ask the recipient for their Clean Room sharing identifier. They can find it using the instructions in [Find your sharing identifier](https://docs.databricks.com/gcp/en/clean-rooms/clean-room-collaborator.md#identifier).

### <a id="create" />Create the clean room

1. In your Databricks workspace, click ![Data icon.](https://docs.databricks.com/gcp/en/images/product-icons/DataIcon.svg) **Catalog**.

2. Click the **Clean Rooms >** button.

3. Click **Create Clean Room**.

4. Under **Clean room type**, select **Genie Clean Room**.

5. In **Clean Room name**, enter a name for the clean room.

   The name can't use spaces, periods, or forward slashes (/), and you can't change it after you create the clean room.

6. In **Region**, select the cloud and region for the central clean room. See [Regional availability](https://docs.databricks.com/gcp/en/clean-rooms/create-clean-room.md#clean-room-regions).

7. In **Clean Room sharing identifier**, enter the recipient's sharing identifier.

   You can't change collaborators after you create the clean room.

8. Under **Genie Agent**, search for and select the Genie Agent to share. You can't replace it with a different agent later.

9. Click **Create clean room**.

### <a id="prompt-limit" />Set the daily prompt limit

1. On the clean room details page, click the **Output Controls** tab.
2. In **Allowed prompts per day**, enter the maximum number of prompts the recipient can send per day.
3. Click **Save**.

Each message the recipient sends and each response they regenerate counts as one prompt. A limit of `0` prevents new questions and regenerated responses. The count resets at midnight UTC. The prompt limit controls question frequency, not the number of rows or amount of information returned in answers. The recipient can view the limit on their **Output Controls** tab, but can't change it.

### <a id="sync" />Sync changes to the Genie Agent

When you change the Genie Agent in your workspace, sync the clean room to share the changes with the recipient. Syncing updates the provider's instructions, examples, and referenced data sources. It keeps references to the recipient's data sources that are still shared into the clean room and doesn't delete their underlying source data.

1. On the clean room details page, click the **Overview** tab.
2. In the **Genie Agent** section of the right pane, click **Sync Genie Agent**.

## <a id="use" />Use a Genie Clean Room

Complete the following steps as the recipient.

### <a id="open" />Open the clean room

1. In your Databricks workspace, click ![Data icon.](https://docs.databricks.com/gcp/en/images/product-icons/DataIcon.svg) **Catalog**.
2. Click the **Clean Rooms >** button.
3. Click the name of the clean room the provider shared with you.

The clean room opens on the **Chat** tab, where you chat with the provider's Genie Agent. To view the names of the provider's tables, click the **Overview** tab.

### <a id="add-data" />Add your own data (optional)

To let the agent combine your data with the provider's, add your Unity Catalog tables, views, metric views, streaming tables, foreign tables, or volumes to the clean room. The agent can query your data alongside the provider's data. The provider can't see the assets you add, including their names.

1. On the clean room details page, click the **Overview** tab.
2. Click **Add data assets**.
3. Select the data assets to add, review their aliases, and click **Save**.

For details about selecting assets and aliases, see [Step 3. Add data assets and notebooks to the clean room](https://docs.databricks.com/gcp/en/clean-rooms/create-clean-room.md#add-assets). For the permissions you need, see [Requirements](https://docs.databricks.com/gcp/en/clean-rooms/clean-room-genie-agent.md#requirements). You can't add notebooks, JARs, or models to a Genie Clean Room.

### <a id="ask" />Ask questions

On the **Chat** tab, enter a question in natural language, or click one of the suggested questions. The agent answers using the provider's instructions and the data in the clean room. AI-generated answers can be inaccurate. Verify answers before relying on them. To view past conversations, click the history icon.

Other users in your organization with permission to access the clean room can view its conversations, including questions and answers. The provider can't view the recipient's conversations.

The upper-right corner of the chat shows how many prompts you have left today, out of the provider's daily limit. If you reach the provider's daily prompt limit, the chat shows the following message until midnight UTC:

```text
You've reached this Genie clean room's limit of {limit} prompts per day. Please wait until the next UTC day before asking another question.
```

## <a id="limitations" />Limitations

* A Genie Clean Room has exactly two collaborators: the provider and one recipient. The collaborator who creates the clean room is the provider.
* A clean room can have only one Genie Agent, and you can't replace it with a different agent.
* Genie Clean Rooms support only chat mode. Agent mode isn't supported.
* You can't add or sync a Genie Agent that references any of the following. The agent can use these sources in your workspace, but they can't be shared into a clean room:
  * Tables in the `system` or `samples` catalogs.
  * Tables in an `information_schema` schema.
  * Tables you received through OpenSharing, including tables from Databricks Marketplace.
* Tables that the Genie Agent references from different catalogs can't share the same `schema.table` name.
* The provider can't view the recipient's conversations.
* Recipients can't upload files in the clean room chat.
* Recipients can't add their own instructions to the Genie Agent.
* If the Genie Agent definition is larger than 262,000 bytes when compressed, the clean room can't share it. Reduce the number of instructions or example queries.
* A Genie Agent created from an integration, such as Catalog Explorer, can't be shared into a clean room.
* Answers can include row-level data and information from the provider's instructions. Genie Clean Rooms don't enforce aggregation thresholds or provide a provider-configurable limit on the information disclosed in an answer.
* The recipient's prompts and conversations aren't recorded in the [clean room events system table](https://docs.databricks.com/gcp/en/admin/system-tables/clean-rooms.md) or in audit logs. When the provider attaches or syncs the agent or changes the prompt limit, audit logs record `createCleanRoomAsset` or `updateCleanRoomAsset` events. See [Clean Rooms events](https://docs.databricks.com/gcp/en/admin/account-settings/audit-logs.md#clean-rooms).

## <a id="additional-resources" />Additional resources

| Resource                                                                                                                                 | Description                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [Genie Agents](https://docs.databricks.com/gcp/en/genie-agents/index.md)                                                                 | Build and curate the Genie Agent you share, including its instructions and example queries.      |
| [Work with Databricks clean rooms as an invited collaborator](https://docs.databricks.com/gcp/en/clean-rooms/clean-room-collaborator.md) | Find your sharing identifier and work in a clean room that another organization shared with you. |
