Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data in your app

How an app reads and saves your data, runs workflows, and what the people you share it with can see and do

Private Preview: App Studio is available to selected accounts during its Private Preview. To request access, contact your CARTO representative.

Apps work on live data in your data warehouse, through your CARTO connections. Nothing is copied.

Data sources

An app can only use the data sources it declares. Each one is either:

  • A table, or

  • A named source: a SQL query stored in CARTO and called by name. The assistant uses one for joins, aggregations, or anything a single table can't do.

The assistant adds and removes sources as it builds. The studio's Data tab lists the current ones, with the SQL behind each named source.

The Data tab listing the app's sources: two named sources and a table, with the SQL of the selected named source

The SQL stays in CARTO and never reaches the browser or the app's code. The app's code can't add data access either: the only way to change what an app can use is to change its sources, and every change is saved in the version history. This is the same mechanism developers use with Named Sources.

Saving results and running workflows

A named source can do more than read. Ask for it in your prompt and the app can:

  • Save results to your warehouse, such as a decision, a status or an edited record, with an INSERT, UPDATE or MERGE source.

  • Run a workflow and show its output. The workflow needs API access enabled in Sync mode.

The assistant confirms with you what the app may change before it adds one of these sources.

Who sees what

While you build, the assistant explores your connections with your own permissions, so it only finds the data you can access. The preview can only use the sources the app declares.

Once published, the app uses its own access, not the access of the person who opens it:

  • Everyone who can open the app sees its data, even if they can't access that connection themselves.

  • They can't use anything else. The app has no access beyond its declared sources.

Changes to the data sources reach the published app only when you update it.

Last updated

Was this helpful?