Read -> Cluster -> Flag Repeats -> Review -> Investigate
Incident Repeat-Cause and Action-Effectiveness Agent
The agent reads your incident and near-miss register and the corrective-action log to find incidents that keep recurring with the same root cause, and it flags corrective actions that are overdue or that did not stop the problem coming back. It reads the incident register, the action log, and investigation notes, then returns cause clusters, repeat flags, and an overdue-action list. It also drafts an investigation starter so the next inquiry begins with the history in hand.
The Problem
Same pump seal. Same cause. Third time this year. The first two fixes were signed off as done.
A seal fails on a transfer pump and a near-miss report is filed. The investigation blames a fitting procedure, an action is raised to retrain the crew, and the action is closed. Four months later the same seal fails the same way, and again the action closes. Because each incident sits as its own record, nobody has laid the three together to see that the fix keeps being signed off and the failure keeps coming back.
What Changes
The history read across records, not one incident at a time
The agent groups incidents and near-misses by root cause and equipment so recurring problems surface as clusters, not isolated events. Where a corrective action was completed and the same cause recurred afterward, it raises a flag that the fix did not hold. It lists overdue actions and drafts an investigation starter that carries the prior history, so the team can show whether a fix actually worked.
Humans stay in control: the agent surfaces repeats and weak actions, and your investigation lead decides what is reopened and re-investigated.
HOW THE AGENT WORKS
HOW TO BUILD IT
Three levels of depth. Pick the one that matches where you are.
For the ops person who needs to understand what's involved and brief their team.
WHAT YOUR TEAM PROVIDES ONCE
- Incident and near-miss register - your logged events with root cause, equipment, and date
- Corrective-action log - the actions raised against incidents with status and close dates
- Investigation notes - the write-ups that hold the detail behind each root cause
- A cause taxonomy - the categories you group root causes under, even a rough one
- A notification channel - email, Teams, or Slack where the findings land
For the IT person or technical lead who needs to scope the integration.
INQUIRY SOURCES
WORKFLOW ENGINE (N8N)
CONNECTS TO
Without API access, the register and action log are exported to spreadsheets and the agent reads those on a schedule. The clusters and repeat flags are the same, they just reflect the last export.
With API access to the incident system, the agent re-clusters as each new incident lands and can flag a repeat the moment it is logged, with the prior history attached. Best experience.
For the person who wants to build this agent step by step. Each node below maps to an n8n workflow node.
You are a safety analyst. Group these incidents into clusters that share a root cause and equipment. For each cluster, list the incident ids, the shared cause, and the equipment.
Incidents: {incidents}
Cause taxonomy: {taxonomy}
Respond ONLY with valid JSON. No explanation.three seal failures on pump P-102 in one year, all root cause fitting procedure
{"clusters": [{"cause": "fitting_procedure", "equipment": "P-102", "incidents": ["INC-041", "INC-119", "INC-203"], "count": 3}]}For each cluster, check whether a corrective action was completed before a later incident with the same cause. Flag those as action-did-not-hold. List overdue actions. Then draft a short investigation starter that summarizes the history.
Clusters: {clusters}
Actions: {actions}
Today: {today}
Respond ONLY with valid JSON. No explanation.cluster P-102 fitting_procedure, action A-12 closed after INC-041 but INC-119 recurred; action A-30 overdue
{"action_did_not_hold": [{"cluster": "P-102 fitting_procedure", "action": "A-12", "recurred_in": "INC-119"}], "overdue": ["A-30"], "starter": "P-102 seal failed 3 times on fitting procedure; retraining action A-12 did not prevent recurrence."}- Start with one equipment class and one year of incidents so the clusters are easy to check.
- Export the register and action log to a spreadsheet with a clean root-cause column.
- Have the investigation lead confirm the first clusters by hand to check the cause grouping.
- Add the action-effectiveness check once the clusters are trusted.
- Keep the investigation starter as a draft only, never an auto-filed report.
- Only then widen to all equipment and multiple years.
- =+ Connect the incident system API so a repeat is flagged the moment a new incident is logged.
- =+ Pull free-text investigation notes so clustering uses the detail, not just the cause code.
- =+ Add a similarity check so near-identical causes with different labels still group together.
- =+ Track how long causes stay closed after an action to measure whether fixes hold.
- =+ Produce a quarterly repeat-cause report for the management review.
- =+ Link clusters to the relevant procedure so a weak action points at the document to change.
Full Video Walkthrough Coming Soon
Watch the agent flag a root cause that recurred after its action closed.
Register to be notifiedEverything on this page is free to learn.
When you're ready to build — do it yourself or bring us in.
OTHER AGENTS IN LEASING & MARKETING
Change and Relief-Verification Agent
Permit-to-Work Conflict and Simultaneous-Work Checker
Statutory Safety Test and Certificate Agent
Frequently asked questions
This is 2 of 4 agents in Safety, Health & Environment. → · Explore all 15 departments →