Templates / Find and track flaky CI jobs in GitHub Actions with OpenAI and Slack

Find and track flaky CI jobs in GitHub Actions with OpenAI and Slack

Ready for 3.0

by Daniel Shashko ✓ · 3 views · created 2026-09-02

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 AI workflow has 19 nodes and runs on a schedule (every day at 08:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Slack and GitHub.

How it runs

Trigger: On a schedule (every day at 08:00) (plus 1 other trigger).

  1. Settings (Edit Fields (Set)): sets 10 fields: owner, repo, workflow_name…
  2. Ask For The Recent Runs (HTTP Request): calls an HTTP API (GET)
  3. Pick The Runs Worth Reading (Code): runs custom JavaScript code
  4. Read The Jobs In Each Run (HTTP Request): calls an HTTP API (GET)
  5. Score Every Job (Code): runs custom JavaScript code
  6. Read What You Reported (Data table): get
  7. Only The New Or Worse (Code): runs custom JavaScript code
  8. Anything Random? (If): checks a condition and branches into true / false
  9. One Row Per Job (Code): runs custom JavaScript code
  10. Group The Failures (Basic LLM Chain): sends a prompt to an LLM, with model: Flake Reader

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

Services it uses

OpenAI Chat ModelSlackGitHub

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 (12)

From the author

Quick Overview This workflow runs daily (or on demand) to analyze GitHub Actions re-runs for a specific workflow and branch, identify flaky jobs by comparing pass/fail history across attempts, summarize likely causes with OpenAI, post a report to Slack, file…

Excerpt from Daniel Shashko'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.