How we built an AI agent that answers 1,000+ data questions a month
Overview
Ramp built an internal AI agent called Ramp Research that serves as an agentic data analyst, answering data questions directly in Slack to eliminate the bottleneck of relying on a single on-call analyst. The agent leverages metadata from dbt, Looker, and Snowflake combined with domain-specific documentation to answer over 1,800 questions across 1,200 conversations, resulting in a 10-20x increase in the number of data questions employees ask.
What You'll Learn
How to build an agentic AI data analyst that answers questions from a large analytics warehouse via Slack
How to define and organize a context layer using dbt, Looker, and Snowflake metadata to make an AI agent effective over thousands of tables
Why giving an AI agent tools to inspect column values, branch, and backtrack outperforms generic keyword or vector search for data analysis
How to build an evaluation framework that asserts on intermediate agent steps, not just final answers
Why reducing the cost of asking data questions to near-zero creates a 10-20x increase in organizational data usage
Prerequisites & Requirements
- Understanding of data warehousing concepts and analytics workflows
- Familiarity with dbt, Looker, and Snowflake or similar data stack
- Understanding of AI agents and LLM-based tool use patterns
- Experience with Slack app development and integrations(optional)
Key Questions Answered
How do you build an AI agent that can answer data questions from a large analytics warehouse?
How does an agentic data analyst handle thousands of tables and views in a data warehouse?
What is the impact of making data questions free to ask in an organization?
How do you evaluate an AI data analyst agent beyond just checking final answers?
Why is Slack a good interface for an internal AI data analyst?
How do you solve the analytics bottleneck where data questions queue up behind a single analyst?
What role does domain-specific documentation play in making AI agents effective for data analysis?
Key Statistics & Figures
Technologies & Tools
Some links below are affiliate links. We may earn a commission if you make a purchase.
Key Actionable Insights
1Invest in a structured context layer rather than relying solely on vector search or keyword matching for AI data agents. Aggregate metadata from your data stack (dbt, Looker, Snowflake) and have domain experts write technical documentation organized in an accessible file system. This domain knowledge is what enables the agent to bridge raw data understanding with business context.Ramp found that even with relevant data context, the agent struggled without domain-specific documentation. The combination of indexed metadata and expert-written docs was key to making the agent effective across different business domains.
2Give your AI agent tools to inspect data at the row level rather than compressing everything into embeddings or summaries. Providing the ability to inspect column values, branch between approaches, and backtrack when reasoning fails enables the agent to handle the complexity of large data warehouses with thousands of tables.Generic compression methods like keyword or vector search weren't sufficient for Ramp's scale. The agentic approach of exploring data iteratively, similar to how a human analyst works, proved more effective for answering complex data questions.
3Build evaluation frameworks that test intermediate reasoning steps, not just final answers. Assert on expected tool calls, table references, and query shape in addition to the final result. This diagnostic approach makes it possible to identify exactly why an agent fails and iterate quickly on improvements.Ramp's initial end-to-end tests exposed blind spots but gave little diagnosis. Their Python mini-framework in dbt enabled a tight feedback loop: update context, run tests, and confirm improvements, which was essential for rapid iteration.
4Deploy AI agents where users already work (like Slack) and support multi-turn conversations to dramatically increase adoption. Adding features like in-thread CSV previews removes friction for non-technical users and allows everyone to validate results without context-switching to specialized BI tools.Ramp's #ramp-research-beta channel grew to 500+ members. Multi-turn threads improved both user experience and agent performance by allowing clarification of intent and collaborative problem-solving.
5Recognize that reducing the cost of asking data questions creates massive latent demand. Plan for a 10-20x increase in question volume and design your system to handle questions that previously went unasked. Most growth will come from questions that people never bothered to submit to the traditional queue.Ramp saw 1,476 questions answered by their AI agent in four weeks compared to just 66 in the traditional help-data channel. The compounding effect of many small improvements in decision quality across pricing, GTM, and feature decisions becomes material at scale.
6Make your AI agent available as a headless API so teams can customize it for domain-specific workflows beyond ad-hoc questions. This enables automation of recurring tasks like generating customer case studies, detecting fraud patterns, and integrating with alert channels for incident diagnosis.Ramp is seeing teams proactively integrate the agent into existing workflows by adding it to alert and project channels, demonstrating that the value extends well beyond answering one-off data questions.