aashritanatesan.com
← back to work
Case studyAIAnalyticsHR Tech

Compensation analytics dashboard

An AI-powered comp analytics dashboard for a fictional healthcare company, with a natural-language chat interface backed by exact computation.

View source on GitHub
FastAPIpandasReactRechartsClaude API

Disclaimer: all data shown in this demo is synthetic mock data and is not representative of any real person or organization.

// the problem

Compensation questions ('average total comp for female physicians in Texas vs. male physicians') are easy to ask in plain English and hard to answer without a real analytics layer underneath.

// the approach

  • Built 6 dashboard views (overview, pay by role, geography, pay equity, FT/PT parity, merit planning) over ~1,200 synthetic employee records.
  • Chat interface where Claude translates a plain-English question into a strict query spec, validated against a schema whitelist.
  • The query itself runs as an exact pandas computation — Claude never does the math, only the translation and the write-up of results already computed.
  • Deliberately used a seeded, deterministic data generator instead of prompting Claude for synthetic records, and a grouped bar chart instead of a choropleth map, to keep the demo fast and dependency-light.

// the outcome

6 working dashboard views plus a chat interface that answers ambiguous natural-language questions with numbers that are always exactly right, because Claude never touches the arithmetic.