Data Agent
Ask about your business in plain words, in Chat or beside a dashboard, and get the answer, a chart and how it got there. What the agent can change.
The Data Agent is an AI analyst that works on your real data. Ask it something in plain words. It looks at your metrics and tables, runs queries, checks what it finds, and answers with the numbers, a chart, and the steps it took. Click Chat in the sidebar to start, and Workspace at the top of Chat’s sidebar to go back. Or ask about a dashboard or a query right beside it: see Ask about a page.
Note
An admin turns the agent on once, in Settings then Agent. Until then, Chat says it isn’t set up yet. See Set up the agent.
What an answer looks like
Revenue fell 13% last week, to $10.8k.
- One-time orders dropped from $4.1k to $2.6k after the free-shipping banner ended on Tuesday.
- Subscriptions held steady at $8.2k.
Revenue by week ($k)
ColumnCustomize⋯
Subscriptions One-time orders
How I got this· Checked the metrics · Ran 2 queries · 4 steps
- The answer first: a headline and the few numbers that matter, in plain words.
- A chart you can change. The agent picks a Number, Line, Area, Column, Bar, Pie, Donut or Table. Switch the chart type from the card’s header, or click Customize for the same Data, Display and Format settings as any chart. Your changes stay on that card, and you can go back to the agent’s version. The ⋯ menu has View SQL and Copy SQL.
- How I got this, folded away: every step in plain words, like “Checked the metrics” or “Ran a query · 3 rows”. Open it to check the agent’s work, SQL included.
Ask about a page
Dashboards and saved queries have a chat panel on the right. Open it with Ask AI in the page’s header, or press ⌘ J (Ctrl J on Windows). On a dashboard, each chart also has Ask about this chart, which points the panel at that chart.
- It sees the page. The agent gets each chart’s query and settings and the first rows of its latest result, so “Summarize this dashboard”, “Explain this chart” or “What’s driving the trend here?” need no setting up. When it needs more than the rows it was shown, it runs a query.
- It sees your filters. If you’ve set the dashboard’s filters, the agent reads the charts as filtered and says which filters apply. It can’t change the filters itself.
- The page follows along. Ask it to “make this a bar chart” or “refresh the dashboard”, and the page reloads once the change is saved.
- Chats stay with the page. The panel reopens the page’s last chat, and its history lists the chats started there. Open in Chat continues one full-size. These chats also appear in Chat, with the page they were asked from.
Asking good questions
Ask the way you’d ask a colleague. A few that work well:
| To | Try |
|---|---|
| Get your bearings | “What data do we have, and what does each table hold?” |
| Check a number | “How much revenue did we make last month?” |
| Find out why | “Why did revenue drop last week?” |
| Compare | “Do customers who start with the sampler stay longer?” |
| See your definitions | “Which certified metrics can I ask about?” |
- Name the period. “Last week”, “in August”, “since we launched the sampler”.
- Follow up. The agent remembers the chat: “Now split that by plan” works.
- Define your key numbers. With certified metrics, the agent uses your definitions instead of guessing from column names, and says which one it used.
How it finds answers
The agent works in steps, like an analyst would. For most questions it checks your certified metrics first, then your saved queries, and only writes new SQL when neither covers the question. Before writing SQL against a table, it reads the columns and a few sample rows. If a query fails, it reads the error, fixes the SQL and tries again.
Long questions
Each model call is one step, and your workspace sets how many steps one question can take (30 unless an admin changed it). When a question needs more, the agent stops to sum up what it has done so far and asks: This is taking a while. Keep going? Click Continue to carry on, or Stop here.
Building and changing things
Ask, and the agent does it for you:
- Charts and dashboards: “Put weekly revenue and new customers on a dashboard called Monday.” It saves each chart as a query, creates the dashboard (or uses the one with that name), and places the charts.
- Changes to saved charts: “Make the revenue chart a bar chart”, “only show last quarter”, “make it wider”. It changes the chart in place instead of saving a copy, and every dashboard that shows the chart updates. If the chart is on other dashboards too, it asks first. It can also move, resize or retitle a chart on a dashboard, or take one off (the query is kept).
- Fresh numbers: “Refresh this dashboard” runs all its queries now. “Refresh it every morning” sets a refresh schedule with the closest interval, and says which one it chose. “Stop refreshing it” turns the schedule off.
- Data models and metrics: “Model our orders table and draft a revenue metric.” It checks what already exists, reads the table, writes a model with real descriptions, drafts the metric, and tests it.
The answer links to everything it made or changed, and How I got this lists each step, like “Changed a saved chart” or “Refreshed the dashboard”. New metrics are always drafts: review them on the Metrics page and certify the ones you trust.
What it won’t do
The agent saves or changes things only when you ask, never because something in your data says to. It can’t delete queries, dashboards, data models or metrics, it can’t certify a metric, and it has no tools to change your data or your data sources: it’s told to run read-only queries. It doesn’t ask for approval before saving, so if it makes something you don’t want, change it back or delete it yourself.
SQL runs with each data source’s own login, so connect your databases with read-only users and nothing it runs can change your data. See Security.
Choosing a model
Your admin picks a default model and up to eight more. Pick one for your next question from the menu in the chat box; your choice is remembered in this browser. Each answer says which model wrote it, which makes it easy to compare them.
Chats
- Every chat is saved, with its charts, and has its own address. In Chat, the sidebar shows New chat and your Chat history, grouped by Today, Yesterday, Previous 7 days and Older. Chats started beside a dashboard or query show that page’s icon.
- Your first question names the chat for a moment, then the model swaps in a short summary of it. Rename a chat by clicking its title, or rename or delete it from the history.
- In a long chat, scroll up to load earlier messages.
- A chat keeps working if you switch to another chat or leave the page, so a long question can finish while you do something else.
- Chats are private: only the person who started a chat can see it.
- The chat header shows how many tokens the chat has used, and its cost when your AI provider reports one. See AI privacy and usage.
Something unclear or missing? Troubleshooting covers the common errors, or message us.