Templates / Protect external API calls with a webhook circuit breaker and Redis

Protect external API calls with a webhook circuit breaker and Redis

Ready for 3.0

by Oneclick AI Squad ✓ · 1 views · created 2026-10-02 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 29 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Redis.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Set - Breaker Config (Edit Fields (Set)): sets 10 fields: serviceName, requestPath, requestMethod…
  2. JS - Resolve Service (Code): runs custom JavaScript code
  3. If: checks a condition and branches into true / false
  4. Redis: get
  5. Respond - Unknown Service (404) (Respond to Webhook): sends the response back to the webhook caller
  6. JS - Evaluate Breaker State (Code): runs custom JavaScript code
  7. If: checks a condition and branches into true / false
  8. Respond - Circuit Open (503) (Respond to Webhook): sends the response back to the webhook caller
  9. If: checks a condition and branches into true / false
  10. Redis: incr

…plus 18 more steps. See the full node list below.

Services it uses

Redis

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Quick overview This workflow exposes a webhook-based circuit breaker that routes requests to approved external APIs, tracks failures per service in Redis, and temporarily blocks calls when failure thresholds are exceeded, optionally sending an alert to a…

Excerpt from Oneclick AI Squad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.