Datasets
A table says what a tool sent. A dataset says what the numbers mean, so people and agents read them the same way.
What a dataset is
A dataset is a saved SQL query over your synced tables, stored as its own table and refreshed on the schedule you choose. Where a synced table holds every invoice line from your accounting system, a dataset is the monthly revenue, with a description of what it counts.
Datasets are what agents work from. An approved dataset comes with its AI context and column notes, so an agent answers from a few described rows instead of guessing at synced tables. Agents are offered approved datasets only. An agent can still read the synced tables its key covers through SQL.
In the dashboard, admins and above create datasets and change their SQL. Members change a dataset's settings and approve one once it is built. With a Read/write key, your agent can also create and approve datasets for the companies the key can read.
Three ways to make a dataset
- Ask your agent. Connected with a Read/write key, your agent creates and approves the dataset you describe, usually in under a minute.
- Build it in Datasets. Go to Datasets, under Definitions in the sidebar, and choose Create dataset. The steps are below.
- Save a query. In SQL, under Library in the sidebar, write a query, choose Run to check the result, then Save as… to keep it as a dataset or a draft. See Tables and SQL.
Whichever you choose, the dataset catalog holds ready-made datasets for each tool you connect, to add as they are or to start from.
Create a dataset
Name and describe it
Fill in Dataset name and Description. The description is what people and agents see in the list of datasets, so say what the dataset contains in a sentence or two.
Gatlas names the dataset's table from its name, so Monthly revenue by company is read in SQL as entity_marts.monthly_revenue_by_company. To choose another table name, open Advanced.
Define the data
Use the Visual builder tab to pick a table, columns and filters, or the SQL editor tab to write the query yourself. With several companies, a dataset can combine tables from any of the ones you have access to.
Choose how often it refreshes
Under Refresh schedule, choose Hourly, Daily or Weekly, or keep Manual refresh only.
Approve it and write its AI context
Turn on Approved when the dataset is ready for agents: agents read only approved datasets. Then open For agents and write the AI context, the Column notes and the Companies, as described below.
Create it
Choose Create dataset. It appears under Datasets marked Approved if you turned on Approved, or Not approved if you did not.
Writing for AI
Three things decide how well an agent uses a dataset:
- AI context: the rules and exceptions behind the dataset's numbers. Say what the dataset contains, what it is for, and anything that would trip up a reader, such as whether amounts are signed or which currency they are in. It matters more than any other field: every agent question about the dataset starts by reading this text.
- Column notes: one line per column on what it means, its unit and its edge cases. For example, that revenue is in USD, includes refunds and excludes tax.
- Companies: the company the dataset describes, your business or, with several, each one it covers. An agent key limited to some companies reads a dataset only when the key holds every company the dataset covers.
Tip
The Documented column under Datasets counts these three and the description, so a dataset with all four reads 4 of 4. Point at the count, or open the dataset, to see what is missing.
Facts about a company, such as its fiscal year, belong in the company's own AI context instead. Best practices has a table of where each fact goes.
Approval
A dataset is Approved, Not approved or a Draft. Agents read an approved one. A not approved one is built and hidden from agents. A draft is a query saved for later, and nothing is built from it. To turn a draft into a dataset, an admin opens its settings in SQL, chooses Turn into a dataset, then Save changes, then Refresh to build it.
To approve an existing dataset or take its approval away, open it under Datasets, switch Approved, then choose Save changes. An approved dataset is visible to every key with access to it; see Agent access for how a key's access is set.