# Aggregate Workflow Run Stats

> Perform Aggregate Workflow Run Stats through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_aggregate_workflow_run_stats](https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_aggregate_workflow_run_stats)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `genhealth_aggregate_workflow_run_stats`

## Inputs

- `workflow_run_id` — Workflow Run Id (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `run_id` — Run Id
- `total_nodes` — Total Nodes
- `success_count` — Success Count
- `failure_count` — Failure Count
- `top_error` — Top Error
- `node_summary` — Node Summary
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "workflow_run_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "run_id": {},
    "success": {},
    "top_error": {},
    "total_nodes": {},
    "node_summary": {},
    "failure_count": {},
    "success_count": {}
  },
  "additionalProperties": true
}
```
