# Sharing your Agent

Once you've tested your AI Agent and are confident in its responses, you can make it available for others to use. To begin, you first need to activate the agent within the [Map settings for viewers](https://docs.carto.com/carto-user-manual/maps/sharing-and-collaboration/map-settings-for-viewers) by enabling the AI Agent toggle.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-b3761d4cdc903222ebc2fbb051d2c10e3afbb4bb%2FScreenshot%202025-10-02%20at%2000.13.03.png?alt=media" alt=""><figcaption></figcaption></figure>

You can use Preview Mode to interact with the agent exactly as an end-user would, providing a final opportunity to validate that the entire experience works as expected.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-ea11eabbd5cf46e3813ca67f1170acacd41f3c03%2FScreenshot%202025-10-05%20at%2017.46.49.png?alt=media" alt=""><figcaption></figcaption></figure>

After confirming everything looks good, you can share your map using CARTO's sharing options. This will make both the map and the integrated AI Agent available to your chosen audience, whether it's specific colleagues, your entire organization, or the public.

{% hint style="warning" %}
**Important: Public sharing limitations**

Agents with the [Query sources](https://docs.carto.com/carto-user-manual/configuring-capabilities#query-sources-for-insights) capability are restricted to private and organization sharing modes and cannot be made public. This security restriction prevents unauthorized data access.

For public-facing applications:

* Build required logic into Workflows and expose them as MCP Tools.
* Use only pre-configured widgets and layers.
* Consider creating a separate, limited connection for public access.
  {% endhint %}
