Ad-Hoc Data Queries in Slack
Type /dana in any Slack channel to query your database in plain English.Connect a database in the MCP Marketplace
Dana needs access to at least one database to answer questions. Go to Settings > MCP Marketplace and enable a database MCP:
Click Enable on the MCP card, fill in your credentials, then click Test listing tools to confirm the connection works. You can connect multiple databases — Dana will query whichever one is relevant to your question.
| Data source | MCP name | What you’ll need |
|---|---|---|
| Amazon Redshift | Redshift | Host, port, database, username, password |
| Google BigQuery | BigQuery | OAuth (one-click) or service account JSON |
| PostgreSQL | PostgreSQL | Connection string |
| MySQL | MySQL | Connection string |
| Snowflake | Snowflake | Account, username, password |
Ask your first question with /dana
Dana is Devin’s data analyst mode — a specialized agent with tools and prompts optimized for querying databases, building charts, and answering business questions in plain English.Open any Slack channel where Devin is installed and type
/dana followed by a plain-English question. If the /dana slash command isn’t available in your workspace, you can also use @Devin !dana ... — both work the same way. Dana creates a session, writes the SQL, runs it, and replies in-thread.You can also invoke Dana by mentioning Devin with the !dana macro:Dana responds directly in the Slack thread with formatted tables, counts, and — when useful — a short interpretation of the results. No context-switching to a BI tool required.Dana isn’t limited to quick lookups — it’s also great at comprehensive reports and deep analysis. Ask it to investigate trends, segment data, and synthesize findings across multiple queries:Teach Dana your schema and conventions
Dana works out of the box, but it gets significantly better when it knows your schema and business definitions. Instead of manually adding Knowledge entries, just give Dana feedback directly — in Slack or the webapp — and ask it to remember things for next time:
- “Remember that ‘active user’ means at least one event in
analytics.eventsin the past 30 days.” - “All our timestamps are stored in UTC. Always convert to America/New_York for display.”
- “
billing.subscriptions.mrris in cents, not dollars. Divide by 100 when showing revenue.” - “Update your knowledge: the
plancolumn values are free, pro, and enterprise — not basic/premium.”
Ask follow-ups in the same thread
Dana keeps context within a Slack thread, so follow-up questions can reference earlier results without repeating yourself.For questions you ask regularly, consider creating a playbook with the exact queries and formatting you want, then trigger it with a custom
!macro from Slack.