---
title: "Datasets in 3 minutes"
description: "A dataset turns what your tools sync into a table built around one business question, so your agent answers it the same way every time. This guide builds one by asking Claude."
url: https://www.gatlas.ai/docs/guides/datasets
markdown_url: https://www.gatlas.ai/docs/guides/datasets.md
---

# Datasets in 3 minutes

## What a dataset is

**dataset**: A dataset is a table built around one business question, with the definitions agents need to read it the same way every time. It turns what a tool such as Stripe, Shopify or your accounting system synced into the answer's shape.

For example, instead of repeatedly joining transactions and customer records, you can create one customer dataset containing customer names, countries, regions and revenue. Claude can then reuse that dataset across future analyses, reports and dashboards.

Figure: Example data. Raw transactions become business areas and one net result, defined once and reused by every question after. Drawn when datasets were called views.

## How to create a dataset

You do not need to write SQL or manually map every field. Describe the result you want, and Claude can explore the data available through Gatlas, propose how to build it and create the dataset.

You need Claude connected to Gatlas through a Read/write agent key. A Read-only key can explore data but cannot create a dataset. See [Connect your agent](https://www.gatlas.ai/docs/connect-your-agent.md).

1. **Explore the available data**: Start by asking what information is available from a tool you connected. This allows Claude to inspect the relevant tables and fields before deciding how the dataset should be structured.

> What customer-related data is available in my raw data from Stripe?

Claude will explain what customer, transaction and revenue information is available, including any limitations that could affect the analysis.

Figure: Available Stripe customer data.
2. **Describe the dataset you want**: Describe the business result you need using familiar business language. Say what you want to group by and what you want to count or add up, and let Claude map them to the fields your tool synced.

> Create a customer dataset grouped by country and geographic region. Include customer name, revenue, country and region.

Before creating the dataset, review the proposed fields and definitions. Check how customers are identified, how revenue is calculated and how countries are assigned to regions.

Figure: Proposed customer dataset. Captured when datasets were called views, so the prompt and the replies say view.
3. **Use the result**: Once created, the dataset is documented and Claude can query it directly. You can use it for one-off questions, recurring analysis, reports or dashboards without rebuilding it.

> Show revenue by country, including the number of customers and geographic region, using the new customer dataset.

Because the business logic is already in the dataset, Claude starts from it for every question.

Figure: Revenue by country result. Captured when datasets were called views.
