Actions44
- Execution Actions
- Monitoring Actions
- Scheduler Actions
- Tag Actions
- Workflow Actions
Monitoring → Health Dashboard
AI-generatedSummary
Builds a read-only health report for one or more n8n workflows by fetching recent executions through the n8n API and computing per-workflow metrics: failure rate, consecutive failures, average duration, last success/failure, alerts and a 0–100 health score.
Inputs
- Workflow Selection — How to choose workflows: searchable list (single), multiple from list, current workflow, or manual URL/ID (comma-separated allowed). Default is list.
- Workflow Name or ID (required) — Single workflow, shown when selection mode is list.
- Workflow Names or IDs — Multiple workflows, shown when selection mode is multiple.
- Workflow URL or IDs — Workflow URLs, IDs, or comma-separated IDs, shown when selection mode is manual. Duplicates are removed.
- Execution Status — Restricts the analysed executions to Error, Running, Success or Waiting. Default Any. Choosing a single status skews the rates (for example Error alone gives a 100% failure rate).
- Failure Rate Threshold (%) — Percentage (0–100, default 25). A failure-rate alert is raised when the rate is at or above it.
- Consecutive Failure Threshold — Number (1–50, default 3). Raises an alert when the most recent consecutive failed runs reach this count.
- Max Pages — Maximum pages of executions to fetch per workflow (1–50, default 5; 100 per page). This limits the analysis window.
Output shape
One item per input item. Its JSON contains generatedAt, workflowCount, averageHealthScore (rounded mean, or null if there are no workflows) and an analytics array. Each analytics entry has workflowId, workflowName, windowExecutionCount, successCount, failureCount, runningCount, waitingCount, failureRate (0–1 fraction), consecutiveFailures, averageDurationMs, lastSuccessfulRun, lastFailedRun, healthScore and alerts (strings).
Requires the n8nApi credential. The analysis covers only the fetched execution window (Max Pages × 100 executions, newest-first). The health score is 100 minus a failure-rate penalty, a consecutive-failure penalty (up to 5) and a penalty per running execution, clamped to 0–100. Alerts also report any running or waiting executions. Execution data is not fetched. The operation changes nothing. Any API error fails the item unless Continue On Fail is enabled, in which case an error item is returned.
Examples
Example 1: Daily health check across several production workflows
Workflow Selection: Multiple From List; pick workflows; Failure Rate Threshold 20; Consecutive Failure Threshold 3; Max Pages 5.
Example 2: Self-monitoring check on the workflow containing this node
Workflow Selection: Current Workflow; Execution Status: Any; defaults for thresholds.