Templates / Draft and track incident postmortems with OpenAI, Google Sheets, Discord and Gmail

Draft and track incident postmortems with OpenAI, Google Sheets, Discord and Gmail

Ready for 3.0

by Khairul Muhtadin ✓ · 4 views · created 2026-08-20 · DevOps, AI Summarization

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 30 nodes and runs on a schedule (cron 0 9 1 * *) (plus 2 other triggers). Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Discord and 1 more.

How it runs

Trigger: On a schedule (cron 0 9 1 * *) (plus 2 other triggers).

  1. Read Postmortems (Google Sheets): uses Google Sheets
  2. Normalize Incident Data (Edit Fields (Set)): sets 12 fields: incident_id, received_at, status…
  3. Read Open Action Items (Google Sheets): uses Google Sheets
  4. Filter Current Month (Code): runs custom JavaScript code
  5. Validate Incident Input (If): checks a condition and branches into true / false
  6. Prepare Weekly Follow-up (Code): runs custom JavaScript code
  7. Summarize Monthly RCA Trends (AI Agent): runs an AI agent, with model: OpenAI Monthly RCA Model
  8. Acknowledge Reporter by Email (Gmail): uses Gmail
  9. Alert Invalid Report on Discord (Discord): work with message
  10. If: checks a condition and branches into true / false

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

Services it uses

GmailOpenAI Chat ModelGoogle SheetsDiscordTelegram

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

From the author

Incidents become lessons automatically. This workflow takes incident reports from a form, has AI draft a structured postmortem with root cause and action items, logs everything to Sheets, and keeps stakeholders posted. Overdue actions get chased weekly,…

Excerpt from Khairul Muhtadin'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.