Data Analytics Agent
Business users ask "where do we have vendor leakage?" or "AMER bookings vs plan YTD" and get correct multi-table SQL, a plain-English insight, a chart and citations. Scope is stamped from identity, never from the prompt.
The problem it solves
Analysts spend their week compiling the same Power BI views by hand while business users wait. Generic text-to-SQL tools hallucinate joins and answer questions the business has decided not to expose.
What it does
- Flow: classify → scope → guide selection → prompt build (no LLM) → SQL generation with retry from execution feedback → pre-execution review (six checks, optionally human) → execute → insights → charts → structured answer
- Chain-of-thought guide library — one JSON playbook per question type with tables, rules, warnings and examples; adding a JSON adds a capability
- Metric governance: refusal lists (e.g. revenue, margin, forecasts) with fixed messages; partial-period and coverage-window disclosure
- Two UI modes from one backend: analyst workbench (clarify, plan, artifacts) and simple business mode
- Dual engines on Snowflake: Cortex Agent and custom LangGraph over generated semantic views, with row access policies and per-user scope stamping
- Chat history, thumbs and saved questions in Cosmos DB; regression suite; deployment pipeline with health smoke tests
How it works at a glance
Outcomes we've seen
Good fit if
- A certified semantic model or gold layer (or the wish to build one)
- Recurring business questions currently answered by analysts
- A need to control which metrics are exposed
Deployment & ownership
Azure Container Apps with Azure DevOps CI/CD; Snowflake variant with an RLS-safe MCP server we own. Ontology Accelerator packs plug in as the semantic layer.
Related work
A field-service data agent over a Snowflake gold layer the model cannot see past
For building-services data we engineered a conformed Snowflake gold layer with identity resolved at build time and a row access policy on every table, then a data agent — LangGraph and Snowflake Cortex, later Foundry — that answers across CRM, finance and device telemetry.
Governed bookings-vs-plan analytics that refuses what it should not answer
Sales and finance leaders in industrial-equipment manufacturing compiled bookings-vs-target views by hand in Power BI. The agent answers those questions in natural language over the certified model — and refuses revenue, margin and forecast questions by design.
Marketing attribution: campaign → lead → opportunity → quote in one agent
Industrial-manufacturing marketing could not prove its contribution to revenue. A dual-path agent — NL→SQL over attribution marts plus RAG over content — correlates campaigns, visits, leads, opportunities and quotes with honest coverage-window disclosure.
See Data Analytics Agent on your data
Most accelerator demos run on a sample of your own documents, tickets or tables — that is the fastest way to judge fit.