> For the complete documentation index, see [llms.txt](https://docs.carto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carto.com/carto-user-manual/maps/sql-parameters/publishing-sql-parameters.md).

# Publishing SQL parameters

As an Editor user, you have the flexibility to determine wether SQL Parameters controls will be accessible in the public or shared version of the map. You can manage this from the "*Map settings for viewers*" section located at the top right of Builder interface.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-53c77c98c81340874b06886cd4cfe22d7c2caa6a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Viewer users can then specify parameter values in the parameters bar above the map. This enables them to adjust the underlying data according to their unique needs.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-7bf72180120eeb9cb27989a47793776c039dd1e2%2Fbuilder-viewer-parameters-bar.png?alt=media" alt="A viewer changing a parameter from the parameters bar"><figcaption></figcaption></figure>

{% hint style="info" %}
**This setting will allow Viewer users to select values and re-run SQL queries**.

Please be aware that in many cases this might produce a lot of different combinations of parameters that might not be cached in CARTO's CDN, and queries will reach the data warehouse and be executed, which might have a cost and performance implication.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.carto.com/carto-user-manual/maps/sql-parameters/publishing-sql-parameters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
