GenAiHub

Last checked 24 November 2026 — responded normally.

Identify slow and expensive workflow nodes via webhook and HTTP APIs

Quick overview

Live
Open / InstallLast updated November 24, 2026

Description

Quick overview This workflow receives a webhook request to optimize an n8n workflow, fetches performance and cost metrics via HTTP, sends the data to an AI analysis endpoint to identify bottlenecks, optionally stores the report, and returns a ranked optimization report to the caller. How it works Receives an optimization request via a POST webhook containing a target workflow ID and optional time range and focus. Validates the request and prepares context (request ID, workflow details, and analysis parameters) used by downstream API calls. Calls an HTTP endpoint to fetch node-level performance metrics such as durations, execution counts, and success rates. Calls a second HTTP endpoint to fetch cost and resource usage data such as AI token spend, compute time, and external API costs. Sends the collected context to an AI HTTP endpoint to rank slow and/or expensive nodes and generate optimization recommendations. Sends the optimization report metadata to a storage/notification HTTP endpoint. Aggregates the collected results into a final report with status flags, bottleneck rankings, and next steps, then returns it in the webhook response. Setup Configure the webhook endpoint path (default: /optimize-workflow) and provide the generated webhook URL to the system that will call this optimizer. Replace the placeholder HTTP endpoints (currently httpbin.org) with your real performance metrics, cost tracking, AI analysis, and report storage/notification API URLs. If your endpoints require authentication, add the needed credentials/headers to the HTTP Request nodes and align request payloads with your APIs. Ensure the webhook request body includes workflowId (required) and optionally from/to, focus (slow|expensive|both), and minExecutions to control the analysis window and thresholds. An n8n automation workflow template by Oneclick AI Squad.

Community Metrics

Views
5
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Oneclick AI Squad

Platform

web

Pricing model

free

Categories

  • Automation

Tags

  • n8n
  • workflow
  • http-request
  • code

Capabilities

  • 2 nodes
  • 5 views

Information

TypeWorkflow
Sourcen8n
AddedNovember 4, 2026

Comments

?

Others in the same category, ranked by how often they are opened.