# Triage and retry failed workflow executions with Anthropic: n8n workflow

> Started by an event in a connected app, and works across Jira. It hands the judgement calls to Claude.

Source: https://millionrounds.com/workflow/triage-and-retry-failed-workflow-executions-with-anthropic (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# Triage and retry failed workflow executions with Anthropic

Started by an event in a connected app, and works across Jira. It hands the judgement calls to Claude. 15 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: Claude

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-and-retry-failed-workflow-executions-with-anthropic)

**15 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 3 Logic 7 Service 4

The steps in the order they run, from what starts it.

- 1 **Parse Structured Output** Output Parser Structured *Model*
- 2 **Anthropic Chat Model** Lm Chat Anthropic *Model*
- 3 **When Error Occurs** Error trigger *Starts it*
- 4 **Root-Cause Analysis Agent** Chain Llm *Model*
- 5 **Extract Error Details** Code *Logic*
- 6 **Combine Diagnostics and Telemetry** Code *Logic*
- 7 **Prepare Fallback for AI Failure** Code *Logic*
- 8 **Check Retry Eligibility** If *Logic*
- 9 **Log in Jira - Diagnostics Failed** Jira *Service*
- 10 **Compute Retry Backoff** Code *Logic*
- 11 **Log in Jira - No Retry** Jira *Service*
- 12 **Send OTel Span to Collector** Http Request *Service*
- 13 **Wait for Backoff Duration** Wait *Logic*
- 14 **Retry via n8n API** Http Request *Service*
- 15 **Assess Retry Outcome** Code *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 15, with 1 branch, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Jira
- **Model:** Claude

## Questions

What does it need to run?

An n8n account, plus your own Jira account, and a key for Claude. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 15 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-and-retry-failed-workflow-executions-with-anthropic)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Jira](https://millionrounds.com/workflows?service=Jira#library)

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Convert DevOps Mattermost requests into Jira tasks** 15 steps · calls a model · Jira, Mattermost](https://millionrounds.com/workflow/convert-devops-mattermost-requests-into-jira-tasks)
- [**Triage Microsoft 365 incidents into Jira with OpenAI** 12 steps · calls a model · Jira](https://millionrounds.com/workflow/triage-microsoft-365-incidents-into-jira-with-openai)
- [**The AI QA Suite: Agentic Test Case Generation for Jira** 7 steps · calls a model · Jira](https://millionrounds.com/workflow/the-ai-qa-suite-agentic-test-case-generation-for-jira)
- [**Automate agile project setup with OpenAI and Jira** 32 steps · calls a model · Gmail, Jira](https://millionrounds.com/workflow/automate-agile-project-setup-with-openai-and-jira)
- [**Automate code reviews for GitLab MRs with Gemini and Jira** 35 steps · calls a model · Jira](https://millionrounds.com/workflow/automate-code-reviews-for-gitlab-mrs-with-gemini-and-jira)
