Predict incidents and run autonomous remediation with GPT-4 and Slack
Ready for 3.0What 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).
- Workflow Configuration (Edit Fields (Set)): sets 10 fields: metricsApiUrl, logsApiUrl, tracesApiUrl…
- Approval Granted? (If): checks a condition and branches into true / false
- Fetch Metrics Data (HTTP Request): calls an HTTP API
- Fetch Logs Data (HTTP Request): calls an HTTP API
- Fetch Traces Data (HTTP Request): calls an HTTP API
- Fetch Alerts Data (HTTP Request): calls an HTTP API
- Remediation Strategy Planner (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Remediation; output parser: Remediation Plan Output Schema
- Escalation Diagnostics Generator (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Diagnostics; output parser: Diagnostics Output Schema
- Merge: merges the data from its input branches
- Execute Remediation Action (HTTP Request): calls an HTTP API
…plus 19 more steps. See the full node list below.
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Wait
n8n-nodes-base.wait - Slack
n8n-nodes-base.slack - Webhook
n8n-nodes-base.webhook - Postgres
n8n-nodes-base.postgres - Postgres PGVector Store
@n8n/n8n-nodes-langchain.vectorStorePGVector - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Send Email
n8n-nodes-base.emailSend
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…