Weekly Failures Report

This workflow automatically queries the execution records of a specified workflow every week, filtering out the failed executions from the past week, and sends a summary report to the user via Telegram. This feature helps users stay informed about any anomalies in workflow operations, improves operational efficiency, and reduces the risk of business interruptions. It is suitable for automated operations teams and enterprise users who need to track process status. Through this automated mechanism, users can effectively monitor the health status of workflows without manual intervention.

Workflow Diagram
Weekly Failures Report Workflow diagram

Workflow Name

Weekly Failures Report

Key Features and Highlights

This workflow automatically queries the historical execution records of a specified n8n workflow every 7 days, filters out failed executions from the past week, and consolidates all failure information into a single message. The report is then pushed to users via Telegram, enabling timely awareness of workflow anomalies.

Core Problems Addressed

Automates monitoring of n8n workflow execution status to prevent unnoticed failures, thereby improving operational efficiency and workflow stability while reducing the risk of business interruptions.

Application Scenarios

  • Automated operations teams monitoring workflow statuses
  • Enterprises or teams requiring regular tracking and troubleshooting of automation failures
  • Any scenario relying on n8n automation workflows that needs prompt notification of exceptions

Main Process Steps

  1. Scheduled Trigger: Initiates the workflow once every 7 days.
  2. Retrieve Historical Executions: Calls the n8n API to fetch all historical execution records of the target workflow.
  3. Filter Weekly Failures: Filters executions from the past 7 days that did not complete successfully.
  4. Generate Failure Messages: Creates detailed alert texts for each failed execution, including workflow name, execution link, and date.
  5. Aggregate Messages: Combines all failure messages into a single text.
  6. Push Notification via Telegram: Sends the consolidated failure report to a specified chat through a Telegram bot.

Involved Systems or Services

  • n8n: Utilizes n8n’s built-in API to retrieve execution data.
  • Telegram: Uses a Telegram bot to push failure report messages.

Target Users and Value

  • Automation operations engineers and DevOps teams
  • Enterprise users managing automation workflows on the n8n platform
  • Professionals aiming to enhance automation system stability and promptly detect and respond to anomalies
  • Any users who wish to receive workflow status notifications via instant messaging tools

By automating data collection and instant messaging notifications without manual intervention, this workflow significantly improves operational efficiency and response speed in monitoring workflow health.