Build an AI Data Analysis Agent for Business Metrics
Design an AI agent that connects to a database, answers natural language questions about business data, generates charts, and explains insights.
Enable non-technical team members to query business data conversationally without writing SQL or using BI tools.
At a glance
Access
Free prompt
Open to copy without upgrading.
Prompt objective
Enable non-technical team members to query business data conversationally without writing SQL or using BI tools.
Real use case
A marketing team of 8 people constantly asks the data team for reports. Simple queries take 2 days to get answered. An AI agent could handle 80% of ad-hoc questions instantly.
Customize these fields first
Replace the placeholders with your own context before you run the prompt. That usually improves the first output more than adding more instructions later.
Prompt
Act as a data engineering and AI architect. Design an AI data analysis agent for [COMPANY NAME] that provides natural language access to [DATABASE TYPE] data.\n\n**Context:**\n- Database: [POSTGRES/BIGQUERY/SNOWFLAKE] with [NUMBER] tables\n- Primary users: [TEAM NAME] ([NUMBER] people) with no SQL knowledge\n- Common questions: revenue trends, campaign performance, cohort analysis, [OTHER]\n- BI tool in use: [LOOKER/TABLEAU/METABASE]\n- Data refresh frequency: [HOURLY/DAILY/REAL-TIME]\n\n**Deliverables (numbered):**\n1. Agent architecture: NL-to-SQL pipeline with schema awareness, query validation, execution sandbox, result formatting, and chart generation\n2. Schema understanding: how the agent learns table structures, relationships, business definitions (metric glossary), and common query patterns\n3. Query safety: read-only access, query timeout limits, row limit ([NUMBER] max), prevention of expensive full-table scans, and approval for complex queries\n4. Response format: natural language summary of findings, data table (top [NUMBER] rows), suggested chart type with generated visualization, and follow-up question suggestions\n5. Error handling: graceful responses for ambiguous questions, schema mismatches, empty results, and query timeouts with helpful guidance\n6. Query logging and learning: store all queries, track which answers users found helpful, build a query pattern library for common questions\n7. Integration: embed in [SLACK/TEAMS/WEB APP], support file upload for CSV analysis, and export results to [FORMAT]\n\n**Constraints:**\n- Must never allow write/delete operations\n- Must cite data source table and freshness timestamp in every response\n- Must flag when data may be incomplete (e.g., current month not yet closed)
Open directly in an AI — the text is pre-filled:
How to use this prompt
- 1Replace the key placeholders first: COMPANY NAME, DATABASE TYPE, POSTGRES/BIGQUERY/SNOWFLAKE, NUMBER.
- 2Replace any bracketed placeholders like [this] with your own context.
- 3Add extra background information when you want more tailored results.
- 4Combine multiple prompts in one conversation when you need a richer output.
- 5Save your best-performing prompts so they are easy to reuse later.
Next best step
Open the guide first, then branch only if you still need more.
A fast starting guide for professionals who want to get AI working in the real world in less than a week.
If this prompt is close but not quite right, generate variants next. If the job is recurring, move into the course library after the guide.
Related prompts
View allDesign an AI Research Agent for Market Analysis
Create a specification for an AI agent that autonomously researches market trends, compiles competitor data, and generates weekly market intelligence reports.
Best for
Design an autonomous research agent that replaces 10 hours/week of manual market research with structured, actionable intelligence.
Build an AI Code Review Agent for Pull Requests
Design an AI agent that automatically reviews GitHub pull requests, checks for bugs, security issues, and style violations, then comments with actionable feedback.
Best for
Create an automated code review system that catches common issues before human review, reducing review time and improving code quality.
Create an AI Customer Support Triage Agent
Design an AI agent that reads incoming support tickets, classifies them by urgency and category, suggests responses, and routes to the right team.
Best for
Build an intelligent triage layer that reduces first-response time and ensures tickets reach the right team with context.
Design an AI Sales Outreach Agent
Build an AI agent that researches prospects, writes personalized outreach emails, sequences follow-ups, and updates the CRM with engagement data.
Best for
Automate the top-of-funnel outreach process while maintaining personalization quality that matches human-written emails.
Free browsing stays open. Premium prompts unlock the reusable workflow layer.
Use the guides and role paths to validate the job first. Upgrade when you want the full prompt text, editable premium prompts, and the surrounding course paths in one place.
Free access
- Browse guides, role paths, and category pages.
- Preview prompts before you decide to upgrade.
- Find the right starting point without friction.
Membership access
- Unlock premium prompts and the full copy text.
- See more workflow paths and course connections.
- Keep the reusable templates in one place.