Workflow stats

This workflow automatically collects and summarizes detailed statistical data from all workflows, generating a structured JSON format, which is then rendered into an interactive HTML dashboard using an XML template. Users can intuitively view the total number of workflows, their activation status, trigger counts, and the usage of various nodes, tags, and Webhooks, thereby enhancing management efficiency and avoiding resource waste. It also supports custom data presentation in BI tools, facilitating team collaboration and optimizing the design of automated processes.

Tags

n8n monitoringworkflow stats

Workflow Name

Workflow stats

Key Features and Highlights

This workflow is designed to automatically collect and aggregate detailed statistics of all workflows within an n8n instance, generating structured JSON data that is rendered into an interactive HTML dashboard via an XML template. It not only displays the total number of workflows, their activation status, and trigger counts, but also provides granular statistics on individual nodes, tags, and webhook endpoints, along with their associated workflow lists. The workflow incorporates advanced JavaScript techniques (such as JMESPath queries, array deduplication, and date format conversion) and XSLT templating, enabling customizable data presentation within BI tools.

Core Problems Addressed

n8n users often manage a large number of workflows and find it challenging to quickly identify which workflows are active, the usage frequency of various nodes, the distribution of tags, and the mapping of webhook endpoints. This workflow centralizes data collection and intelligently organizes the information, helping users gain comprehensive insight into the overall operational status and resource allocation of their n8n instance. This improves management efficiency and prevents redundant development and resource waste.

Use Cases

  • Monitoring and managing a large volume of workflows by n8n administrators or developers
  • Generating workflow documentation and usage analysis reports
  • Sharing workflow structures and activity information within teams
  • Visualizing workflow data through BI tools or web dashboards
  • Optimizing and adjusting automation process designs to enhance the value of automation assets

Main Process Steps

  1. Data collection is initiated via a trigger node (manual trigger or webhook trigger).
  2. The n8n API is called to retrieve detailed information on all workflows in the current instance.
  3. JMESPath queries and JavaScript code nodes extract and process data such as node types, tags, and webhook paths for each workflow.
  4. Statistics, sorting, and aggregation are performed separately on workflows, nodes, tags, and webhook information.
  5. All summarized data is consolidated into a unified JSON format statistical report.
  6. The JSON data is converted into XML format and combined with an XSLT template to render a visually appealing HTML dashboard page.
  7. The generated dashboard page is returned to the requester via webhook response, enabling online viewing.

Involved Systems or Services

  • n8n native API (for retrieving workflow data)
  • n8n node library (Manual Trigger, HTTP Webhook, Code, Set, Sort, Aggregate, XML Transformation, HTML Rendering, Respond to Webhook, etc.)
  • JavaScript (including JMESPath querying and Luxon date handling library)
  • XSLT templates (for HTML dashboard generation)
  • Bootstrap 5.3 (front-end styling framework, loaded via CDN)

Target Users and Value

  • n8n platform administrators and automation engineers: Quickly grasp and manage the full scope of workflows to improve operational efficiency.
  • DevOps teams: Monitor automation process usage to support decision-making and optimization.
  • Technical documentation authors: Use the automatically generated dashboard to assist in creating workflow documentation.
  • Enterprise digital transformation teams: Gain comprehensive understanding of automation asset distribution to facilitate process improvement and resource integration.
  • n8n community users: Learn advanced n8n techniques and template development to enhance automation design capabilities.

Recommend Templates

Telegram Weather Workflow

This workflow implements the automatic retrieval of weather information for specified cities (such as Berlin) via Telegram. Users simply need to send a message, and the system will call the weather API to instantly reply with the current weather conditions, temperature, and feels-like temperature, greatly simplifying the inquiry process. This service is suitable for individuals, teams, and customer service bots, enhancing information retrieval efficiency, improving user experience, and facilitating integration into more complex intelligent assistants.

Weather QueryTelegram Automation

Azure DevOps Pull Request Creation Event DingTalk Notification Automation

This workflow implements automatic notifications via a DingTalk group bot when a Pull Request is created in Azure DevOps, ensuring that relevant reviewers are promptly informed of code changes. It maintains user mapping relationships through a MySQL database, supports Markdown format for notification content, and offers a high degree of customization, enhancing team collaboration efficiency. This helps avoid delays or omissions in information transmission, ensuring the timeliness and transparency of code reviews. It is suitable for development teams that need to respond quickly to code merge requests.

Azure DevOpsDingTalk Notification

n8n Community Topic Tracker by Keyword

This workflow automatically fetches community topics related to specified keywords at scheduled intervals, updates their detailed information in Google Sheets, and notifies the team via Slack and email when content changes occur, ensuring that members stay informed of the latest developments. It effectively addresses the issues of scattered information and frequent updates, enhancing the management efficiency of community topics. This workflow is suitable for users and teams that need to track community discussions in real-time, promoting collaboration and responsiveness.

community monitoringn8n automation

Trigger a Build Using the TravisCI Node

This workflow allows users to quickly trigger the build process for a specified project through simple manual operations, simplifying the traditional method of initiating builds. Users only need to click the execute button to remotely call the project API via the TravisCI node, starting the build task. It is suitable for development teams and project managers to efficiently control builds in multi-project management or environment switching, enhancing work efficiency and flexibility.

Continuous IntegrationTravisCI Trigger

GitLab Automated Merge Request Management Workflow

This workflow implements comprehensive automated management of merge requests in GitLab projects. It periodically checks and processes merge requests to avoid duplicate creations, automatically adds comments, ensures intelligent merging after the CI pipeline is completed, and closes outdated requests. This process significantly reduces the workload and error risks associated with manual management, enhances team collaboration efficiency and code quality, and is suitable for software development teams and continuous integration/continuous delivery environments.

GitLab AutomationMerge Request Management

Simplest n8n Workflow Backup — Automate the Security of Your Google Drive Data

This workflow is designed to automatically back up users' workflow configurations, regularly saving the backup data as JSON files and uploading them to a specific directory in Google Drive. Through scheduled triggers and data transformation, it ensures the secure storage and convenient recovery of workflows, effectively preventing data loss due to accidental operations or system failures. It is suitable for enterprises and individuals that require regular backups and centralized storage of workflow configurations, enhancing management efficiency and data security.

n8n BackupGoogle Drive

Get All Scaleway Server Info Copy

This workflow can automatically retrieve server information from multiple regions of the Scaleway cloud service platform and perform data integration and standardization. Users can quickly locate target servers using flexible filtering criteria (such as tags, names, public IPs, and regions). Ultimately, the filtered results are returned through a Webhook interface, enhancing the automation level of cloud resource management. It is suitable for DevOps engineers, operations automation developers, and IT infrastructure teams, enabling efficient server information querying and management.

Scaleway ServerAutomation Filter

Addon for Workflow Nodes Update Check Template

This workflow is designed for the automatic detection and management of outdated node versions. It can add identifiers to older node versions and create new nodes with the latest version on the canvas, making it easier for users to identify and replace them. Additionally, it generates access links for the affected workflows and sends update notification emails via Gmail. By automating this process, it significantly reduces operational costs and enhances the stability and efficiency of workflows, making it suitable for enterprise automation management and multi-team collaboration environments.

n8n node managementversion check