---
title: "report_generation"
description: "Generate data-driven reports with visualizations and insights."
canonical: "https://acs.synapti.ai/workflows/report-generation/"
last_updated: "2026-10-28T02:44:27Z"
---

# Generate data-driven reports with visualizations and insights.

Generated from [schemas/workflows/data_analysis_workflows.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/workflows/data_analysis_workflows.yaml) at commit 18c38b74ac21.

- Workflow id: `report_generation`
- Risk: low
- Catalog: domain workflows (data-analysis)
- Declares Standard 1.1.0
- Steps: 11

Report generation workflow that queries data, computes metrics,
generates insights, and produces formatted reports.

**Figure: Steps of report_generation: 11 steps.** Read top to bottom: only step 11 (audit) changes state; and the highest step risk is low, at steps 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 and 11.

| # | Capability | Layer | Role | Gates | On failure | Reads from | Risk |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 2 | `search` | PERCEIVE |  |  |  | 1 | low |
| 3 | `measure` | UNDERSTAND |  |  |  | 1, 2 | low |
| 4 | `compare` | UNDERSTAND |  |  |  | 3 | low |
| 5 | `detect` | UNDERSTAND |  |  |  | 3 | low |
| 6 | `attribute` | MODEL |  |  |  | 2, 5 | low |
| 7 | `predict` | UNDERSTAND |  |  |  | 1, 3 | low |
| 8 | `ground` | MODEL |  |  |  | 2, 3 | low |
| 9 | `generate` | SYNTHESIZE |  |  |  | 1, 3, 4, 5, 6, 7, 8 | low |
| 10 | `transform` | SYNTHESIZE |  |  |  | 9 | low |
| 11 | `audit` | VERIFY |  |  |  |  | low |

## Inputs

**Figure: Inputs of report_generation.** 2 inputs, 1 required (filled pin) and 1 optional (outlined pin), with 11 named fields inside them.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `report` | object | Yes |  |
| `report.id` | string | No |  |
| `report.template_id` | string | No |  |
| `report.data_sources` | array of string | No |  |
| `report.row_limit` | integer | No |  |
| `report.benchmarks` | object | No |  |
| `report.significance_threshold` | number | No |  |
| `report.potential_drivers` | array of string | No |  |
| `report.forecast_horizon` | string | No |  |
| `report.output_format` | string | No |  |
| `report.audience` | string | No |  |
| `report.branding` | object | No |  |
| `profile` | object | No |  |

## Steps

1. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get report template and specifications. Stores `template_out`. (risk low)
2. [`search`](https://acs.synapti.ai/capabilities/search/index.md): Query data sources for report metrics. Stores `data_query_out`. (risk low)
3. [`measure`](https://acs.synapti.ai/capabilities/measure/index.md): Compute key metrics from retrieved data. Stores `metrics_out`. (risk low)
4. [`compare`](https://acs.synapti.ai/capabilities/compare/index.md): Compare current metrics to benchmarks. Stores `benchmark_comparison_out`. (risk low)
5. [`detect`](https://acs.synapti.ai/capabilities/detect/index.md): Identify notable trends and outliers. Stores `trends_out`. (risk low)
6. [`attribute`](https://acs.synapti.ai/capabilities/attribute/index.md): Identify factors driving key metric changes. Stores `drivers_out`. (risk low)
7. [`predict`](https://acs.synapti.ai/capabilities/predict/index.md): Forecast metrics for next period. Stores `forecast_out`. (risk low)
8. [`ground`](https://acs.synapti.ai/capabilities/ground/index.md): Anchor all insights to data evidence. Stores `grounded_insights_out`. (risk low)
9. [`generate`](https://acs.synapti.ai/capabilities/generate/index.md): Create report content and visualizations. Stores `report_content_out`. (risk low)
10. [`transform`](https://acs.synapti.ai/capabilities/transform/index.md): Format report for target audience. Stores `formatted_report_out`. (risk low)
11. [`audit`](https://acs.synapti.ai/capabilities/audit/index.md): Record report generation. Stores `audit_out`. (risk low, changes state)

## Data flow

**Figure: Which step reads which stored output.** 9 steps read the output of earlier steps, 19 reads in all; step 9 (generate) reads the most, from 7 steps.

- Step 2 reads from step 1.
- Step 3 reads from steps 1 and 2.
- Step 4 reads from step 3.
- Step 5 reads from step 3.
- Step 6 reads from steps 2 and 5.
- Step 7 reads from steps 1 and 3.
- Step 8 reads from steps 2 and 3.
- Step 9 reads from steps 1, 3, 4, 5, 6, 7 and 8.
- Step 10 reads from step 9.

## Risk

Declared and highest step risk are both low; the catalog gives no computed risk; the highest-risk step is step 1 (retrieve), with 10 others at the same level. The step map above gives each step's risk.

## Success criteria

- Data retrieved and validated
- Metrics computed with confidence
- Insights generated and grounded
- Report formatted for audience

## Related

- Domain: [data-analysis](https://acs.synapti.ai/domains/data-analysis/index.md)
- Listed by the [data-analysis](https://acs.synapti.ai/domains/data-analysis/index.md) profile

## Validate it

```sh
python tools/validate_workflows.py --catalog schemas/workflows/data_analysis_workflows.yaml
```

## Workflow YAML

```yaml
report_generation:
  goal: Generate data-driven reports with visualizations and insights.
  risk: low
  domain: data-analysis
  profile: schemas/profiles/data_analysis.yaml
  description: |
    Report generation workflow that queries data, computes metrics,
    generates insights, and produces formatted reports.
  success:
    - Data retrieved and validated
    - Metrics computed with confidence
    - Insights generated and grounded
    - Report formatted for audience
  steps:
    - capability: retrieve
      purpose: Get report template and specifications.
      risk: low
      mutation: false
      store_as: template_out
      input_bindings:
        target: ${report.template_id}
        format: report_template

    - capability: search
      purpose: Query data sources for report metrics.
      risk: low
      mutation: false
      store_as: data_query_out
      input_bindings:
        query:
          queries: "${template_out.data.queries: object}"
          data_sources: ${report.data_sources}
        limit: ${report.row_limit}

    - capability: measure
      purpose: Compute key metrics from retrieved data.
      domain: kpi
      risk: low
      mutation: false
      store_as: metrics_out
      input_bindings:
        target: "${data_query_out.results: array<object>}"
        metric: "${template_out.data.metrics: string}"

    - capability: compare
      purpose: Compare current metrics to benchmarks.
      domain: benchmark
      risk: low
      mutation: false
      store_as: benchmark_comparison_out
      input_bindings:
        options:
          - ${metrics_out}
          - ${report.benchmarks}
        criteria:
          - vs_target
          - vs_previous_period
          - vs_industry

    - capability: detect
      purpose: Identify notable trends and outliers.
      domain: trend
      risk: low
      mutation: false
      store_as: trends_out
      input_bindings:
        data: ${metrics_out}
        pattern: significant_change
        threshold: ${report.significance_threshold}

    - capability: attribute
      purpose: Identify factors driving key metric changes.
      domain: driver
      risk: low
      mutation: false
      store_as: drivers_out
      input_bindings:
        effect: "${trends_out.matches: array<object>}"
        candidates: ${report.potential_drivers}
        context: ${data_query_out}

    - capability: predict
      purpose: Forecast metrics for next period.
      domain: metric_forecast
      risk: low
      mutation: false
      store_as: forecast_out
      input_bindings:
        target: "${template_out.data.forecast_metrics: string}"
        horizon: ${report.forecast_horizon}
        conditions: ${metrics_out}

    - capability: ground
      purpose: Anchor all insights to data evidence.
      risk: low
      mutation: false
      store_as: grounded_insights_out
      input_bindings:
        claim: "The trends, drivers and forecast found for report ${report.id} are supported by the queried data and computed metrics"
        sources:
          - ${data_query_out}
          - ${metrics_out}
        required_strength: moderate

    - capability: generate
      purpose: Create report content and visualizations.
      domain: report
      risk: low
      mutation: false
      store_as: report_content_out
      input_bindings:
        specification:
          type: analytics_report
          template: "${template_out.data: object}"
          metrics: ${metrics_out}
          comparisons: ${benchmark_comparison_out}
          insights:
            trends: ${trends_out}
            drivers: ${drivers_out}
            grounding: ${grounded_insights_out}
          forecast: ${forecast_out}
        format: ${report.output_format}

    - capability: transform
      purpose: Format report for target audience.
      risk: low
      mutation: false
      store_as: formatted_report_out
      input_bindings:
        input: "${report_content_out.content: object}"
        source_format: raw_report
        target_format: ${report.output_format}
        options:
          audience: ${report.audience}
          branding: ${report.branding}

    - capability: audit
      purpose: Record report generation.
      risk: low
      mutation: true
      store_as: audit_out
      input_bindings:
        event:
          type: report_generation
          report_id: ${report.id}
          template_id: ${report.template_id}
          data_sources: ${report.data_sources}

  inputs:
    report:
      type: object
      required: true
      properties:
        id: {type: string}
        template_id: {type: string}
        data_sources: {type: array, items: {type: string}}
        row_limit: {type: integer, default: 100000}
        benchmarks: {type: object}
        significance_threshold: {type: number, default: 0.05}
        potential_drivers: {type: array, items: {type: string}}
        forecast_horizon: {type: string, default: "30d"}
        output_format: {type: string, default: "pdf"}
        audience: {type: string}
        branding: {type: object}
    profile:
      type: object
      ref: schemas/profiles/data_analysis.yaml
```
