# Agentic Analytics Playbook

Source: https://getnao.io/resources/playbook/

> A free 52-page guide to building analytics agents that business teams trust: scope, build vs buy (20+ tools benchmarked), context engineering, roll-out and success metrics, with 7 company examples. Get the PDF at https://getnao.io/resources/playbook/

## What is agentic analytics?

Agentic analytics means business users ask questions about data in plain language and an analytics agent answers them: it finds the right tables and metrics, writes and runs the SQL, and explains the result. The hard part is not the model, it is making the agent reliable enough that business teams trust its answers.

## Scope your analytics agent: who is it for, and on which data?

The first decision is the target user. An agent for the data team needs a wide data scope and deep-dive abilities: data people can check the SQL. An agent for business teams needs reliability and a friendly UI first: they will not read the SQL, so a silent mistake becomes a wrong business decision.

Do not plug the agent into the whole warehouse. Answers end up good on some domains and bad on others, and the project never leaves the POC phase. Start with a small, testable scope, validate reliability, then expand.

- Pick the first use case with three questions: where do analytics requests come from, where is the data cleanest, where is the business sponsor?
- Choose a wide scope (company-wide, gold layer only) or a deep scope (one domain, gold and silver layers).
- Write down the target team, the domain, the 10 to 20 tables in scope, and one key question per metric with the SQL you expect.

## Build vs buy: a benchmark of 20+ analytics agent tools

There are over 100 agentic analytics tools. The playbook groups the ones data teams use most into five families, with who each one fits: a general agent like Claude or Codex plugged into the warehouse MCP (fast POC, hard to scale without observability), warehouse AI like Snowflake Cortex and Databricks Genie (no extra tool, but semantics locked in the warehouse), AI-native BI like Hex and Omni (best end-user UI, usually means migrating your BI), open-source analytics agent frameworks like nao (a first MVP in a day, context kept in Git), and in-house agents built with LangChain (full control, needs a team to build and maintain it).

A decision tree answers build vs buy: can your current BI be the solution, do you need custom context, a custom UI or self-hosting, and what is your main priority (UI for data users or business users, security, no extra tool, reliability, price).

The benchmark scores 20 tools on end-user UX, reliability, speed, cost and data team UX, and compares their context options: metadata, data profiling, dbt, semantic layer, rules, skills and MCPs. Tools covered include Snowflake Cortex, Databricks Genie, ClickHouse + LibreChat, Omni, Metabase, Looker, Lightdash, Hex, Count, Claude, Codex, Cursor, nao, LangChain, Dust, Dagster Compass, Cube, TextQL, Julius and ThoughtSpot.

Read more: [AI agents for data analysis: 20 tools compared](https://getnao.io/blog/ai-data-agents-compared/), [Compare nao with other tools](https://getnao.io/resources/compare/)

## Context engineering: how to make an analytics agent reliable

Context engineering is building the optimal context layer so an AI agent performs a specific task reliably and efficiently. Optimal means balancing four metrics: answer rate, accuracy, cost and speed. Too little context and the agent hallucinates; too much and it gets slow, expensive and confused by conflicting sources.

The playbook lists every piece of context you can give an analytics agent (table selection, metadata, data sampling and profiling, the dbt repository, a semantic layer, frequent queries, joins, business docs, skills, MCPs, a system prompt and rules) and a 5-step method to choose them:

- Build unit tests: real business questions the agent must always get right, with the SQL you would write.
- Run the agent on a baseline with little or no context.
- Analyze each failure: is the context missing, ambiguous, or there but hard to find?
- Improve the context (schema, docs, semantics, business documentation) and re-run the tests after each change.
- Roll out once the eval set reaches about 80% reliability, then monitor real-life questions.

Read more: [How to do context engineering for analytics agents](https://getnao.io/blog/how-to-do-context-engineering-for-data-teams/), [4 steps to improve analytics agent reliability from 45% to 86%](https://getnao.io/blog/improve-analytics-agent-reliability-steps/)

## Do you need a semantic layer for an analytics agent?

With the same model and tool, nao's agent went from 17% to 86% reliability through context alone. The biggest jump came from a rules file routing each metric to its source-of-truth table; the last gap (from a 45% ceiling) closed by fixing ambiguities in the data model, not by adding more context.

A semantic layer helps compute a metric the same way every time, but it does not tell the agent which metric the question is about. In the playbook's test, an AI-generated MetricFlow semantic layer scored 13%; after extensive manual work it reached 82%, versus 86% without one, and it was slower and more expensive through MCP tool calls. Start with your existing data stack, measure, then decide.

Read more: [How to make the semantic layer work for analytics agents](https://getnao.io/blog/how-to-make-semantic-layer-work-for-analytics-agents/), [What is the impact of a semantic layer on analytics agent performance?](https://getnao.io/blog/semantic-layer-impact-analytics-agent/)

## Roll out an analytics agent in 5 phases, from POC to company-wide

A roll-out plan answers who gets access (data team, data champions, business teams), where (a chat UI, your BI or warehouse, Slack or Teams, an MCP inside Claude, Cursor or Codex) and when (after offline reliability, online reliability and autonomy milestones). Each phase widens the audience only once the previous one has earned it:

- Test (about 1 week, data team): run the agent on golden questions and iterate on context.
- Validate (about 2 weeks, data team): use it day to day; every wrong answer becomes a context fix.
- Pilot (about 1 month, data champions): access through a tool they know, like Slack or an MCP, with a feedback loop.
- Expand (about 4 weeks per domain, business teams): one domain at a time, with a context owner per domain.
- Run (continuous, company-wide): evaluate reliability constantly and keep the context in sync as the data model changes.

## How to measure an analytics agent's accuracy and adoption

Define success before you start, with two technical metrics (is the agent trustworthy?) and two adoption metrics (is it used?):

- Offline reliability: % of correct answers on your eval set. Target 80% or more.
- Online reliability: % of correct answers in production. Target 80% or more; the gap with offline shows the context you did not anticipate.
- Weekly active users: the trust level of your users.
- Requests answered: the share of analytics requests the agent handles, your ROI.

## How OpenAI, Anthropic, Ramp and 4 other companies built their analytics agents

The playbook breaks down seven agents in production: their setup, results and key learnings.

- OpenAI: an internal data agent for 3,500 users over 70,000 datasets. Context cut the time to answer from 20 minutes to 2.
- Anthropic: Claude handles 95% of analytics queries. Procedural knowledge (how an analyst works through a topic) took reliability from 21% to 95%; context drift once dropped it to 65%, hence offline and online evaluation.
- Gorgias: 98% of employees use their agent, 10,000 questions a week, with context as a file system of markdown docs and progressive disclosure.
- Ramp: 1,000+ employees use Ramp Research, 10 to 20x more analytics questions; forcing the agent to read the domain doc before querying took consistency from about 50% to about 100%.
- Vercel: going from 15 tools to 2 (bash and SQL) on a Cube semantic layer took success from 80% to 100%, 3.5x faster with 37% fewer tokens.
- Lyft: Aria queries a YAML metric semantic layer through MCP; prototype to production in 3 weeks.
- nao Labs: 100% of internal analytics questions on nao, 86% agent accuracy on 26 tables.

## FAQ

### What is agentic analytics?

Agentic analytics means business users ask questions about data in plain language and an analytics agent answers them: it finds the right tables and metrics, writes and runs the SQL, and explains the result. The hard part is not the model, it is making the agent reliable enough that business teams trust its answers.

### How do you build a reliable analytics agent?

Start with a narrow scope (one team, 10 to 20 tables), write golden questions with the SQL you expect, measure a baseline, analyze each failure and fix the context or the data model, and roll out once the agent reaches about 80% on your eval set. Then monitor reliability on real questions.

### Should you build or buy an analytics agent?

It depends on your current BI, your team and your priorities. Warehouse AI (Snowflake Cortex, Databricks Genie) avoids an extra tool, AI-native BI (Hex, Omni) means migrating your BI, an open-source framework like nao is a middle ground where you own the context, and building in-house with LangChain needs a team to maintain it. The playbook's decision tree and 20-tool benchmark help you choose.

### Do you need a semantic layer for an analytics agent?

Not to start. In the playbook's test, nao's agent reached 86% reliability without a semantic layer and 82% with a MetricFlow semantic layer after extensive manual work. A semantic layer makes metric computation deterministic but does not tell the agent which metric a question is about.

### How do you measure an analytics agent's accuracy?

Track offline reliability (% of correct answers on an eval set of golden questions) and online reliability (% of correct answers in production), both with a target of 80% or more, plus weekly active users and the share of analytics requests the agent answers.

### Is the Agentic Analytics Playbook free?

Yes. It is a free 52-page PDF: enter your email on this page to get it.
