Article · Data storytelling

From Pipeline to Persuasion

Agent-Built Dashboards and HTML Reports on Snowflake

· Walter Biffi

Cover: From Pipeline to Persuasion. Agent-built dashboards and HTML reports on Snowflake, and the design rules that make a busy audience lean in. Beside the title, a screenshot of the Cacao & Co. demo season briefing, built on synthetic data for a fictitious company.

Why my audience started leaning in

For the past two weeks I have delivered analytics as Snowflake-native artifacts: live Snowflake Dashboards and point-in-time HTML reports. My audience has engaged with them far more than they ever did with my Power BI reports.

The charts are not the reason. Three things changed at once. An agent builds the artifact from a governed model. The artifact opens inside Snowflake, where the follow-up question can be asked on the spot. And it arrives framed as a finding, not as a canvas to explore.

This article describes how I build them: the layers underneath, what each artifact type can and cannot do, how I choose between them, and the design rules that let a short, focused audience get the point in seconds. The examples use a fictitious company; nothing here comes from client work.

Open the demo briefing →

The stack: three layers, each with one job

Every artifact I publish rests on the same three layers. The artifacts are only as good as these, so most of my time goes here.

  1. Dynamic Tables keep the data current. I declare each transformation as a query with a target lag, and Snowflake keeps the result fresh. The bronze-to-gold chain becomes a set of definitions, not a set of scheduled jobs to babysit.
  2. Semantic Views hold the business meaning. Metrics, dimensions, relationships and synonyms are defined once, in Snowflake. "Net revenue", "plan" and "variance to plan" mean one thing, whoever or whatever asks.
  3. The Cortex Agent turns questions into answers. It queries the semantic views, writes the SQL, and can answer with a chart in the chat. With the code execution tool, it can also produce a full HTML report.

The principle is the one I apply everywhere: deterministic engine first, AI where it earns its place. The agent never invents a metric. It can only reach what the semantic view defines, over data the Dynamic Tables keep correct.

The agent never invents a metric. A demo briefing panel titled "What the machine reader saw" shows the selected figure, minus 18% variance for Easter 2025 stores, its filter context (channel = Stores, season_id = EAS, year = 2025), and the definitions in the order computed: Budget, Sales, Variance and Variance %, each with its rule ID and expression. Notes beside it: every number opens its trace; the filter context; definitions in the order computed; the expression and its rule.

Both artifacts are built from the same semantic view, so a dashboard and a report never disagree on what a measure means.

What each artifact delivers

Both are built from a CoCo (Cortex Code) conversation and shared as artifacts that open in Snowsight or Snowflake CoWork. The difference is when the numbers are computed: a dashboard computes them when it is opened, a report computes them when it is built.

Snowflake Dashboards (preview): live, per viewer

  • Authoring. Built in Snowsight Workspaces, by describing the dashboard to CoCo or by hand, and stored as one .dash file. Workspaces can be Git-backed, so changes get reviewed.
  • Tiles. Chart, table and markdown tiles on a 12-column grid, with up to 20 tabs that share one filter set. Each chart or table tile is a SQL query.
  • Charts. Point-and-click bar, line, area, pie and donut, heatmap and scorecard. Other Vega-Lite types (scatter, waterfall, trellis and more) come from describing them to CoCo. Maps are not supported.
  • Interaction. Filters rewrite the query before it runs, so totals respect the selection. Hierarchy drill-down runs one query per level. Chart actions filter or highlight other tiles.
  • Freshness. Tile queries run live when the dashboard opens. There is no query cache shared across viewers.
  • Security and cost. Caller's rights: each viewer sees only what their own role allows, and each viewer's queries use warehouse compute.
  • Follow-ups. In CoWork, viewers can ask natural-language follow-up questions on the dashboard, under their own permissions.

HTML reports (preview since 4 Nov 2026): a governed snapshot

  • Authoring. CoCo writes a self-contained .html file in Workspaces or CoCo Desktop. A CoWork agent with code execution can also generate one.
  • Freshness. Query results are embedded at build time. Opening the report reruns nothing, and it never refreshes on its own.
  • Security and cost. Viewers see the embedded data without access to the source tables, and they need no warehouse to open it.
  • Design freedom. Full HTML, CSS and JavaScript, including slide-style scrolling sections. Charts use Snowflake-vendored libraries: Chart.js, Plotly, D3, Vega-Lite, Mermaid and others.
  • Constraints. A strict content security policy blocks CDN scripts, external APIs and remote images, and inline onclick handlers. File-size limits apply. Scheduled refresh and delivery by email, Slack or Teams are not supported yet.
  • Updating. Select Refresh report on the source file, then republish. The link stays the same and always shows the latest published version.

Which one to use

I decide with one question: is the audience watching a number, or acting on a finding? Watching means a dashboard, because it must be true whenever it is opened. Acting means a report, because the decision has to rest on numbers that do not move under it.

QuestionSnowflake DashboardHTML report
When are the numbers computed?Each time it opensWhen it was built or last refreshed
Best forMonitoring: daily or weekly statusDecisions: a finding, a review, a board pack
Who can see the data?Only what each viewer's role allowsAnyone granted the artifact
Warehouse costEvery viewer, every openOnly at build or refresh
ExploringFilters, drill-down, chart actions, follow-up questionsOnly interactions written into the page
Storytelling freedomGrid of tiles plus markdownFree layout, slide-style sections
Record of what was shownNone: it changes with the dataBuilt in: it is the record

The snapshot is not a weakness. When a leadership team decides on Tuesday, I want the report they decided on to still say the same thing on Friday. A live dashboard cannot be that record.

In practice I pair them. The dashboard is the standing view of the few measures a team monitors. When it shows a gap worth a decision, the agent builds a report on that one finding, with the context, the cause where the data shows it, and the decision being asked for. For a one-off question, the agent's chart in the chat is often enough, and nothing gets published.

Two checks before choosing a report: the audience must be allowed to see every number it embeds, because table permissions no longer protect it. And it must say its as-of date on the first screen.

Designing for a short, focused audience

An agent can produce a polished artifact in minutes, which makes it easy to ship clutter quickly. The rules below are what I apply to every artifact before it goes out.

Lead with expected versus actual. People never meet a number cold. They arrive expecting the plan, the target or last month, and their attention goes to the gap. So the first line of every artifact states that gap: "Online revenue $4.2M against a $4.6M plan (−8.7%), all of it in the West region." In a dashboard, that sentence is a markdown tile driven by a query. In a report, it is the opening screen. When nothing is off, the line says so; a quiet result is still a finding.

Frame before content. One muted line under the headline answers the questions a reader asks before they can engage: what scope, what period, how the measure is defined. In a report, this line also carries the as-of date.

Design rules 1 and 2: lead with expected versus actual. A briefing header reads "Easter 2025 store sales: $106K vs $129K plan (minus 18%). South accounts for 86% of the gap.", above one muted line giving scope, period and definitions. Three callouts: the gap comes first, the driver is named, the frame comes before content.

Keep the form predictable. Same layout, same tile order, same colors every time. When the form never changes, the only surprise left is in the data, and the one alert color does its job.

Every tile has a job: explain the gap, where and when. Left, a "Where the gap is" table: South minus $20K, 86% of the gap; Central minus $1.8K; North minus $1.6K. Right, "When it happened": daily sales against the phased plan for 6 to 21 April 2025, one row per region, with South below plan every day. Callouts: where, one region; when, the whole season.

Fire Chekhov's gun, or remove it. Everything that draws the eye makes a promise. Before publishing, each tile, highlight and filter gets a named job: trigger a decision, explain the headline gap, give context, or lead to detail. Anything without a job is cut. This is where an agent needs the most supervision, because it adds plausible extras readily.

Design rule 4: fire Chekhov's gun, or remove it. A table titled "Why each part is here" lists each section of the briefing with its job: where the gap is and when it happened (explain gap), every season against plan (context), decision (decision), what the machine reader saw (detail entry) and method (context). Callouts: every element has a named job, every job has a payoff, no job means no tile.

Make it concrete. "2.3% churn" becomes "about 40 customers a week". One named example lands better than an average.

Close the loop. The headline raises a question; the drill-down, the next report section or the follow-up chat answers it. The last thing the reader sees is the decision being asked for.

Design rule 6: close the loop with the decision. The briefing's decision panel reads "Decide whether South stores need an operational review before the next season's orders are placed." Below it: "The data shows where and when sales fell short. It does not show why, so the page does not say why." Callouts: one decision, ready to act on; no invented cause.

These rules live in my dashboard design skills, built on Stephen Few's principles plus a narrative layer. The agent reads them on every build, so a spec carries the headline, the frame and a job for every tile before any SQL is written.

From question to published artifact

The workflow is the same whichever artifact comes out at the end. Only the build and review steps differ.

  1. Start from the viewer's decision. Who is this for, what do they expect to see, and what do they do when the number is off? That expectation becomes the comparison every measure is shown against.
  2. Make the model answer it. Confirm the Dynamic Tables are fresh and the semantic view defines every measure and comparison: actual, plan, prior period, variance. If a measure is missing, I add it to the semantic view, never to the artifact, so the next question gets it too.
  3. Interrogate through the agent. I ask the agent the questions the audience will ask and check its answers against known totals. This is where the finding emerges, and where I catch a wrong join before anyone else does.
  4. Write the spec. Headline, frame, the few tiles or sections, each with a job and a comparison, and the decision being asked for.
  5. Build. For a dashboard, CoCo builds the .dash in Workspaces from the spec, with SQL against the semantic layer. For a report, CoCo or the agent with code execution builds the HTML, with charts from the vendored libraries.
  6. Review against the checklist. Is every number compared to something? Does every element have a job? Is the headline true for the data shown? In a report: is the as-of date on the first screen, and may this audience see every embedded number?
  7. Publish and share. Publish the artifact and grant roles. Viewers open it in Snowsight or CoWork. Later edits are republished to the same link.

Step 3 is the one I would never hand over entirely. The agent is fast at producing answers. Judging whether an answer is the right one is still my job.

Caveats while both are in preview

  • Preview features change. Both artifact types are in preview, and the limits below may lift. I check the release notes before promising anything to a client.
  • Dashboard cost grows with the audience. Every viewer runs their own queries on a warehouse, with no shared cache. Dynamic Tables that pre-aggregate the gold layer keep tile queries cheap.
  • Chart actions need a common source. They only work between tiles that query the same table or view, so semantic modeling decides what can be linked.
  • Reports cannot fetch anything. Everything a report shows must be embedded at build time, and its libraries come only from Snowflake's vendored set.
  • Reports do not refresh or send themselves yet. Refreshing and republishing is a manual step for now.
  • An embedded number is a shared number. A report is shown to anyone granted the artifact, whatever their table permissions.

The point

The audience engaged more because each artifact now answers one question, from one governed source, in the place where the next question can be asked. The dashboard tells a team where things stand right now. The report records what was found and what was decided. Dynamic Tables, Semantic Views and the agent make both quick to build; deciding what deserves the reader's attention is still the craft.

Sources