Create an AI agent that automatically generates, formats, and distributes data reports on a schedule.
## CONTEXT Business teams spend an average of 8 hours per week manually compiling reports that are outdated by the time they are delivered. Analysts report that 60% of their time goes to data gathering and formatting rather than actual analysis, and stakeholders who receive reports days late often make decisions based on stale numbers. An AI-powered reporting agent that autonomously collects data, generates insights, and delivers formatted reports on schedule transforms reporting from a bottleneck into an always-current intelligence stream. ## ROLE You are a business intelligence architect with 13 years of experience building automated reporting systems for data-driven organizations. You designed the AI-powered reporting platform at a SaaS company that generates and distributes 3,000 personalized reports weekly to executives, product managers, and sales teams across 15 business units. Your reporting agents combine SQL-based data retrieval with AI-generated narrative summaries that stakeholders consistently rate as more insightful than manually written analyst commentary, and your framework has reduced report production time by 95% while improving stakeholder satisfaction scores from 3.2 to 4.7 out of 5. ## RESPONSE GUIDELINES - Design the reporting agent to produce reports that require zero manual intervention from data collection through delivery - Include specific SQL query patterns, calculation formulas, and AI prompt templates for narrative generation - Build intelligence into the reports — highlight what changed, why it matters, and what action to consider - Specify conditional logic for when to send alerts vs. scheduled reports vs. on-demand summaries - Do NOT generate reports that dump raw numbers without context — every metric must include comparison benchmarks and trend indicators - Do NOT design a one-size-fits-all report — personalize content depth based on the recipient's role and needs ## TASK CRITERIA 1. **Data Source Configuration** — Define the exact data sources the agent queries for [INSERT REPORT TYPE] reports: database tables, API endpoints, spreadsheet files, or third-party integrations from [INSERT DATA SOURCES]. Specify SQL queries or API calls with joins, filters, and date range parameters. 2. **Metric Calculation Engine** — List every metric the report computes: aggregations (sum, average, count, distinct count), period-over-period comparisons (daily, weekly, monthly, YoY), growth rates, percentile rankings, and derived KPIs. Include the exact formula for each calculation. 3. **AI Narrative Generation** — Design the prompt template that instructs the AI to generate a 3-5 sentence executive summary per report section. The narrative must highlight the top 3 changes from the prior period, flag any metrics that crossed threshold boundaries, and suggest one recommended action. 4. **Anomaly & Threshold Alerts** — Define conditional alerting rules: which metrics trigger immediate alerts when crossing defined thresholds, what constitutes an anomaly worth flagging (deviation greater than 2 standard deviations from rolling average), and how alerts differ from scheduled report content. 5. **Visual Design & Formatting** — Specify the report layout including chart types for each metric (line charts for trends, bar charts for comparisons, tables for detailed breakdowns), color coding for positive/negative changes, and formatting rules for the output format preferred by [INSERT AUDIENCE]. 6. **Audience Personalization** — Design content depth tiers based on recipient role: executive summary (5 bullet points with one chart), manager detail (full metrics with commentary), and analyst deep-dive (underlying data with methodology notes). Map each tier to specific stakeholder groups. 7. **Scheduling & Delivery Pipeline** — Define the execution schedule at [INSERT FREQUENCY] with exact timing, timezone handling, and retry logic for failed data pulls. Specify delivery channels (email, Slack, PDF attachment, dashboard embed) and recipient lists per report variant. 8. **Data Freshness Validation** — Build pre-flight checks that verify data completeness before generating reports: confirm all source tables are updated, check for unexpected null spikes, and validate row counts against expected ranges. Define fallback behavior when data is stale. 9. **Historical Archive & Comparison** — Specify how past reports are stored for trend analysis and how the agent enables stakeholders to compare current reports against any historical period on demand. 10. **Feedback & Iteration Loop** — Design the mechanism for report recipients to provide feedback (useful, too long, missing metric, wrong focus), and specify how this feedback adjusts future report content, detail level, and delivery timing. ## INFORMATION ABOUT ME - My report type: [INSERT REPORT TYPE — e.g., weekly sales performance, monthly financial summary, daily ops dashboard] - My data sources: [INSERT DATA SOURCES — e.g., PostgreSQL database, Google Analytics, Salesforce, Stripe] - My target audience: [INSERT AUDIENCE — e.g., C-suite executives, regional sales managers, product team] - My delivery frequency: [INSERT FREQUENCY — e.g., daily at 8am, weekly on Monday, monthly on the 1st] - My preferred delivery format: [INSERT FORMAT — e.g., PDF via email, Slack message, embedded dashboard] ## RESPONSE FORMAT - Begin with a reporting pipeline architecture showing the flow from data collection to delivery in 5-7 bullet points - Use labeled sections for each pipeline component with implementation specifications - Include a metrics definition table with columns for metric name, formula, comparison period, and alert threshold - Provide an example narrative summary generated from sample data - End with an implementation timeline divided into Phase 1 (core reporting), Phase 2 (AI narratives and personalization), and Phase 3 (feedback loop and optimization)
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[INSERT REPORT TYPE][INSERT DATA SOURCES][INSERT AUDIENCE][INSERT FREQUENCY]