Skip to main content
The Data Analyst Agent, also known as DANA (Data ANAlyst), is a specialized version of Devin optimized for querying databases, analyzing data, and creating visualizations. It’s designed to be fast, concise, and tuned specifically for data analytics workflows.

When to use the Data Analyst Agent

The Data Analyst Agent is ideal when you need to:
  • Query databases: Write and execute SQL queries against your connected data sources
  • Analyze data: Explore patterns, calculate metrics, and investigate trends in your data
  • Create visualizations: Generate professional charts and graphs using seaborn
  • Answer data questions: Get quick, accurate answers to questions about your data
  • Generate insights: Discover patterns, anomalies, and actionable findings

Accessing the Data Analyst Agent

From the web app

  1. Go to the Devin home page
  2. Click the agent picker dropdown
  3. Select Data Analyst from the dropdown menu
  4. Start your session with a data-related question or task

From Slack

You can start a Data Analyst session directly from Slack using either method: Using the slash command:
/dana What were our top 10 customers by revenue last month?
Using a mention with the !dana macro:
@Devin !dana What were our top 10 customers by revenue last month?
Both methods will create a Data Analyst session and respond in-thread with the results.

Prerequisites

Before using the Data Analyst Agent, you’ll need to connect at least one data source via MCP (Model Context Protocol). Common integrations include:
  • Database MCPs: Redshift, PostgreSQL, Snowflake, BigQuery, and other SQL databases
  • Analytics MCPs: Datadog, Metabase, and other observability platforms
Without a connected data source, the agent will notify you and ask you to connect one before proceeding.

Set up MCP integrations

Learn how to connect databases and other data sources via MCP

How it works

Database Knowledge

The Data Analyst Agent maintains a Database Knowledge note that contains schema documentation for your connected databases. This knowledge is automatically referenced before running queries, allowing the agent to quickly identify the right tables and columns.

Example prompts

Here are some effective ways to use the Data Analyst Agent: Simple questions:
  • “How many active users did we have last week?”
  • “What’s our daily revenue trend for the past month?”
  • “Which customers have the highest usage?”
Analysis requests:
  • “Analyze user retention by cohort for Q4”
  • “Break down consumption by enterprise vs. self-serve customers”
  • “Find the top 10 users by session count and show their activity over time”
Investigations:
  • “Why did signups drop last Tuesday?”
  • “Are there any anomalies in our error rates this week?”
  • “Compare this month’s metrics to the same period last year”

Best practices

Be specific about metrics

Instead of asking vague questions, be specific about what you want to measure:
"What's our 7-day active user count, defined as users who started at least one session?"

Specify time periods

Always include the time period you’re interested in:
"Show me daily revenue for the past 30 days"

Ask for visualizations

Request charts when they would help communicate the data:
"Plot a line chart of weekly signups for the past quarter"

Validate the SQL

The agent always includes the SQL query it used. Review it to ensure the logic matches your expectations, especially for complex analyses involving joins, filters, or aggregations.

Knowledge management

The Data Analyst Agent can persist learnings across sessions using the knowledge system. When it discovers:
  • New schema information or table relationships
  • Business logic or metric definitions
  • Data quality patterns or caveats
It will save these to knowledge notes so future sessions benefit from what was learned.

Learn more about Knowledge

Understand how Devin’s knowledge system works

Differences from standard Devin

CapabilityData Analyst AgentStandard Devin
SQL query executionOptimizedSupported
Data visualizationsBuilt-in seaborn supportManual setup
Database schema awarenessPre-loaded knowledgeOn-demand exploration
Response styleConcise, metrics-focusedDetailed explanations
Code changesNot primary focusFull support
MCP integrationsRequiredOptional
The Data Analyst Agent is purpose-built for data work. For tasks involving code changes, deployments, or general software engineering, use standard Devin instead.