Skip to content
AI Agents

AI Call Error Log Retry Planner with Capped Exponential Backoff

7 nodes 52 5 Manual trigger
Download

Read the execution path horizontally, with supporting AI nodes below. Layout changes affect this preview only; the download stays unchanged.

Loading workflow…

Workflow Description

Reads fictional past execution error logs and classifies each error as rate_limit, timeout, transient_server, permanent, or invalid_record. It computes delay = base × 2^attempts, capped at max_delay, and derives an ISO next_attempt_at from last_attempt_at. An If node sends retryable items to the schedule. Permanent, unclassified, invalid, or max-attempt items go to final failure. The workflow then builds one report with the category distribution, a sorted retry schedule, and the final failures. It executes no calls.

How it works

  1. 1.Set base_delay_ms, max_delay_ms and max_attempts in the config node
  2. 2.Emit seven fictional error logs, including one invalid record
  3. 3.Validate fields, classify each error and compute the capped exponential delay
  4. 4.Route items through If to the retry path or the final-failure path
  5. 5.Merge both paths and build one sorted report

Use cases

  • Scheduling batch re-runs after overnight rate-limit outages
  • Separating permanent errors such as bad API keys before re-running a batch

Requirements

  • Logs with item_id, status_code, error_message, attempts and last_attempt_at
  • Retry policy values in the Retry Policy Config node
  • No API keys needed

Setup and testing in n8n

  1. Import the JSON into n8n
  2. Run Run Retry Planner manually
  3. Check that A-001, A-002 and A-003 are scheduled and that A-003's delay is capped at 30000
  4. Check that A-004, A-005, A-006 and A-007 are listed as final failures
  5. Change max_attempts or the logs to test edge cases, then replace the sample node with your real log source

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Manual Trigger Set Code If Merge

Details

Trigger Manual trigger
Nodes 7
Apps 5
Views 52
Downloads 5

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (7)

Run Retry Planner

Manual Trigger

#1

Retry Policy Config

Set

#2

Sample Error Logs

Code

#3

Classify Errors and Compute Backoff

Code

#4

Is Retryable?

If

#5

Combine Retry and Final Paths

Merge

#6

Build Retry Plan Report

Code

#7

Note Overview

Sticky Note

#8

Note Routing

Sticky Note

#9
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime