Factweavers

An analytics platform where you query data in plain English and inspect the SQL lineage behind every number.

Case study · AI analyticsApril 20256 min read

Factweavers began as a one-month engagement to build a themeable chart component library for DBiz’s enterprise analytics platform, after the team saw a series of data-visualization studies I had published on Dribbble. That engagement expanded into an eight-month full-platform rebuild where I led the product design team and wrote front-end code alongside engineering.

Early chart card study: typography, spacing specifications, and color palette rules on a single sheet.
Initial chart card specification

When I joined the project, the existing application exposed raw database tables directly to end users. Building a metric or assembling a dashboard required manual SQL joins across unannotated columns: data analysts spent hours stitching queries together, non-technical managers abandoned the flow mid-way, and executives waited days for someone to send them a static chart.

We benchmarked Tableau, Domo, Kyligence, Sigma, and PowerBI to measure where setup time was spent. Across all five platforms, moving from a newly connected warehouse table to a published executive dashboard took days to weeks depending on schema cleanliness and analyst availability.

Our goal was to compress that workflow to under 30 minutes using conversational AI, while ensuring users could inspect the exact SQL query and source tables behind every generated number.

Five participants, two workspaces, and Schema Onboarding

We mapped the analytics workflow across five actors: the data analyst, the product manager, the executive, the data administrator, and the AI assistant. Modelling the AI assistant as an explicit participant defined its interface contract early: every response had to expose the SQL expression it generated, the source tables it queried, and any parts of the user’s question that could not be computed from the available schema.

Five workflow actors—including the AI assistant—mapped by goals, behaviors, failure modes, and success criteria.
Workflow actors and responsibilities
End-to-end conversational analytics flow: natural-language prompt to verified answer, pinned chart, and published dashboard, backed by a continuous explainability layer.
Conversational analytics architecture

Rather than building five separate navigation trees, we grouped users into two primary operating modes and isolated database preparation into an administration track:

Schema Onboarding isolated into an admin workflow: warehouse connection, foreign-key mapping, and column annotation.
Schema Onboarding track

Moving schema configuration into its own administrative prerequisite simplified the daily product flow to three steps: select business context, ask or build metrics, and publish dashboards.

Four-step metric builder and lineage cards

I designed the manual four-step metric editor before designing the AI generation flow. For an analyst to trust an AI-drafted metric, that metric has to open inside a deterministic editor where every table join, filter, and formula can be inspected and modified by hand.

Creating or editing a metric follows four steps:

  1. Entity selection: Choose the governed domain entity or table from the workspace catalog.
  2. Calculation: Write or assemble the formula in an expression editor that validates syntax as you type and previews computed values against live sample rows.
  3. Dimensions: Attach time grains, geographic splits, and categorical breakdowns.
  4. Display format: Configure units, decimal precision, and trend comparisons alongside a live preview of the rendered KPI card.
Complete metric creation state graph, covering basic and composite metrics from entity selection to publication.
Metric creation flow
Step 2 — Expression editor: live syntax validation and real-data output preview as you type.
The expression editor

Two safeguards prevent catalog sprawl as teams scale:

Step 4 — Formatting and duplicate check: live card preview on the left, similar existing metrics flagged on the right.
Formatting and duplicate detection
Metric card variants: time-series trend, period comparison, ranked breakdown, and headline figure, each paired with an inline AI summary.
Metric card variants

Direct-manipulation dashboard canvas

Once metrics are published to the catalog, authors assemble dashboards on a 12-column drag-and-drop grid. Analysts drag governed metrics from the left rail onto the canvas, resize or lock cards, and wire cross-filtering controls (date ranges, region selectors, parameter toggles) in the top toolbar. Hovering any metric in the catalog rail reveals its full lineage card before you drop it onto the board.

Dashboard canvas: hover any catalog metric in the left rail to inspect its formula and lineage before placing it on the grid.
The dashboard builder

Inside the chart inspector, manual configuration and AI chart recommendations share the same control panel. Users can bind axes and aggregations manually, or ask the AI to recommend a chart type and then adjust scales or encodings without regenerating the underlying query.

Unified chart inspector: switch between AI-recommended visualizations and manual axis bindings in the same panel.
The chart builder
Published executive dashboard combining KPI summary cards, cross-filters, and multi-series charts.
Published dashboard

When a dashboard is ready for distribution, authors apply a customer brand theme in one click, configure role-based view or edit permissions, and schedule recurring snapshot deliveries.

Publish & Share modal: role-based access control, brand theme selection, and scheduled email snapshots.
Publish & Share

Consolidating four AI tools into Universal AI

In our first prototype, AI assistance was split across four module-specific drawers: one to draft a metric, one to layout a dashboard, one to query a single metric, and one to summarize an existing board.

Usability testing with data scientists, directors, and early customers exposed an immediate workflow problem. A user would ask a question about a metric, receive a useful breakdown, and want to turn that breakdown into a chart, pull in two related metrics from an earlier thread, and place all three on a new dashboard. Splitting the AI across four separate modules forced users to copy context between tabs manually.

We replaced all four drawers with Universal AI and made it the default entry point of the application.

Opening Factweavers lands you on a single conversational canvas with persistent session memory, cross-thread search, and direct access to the governed metric catalog. From one prompt bar, users can ask ad-hoc data questions, generate standalone charts, or scaffold a multi-card dashboard. Any chart generated in the chat can be pinned directly to a dashboard, and any AI-drafted metric opens inside the four-step manual editor.

During implementation, engineering initially proposed returning only the final number and rendered chart to reduce streaming payload complexity. I pushed to keep the full explainability drawer in every response: confidence badges, clickable source-table pills, and an expandable view of the exact SQL formula and filters executed. When finance leads cannot inspect how a figure was computed, they export the table to Excel and recalculate it by hand.

Universal AI workspace: ask data questions, inspect the generated formula, and pin charts directly to a dashboard.
Universal AI

The Insights Hub

For executives and operational leads who consume metrics rather than authoring them, the Insights Hub provides a scannable daily feed of pinned KPIs and dashboards. Each card pairs its headline number with a plain-English summary of recent movement. When a metric crosses an anomaly threshold, the card flags the spike inline; clicking the alert opens the Universal AI drawer pre-loaded with that metric’s lineage so the user can ask follow-up questions immediately.

Insights Hub: governed KPI cards with plain-English movement summaries and inline anomaly flags.
The Insights Hub

Three-layer token architecture for white-label charts

Because enterprise customers embed Factweavers dashboards inside their own products, the design system separates color tokens into three independent layers:

Standardized chart library rendered from shared specification tokens.
The chart library

We started the color system with an audit of the legacy codebase. Counting every hardcoded hex value across the old chart components revealed six nearly identical shades of red with no semantic naming to distinguish a negative trend from a critical alert or a third categorical series.

Legacy color audit: six near-identical red hex values used interchangeably across charts without semantic roles.
Legacy color audit

Before selecting new swatches, we defined strict perceptual rules in the OKLCH color space:

Data-visualization palette specification: perceptual lightness rules for qualitative, sequential, and diverging scales.
Palette specification rules

The shipped token system scales from 1 to 30 distinct categorical series across every customer brand theme. Switching a dashboard between light mode and a custom dark brand theme automatically remaps every chart series to preserve contrast and hierarchy.

Shipped categorical token matrix scaling from 1 to 30 series across light and dark customer brand themes.
Categorical token matrix (1–30 series)

In comparative usability trials against PowerBI and Tableau Pulse with first-time users, the rebuilt workflow and visible query lineage produced clear gains:

24 min
Time to a new user’s first published dashboard
3.5×
Faster than PowerBI and Tableau Pulse in side-by-side trials
80%
Trusted AI-generated metrics after inspecting the lineage drawer

Four out of five trial participants reported that they trusted an AI-generated metric once they opened the explainability drawer and verified the underlying source tables and SQL formula.

All work