How to Build a Dashboard With an Agent
A practical guide to building trusted dashboards from metric definitions, source data, chart choices, and approval gates.
Founder, Task Machine
Building a dashboard with an agent means giving a data analyst agent the audience, metric definitions, source data, and decision context, then having it design charts and assemble a dashboard for review. The useful output is not a prettier chart. It is a dashboard whose numbers and visual choices can be checked.
The work matters because dashboard mistakes are expensive in quiet ways. A shifting denominator, a partial month beside full months, a bar chart with a broken baseline, or an undefined "active user" can lead a team to act on a false trend.
Why dashboards quietly lose trust
Dashboards often begin with the chart instead of the question. Someone asks for "a growth dashboard", the builder picks a few familiar metrics, and the result looks complete while hiding the definitions that make the numbers meaningful.
The bundle's method starts earlier. It asks who the dashboard is for, what decision the reader makes from it, what each metric means, which source provides the data, and which chart type answers each question honestly. Then it self-critiques the dashboard for accuracy, design, and accessibility before approval.
What the manual process looks like
Done by hand, a trustworthy dashboard build has a clear sequence:
- Define the audience and the decision the dashboard supports.
- Write metric definitions: formula, grain, standard filters, comparison period, source, and caveats.
- Gather the data from an analytics query, warehouse query, pasted table, CSV, or sample dataset.
- Choose the right chart for each question, not the chart that is easiest to build.
- Assemble KPI cards, charts, filters, and any detail table into one coherent view.
- Check the numbers, axes, labels, colors, periods, and source notes before publishing.
The skipped step is usually metric definition. That is where most disagreement hides until the dashboard has already shaped a decision.
What an agent can automate
An agent can handle much of the construction work while keeping the reviewer in control:
- Scope the dashboard. The agent asks for audience, purpose, key metrics, data sources, and refresh cadence before choosing visuals.
- Define metrics. It updates the metric definitions document so the dashboard has formulas, filters, grain, comparison periods, and caveats.
- Pick chart types deliberately. Time series become lines, category comparisons become bars, composition gets a limited part-to-whole view, and dense detail moves to tables or small multiples.
- Assemble the artifact. The agent creates a self-contained dashboard with KPI cards, charts, filters, and a visible source and "as of" date.
- Self-critique before approval. It checks baselines, scales, labels, color reliance, titles, and spot-checks against a known source.
The agent drafts the dashboard. The human still approves whether it should be published and whether the numbers match the business definition.
The guardrails that make it safe
Dashboard automation needs guardrails because a polished visualization can make bad data look authoritative. The first guardrail is the metric definitions document. If a metric is undefined, the agent must define it or flag it instead of improvising.
The second guardrail is the self-critique step. The agent reviews chart accuracy and accessibility before the human sees the artifact: bars start at zero, comparison scales match, titles state the insight, the view works without color, and key numbers are spot-checked. Publication waits for human approval.
Set it up in Task Machine
The Dashboard & visualization builder playbook installs the Data Analyst agent, the Build dashboard workflow, the metric definitions document, the trusted-metrics goal, the chart and dashboard skills, and the analytics services you pick. Setup takes a few minutes. You need a Task Machine workspace and permission to install playbooks (workspace owners have it). Analytics access is useful, but the workflow can build from attached exports, pasted tables, or the metric definitions document.
1. Find the playbook
Open Playbooks in your workspace and search for "dashboard builder", or browse the Data category. The card shows the Data Analyst, dashboard workflow, metric definitions document, goal, skills, and analytics services it creates.

2. Preview what it installs
Preview & install opens the install preview before anything is created. Review the Data Analyst agent, Build dashboard workflow, Metric definitions document, trusted-metrics goal, three visualization skills, and analytics service options.

3. Pick your analytics services
Start setup asks which analytics tools the analyst can query for live metrics: PostHog, Mixpanel, or both. Pick at least one when live analytics should feed charts. Unpicked services are not installed.

4. Define the dashboard scope
Fill in the dashboard audience, key metrics, data sources, refresh cadence, and analytics provider choice. Strong answers name the reader and the decision, not only the chart list. For example, say whether founders are deciding where to focus sales, onboarding, or retention work.

5. Generate and review
Generate customized playbook applies your scope to the agent, workflow, metric definitions document, and service selection. In the review step, check that the workflow defines metrics, designs charts, assembles the dashboard, self-critiques, and waits for approval.

6. Install
Install customized playbook creates the dashboard builder in your workspace. Two follow-ups arrive in the inbox: define dashboard metrics and start Build dashboard. The first run asks for data or queries the selected analytics service, drafts the dashboard, critiques it, and waits for approval before publication.

What good looks like
The dashboard is ready when a reviewer can trust it quickly:
- Every metric is defined. Formula, grain, filters, comparison period, and source are visible in the metric definitions document.
- Each chart answers one question. The chart type matches the relationship being shown.
- The source is visible. The dashboard states where the data came from and the "as of" date.
- The critique found no accuracy issues. Baselines, scales, labels, periods, and accessibility checks pass before approval.
Common questions
Can the agent build from a CSV instead of live analytics? Yes. The playbook supports attached exports, pasted tables, and live analytics where authorized.
What if the metric definition is missing? The agent should define it in the metric definitions document or flag the gap before building the chart.
Can it publish the dashboard automatically? No. It drafts and critiques the dashboard, then waits for human approval before publication.
When is a dashboard the wrong tool? When the dataset is too large for a self-contained artifact, or when the question needs live operational alerting rather than a reviewable dashboard.