Overview
Let colleagues ask Devin data questions in a team chat thread; Devin writes and runs the SQL against a read-only warehouse account, shows the query with the answer, and builds a small dashboard as a pull request for review.
Problem or Objective
- Which agents clean, chart and explain a dataset you provide?
- Which agents can draft a document section by section and save it in a reusable, structured format?
More in Business Operations
AI Agents and Models
Tools and Integrations
- Tools
- Devin · Slack · Streamlit
- Prerequisites
- A Devin team account set up by an administrator, a Slack or Teams connection, a read-only data warehouse login (how Devin stores it is a check), and a repository for dashboards.
How It Works
Set up Devin for your team and connect it to your team chat. Ask your data owner for a read-only warehouse user limited to the tables people may query, and check with Cognition how to store that login as a secret in Devin's environment. In a repository, keep a short file that defines your main tables and metrics so every answer uses the same definitions. When someone has a question, they tag Devin in the chat thread and ask it in plain words. Devin writes the SQL, runs it, and replies with the result plus the exact query so an analyst can check it. For questions that come up often, ask Devin to turn the query into a dashboard; Streamlit is one way to build this. Devin opens it as a draft pull request, and an analyst reviews the SQL and the numbers before the dashboard is merged and shared.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Devin.
- Connect the toolsConnect the tools this workflow relies on: Devin, Slack, Streamlit.
- Check the prerequisitesA Devin team account set up by an administrator, a Slack or Teams connection, a read-only data warehouse login (how Devin stores it is a check), and a repository for dashboards.
- Gather your detailsCollect what the prompt asks for: Who asked, The data question, File defining tables and metrics, Name of the stored read-only login, Analyst who reviews dashboards.
- Run the starter promptPaste the starter prompt below into Devin and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.devin.ai before you rely on it.
Practical Starter Prompt: Answer a data question with its SQL
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Question from [Who asked]: [The data question]. Use the definitions in [File defining tables and metrics] and only the tables listed there. Connect with the read-only warehouse login stored as [Name of the stored read-only login]. Write one SQL query, run it, and reply in this thread with the answer in two sentences, a small table of the result, and the full SQL. State any assumption you made about the question. If I ask for a dashboard, build it in a new branch and open a draft pull request for [Analyst who reviews dashboards] to review; do not merge or share it yourself.Use this when tagging Devin in a chat thread. An analyst checks the SQL behind any answer that drives a decision and reviews every dashboard pull request before it is merged and shared.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Devin docs describe it as an AI software engineer that returns draft pull requests, list tagging it in a Slack or Teams thread among its most successful workflows, and list data manipulation, analysis and visualization as tasks it is good at. The Streamlit README describes it as a framework for dashboards. No cited page covers connecting Devin to a data warehouse or how secrets are stored, so that part is a check and the accuracy of answers is untested here.
Limitations and Considerations
A plain-language question can be read more than one way, so every answer should carry its SQL and be checked by someone who knows the data before it drives a decision. Use a read-only account limited to approved tables; never give the agent credentials that can change or delete data, and keep personal data out of the tables it can reach. Company access to Devin goes through an administrator, and costs depend on your Cognition plan; check both. Results depend on clear definitions of metrics, so keep the definitions file up to date. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
Suggested Implementation Component
A repository that could serve as a building block. It is not part of the cited account and is not evidence that the workflow was run.
Sources
- Introducing Devin - Devin Docs (opens in a new tab)
Project documentation · docs.devin.ai · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Devin is most effective when it’s part of your team and your existing workflow.
- Devin is an autonomous AI software engineer that can write, run and test code.
- Data & Analysis - Devin Docs (opens in a new tab)
Project documentation · docs.devin.ai · Undated · Source checked 27 Nov 2026, 14:18 UTC
What this source supports
- Devin excels at data manipulation, analysis, and visualization tasks.
- Whether you need to process datasets, create visualizations, or automate data workflows, Devin can help streamline your data operations.
- streamlit/streamlit README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 27 Nov 2026, 00:12 UTC
What this source supports
- Streamlit is the agent-native data app framework.