Templates / Analyze logs and correlate incidents with OpenAI and Slack

Analyze logs and correlate incidents with OpenAI and Slack

Ready for 3.0

by ResilNext ✓ · 145 views · created 2026-03-14 · DevOps, AI RAG

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 17 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Embeddings OpenAI, OpenAI Chat Model and Slack.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Workflow Configuration (Edit Fields (Set)): sets 6 fields: logsApiUrl, metricsApiUrl, deploymentsApiUrl…
  2. Fetch Logs (HTTP Request): calls an HTTP API
  3. Fetch Metrics (HTTP Request): calls an HTTP API
  4. Fetch Recent Deployments (HTTP Request): calls an HTTP API
  5. Fetch Feature Flags (HTTP Request): calls an HTTP API
  6. Normalize and Denoise Logs (Code): runs custom JavaScript code
  7. Merge Context Data (Aggregate): combines items into one
  8. Cluster Log Messages (Simple Vector Store): stores documents in the Simple vector store, with embeddings: OpenAI Embeddings; document loader: Document Loader
  9. Identify Failure Patterns (Code): runs custom JavaScript code
  10. Time-Align Events (Code): runs custom JavaScript code

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

Services it uses

Embeddings OpenAIOpenAI Chat ModelSlack

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

Overview This workflow implements an AI-powered incident investigation and root cause analysis system that automatically analyzes operational signals when a system incident occurs. When an incident is triggered via webhook, the workflow gathers operational…

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