Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Triage DevOps incidents from Slack with GPT-4.1, Prometheus, Jira and Terraform
When something happens in a connected app, it automates developer work with OpenAI / ChatGPT using GitHub, Jira, Postgres, Slack.
What it does
## AI DevOps Incident Management System ### How it works 1. A Slack message or forwarded alert triggers the workflow. 2. An AI agent investigates using Prometheus, Loki, and a RAG search over past incidents, then writes a structured Root Cause Analysis. 3. Every analysis is logged to Postgres for audit history. 4. If a remediation is proposed, a human must approve it in Slack before anything touches real infrastructure. 5. Once approved, the workflow files a ticket, applies the fix via Terraform, and verifies resolution with Prometheus and Grafana. ### Setup steps - [ ] Add Slack credentials (trigger + bot token) - [ ] Add an OpenAI credential and a Vector Store credential for the RAG tool - [ ] Add HTTP credentials for Prometheus and Loki - [ ] Add a Postgres credential and create the incidents table - [ ] Add Jira or GitHub credentials on whichever ticketing node you keep - [ ] Add Terraform Cloud/Enterprise API credentials - [ ] Point the approval Wait node's resume webhook at your Slack interactive-message action ### Customization Swap Jira for GitHub Issues (or vice versa) by deleting the unused branch off the ticketing switch.
The steps
- Slack - Incident Trigger
- Set - Config
- Tool - Query Prometheus
- Tool - Query Loki
- Tool - RAG Search Past Incidents
- OpenAI Chat Model
- Window Buffer Memory
- AI Agent - Incident Investigator
- Set - Parse Agent Output
- Postgres - Log Incident Analysis
- IF - Remediation Proposed
- Slack - Post Investigation Notice
- Slack - Request Human Approval
- Wait - For Human Approval
23 steps in total.
Similar automations
Code, Git & Developer ToolsReview Terraform pull requests with GitHub, GPT-4.1, Postgres and Slack20 stepsCode, Git & Developer ToolsSend weekly self-hosted instance health reports via Prometheus, GitHub and SMTP email10 stepsAI Agents & AssistantsTriage and remediate DevOps alerts with Claude, ClickUp, GitHub and Slack24 stepsCode, Git & Developer ToolsSet Up Docker, Kubernetes and Jenkins DevOps Server12 steps