Templates / Predict incidents and run autonomous remediation with GPT-4 and Slack

Predict incidents and run autonomous remediation with GPT-4 and Slack

Ready for 3.0

by Cheng Siong Chin ✓ · 80 views · created 2026-01-13 · 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 43 nodes and runs on a schedule (every 2 minutes) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Slack, Postgres and Postgres PGVector Store and 1 more.

How it runs

Trigger: On a schedule (every 2 minutes) (plus 1 other trigger).

  1. Workflow Configuration (Edit Fields (Set)): sets 10 fields: metricsApiUrl, logsApiUrl, tracesApiUrl…
  2. Approval Granted? (If): checks a condition and branches into true / false
  3. Fetch Metrics Data (HTTP Request): calls an HTTP API
  4. Fetch Logs Data (HTTP Request): calls an HTTP API
  5. Fetch Traces Data (HTTP Request): calls an HTTP API
  6. Fetch Alerts Data (HTTP Request): calls an HTTP API
  7. Remediation Strategy Planner (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Remediation; output parser: Remediation Plan Output Schema
  8. Escalation Diagnostics Generator (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Diagnostics; output parser: Diagnostics Output Schema
  9. Merge: merges the data from its input branches
  10. Execute Remediation Action (HTTP Request): calls an HTTP API

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

Services it uses

OpenAI Chat ModelSlackPostgresPostgres PGVector StoreEmbeddings OpenAI

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

From the author

How It Works This workflow automates end-to-end customer journey management by intelligently routing queries through multiple AI models (OpenAI, Claude) based on complexity and context. Designed for customer success teams, support operations, and sales…

Excerpt from Cheng Siong Chin'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.