Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Reports, Analytics & Dashboards

Reports, Analytics & Dashboards

Identify slow and expensive workflow nodes via webhook and HTTP APIs

When an API call/webhook arrives, it builds reports.

What it does

## AI-Powered n8n Workflow Optimizer Receives an optimization request, collects node-level performance and cost data, uses AI to rank the slowest and most expensive nodes, and returns prioritized recommendations with estimated impact and effort. ### All nodes (1-line each) 1. Webhook - Optimization Request – Receives the workflow optimization request via POST. 2. Code - Validate & Prepare Analysis – Validates the request and builds the performance/cost analysis context. 3. IF - Validation Passed? – Routes invalid payloads to an immediate error response. 4. Respond - Validation Error – Returns HTTP 400 with validation details. 5. Wait - Pre Metrics Pull – Short pause before fetching performance metrics. 6. HTTP Request - Fetch Performance Metrics – Pulls node-level duration, success rate and execution counts. 7. Wait - Pre Cost Pull – Pause before fetching cost and resource usage data. 8. HTTP Request - Fetch Cost & Resource Data – Pulls AI token usage, compute time and external API costs. 9. Wait - Pre AI Optimization – Pause before AI analysis of slow and expensive nodes. 10. HTTP Request - AI Identify Bottlenecks – Calls AI to rank slow/expensive nodes and generate optimization strategies. 11. HTTP Request - Store Optimization Report – Persists the optimization report or notifies the team. 12. Code - Build Optimization Report – Aggregates metrics + AI recommendations into a final actionable report with ROI ranking. 13. Respond to Webhook – Returns the complete optimization report to the caller.

The steps

  1. Webhook - Optimization Request
  2. Code - Validate & Prepare Analysis
  3. IF - Validation Passed?
  4. Respond - Validation Error
  5. Wait - Pre Metrics Pull
  6. HTTP Request - Fetch Performance Metrics
  7. Wait - Pre Cost Pull
  8. HTTP Request - Fetch Cost & Resource Data
  9. Wait - Pre AI Optimization
  10. HTTP Request - AI Identify Bottlenecks
  11. HTTP Request - Store Optimization Report
  12. Code - Build Optimization Report
  13. Respond to Webhook

Similar automations