# Triage DevOps incidents from Slack with OpenAI and Prometheus: n8n workflow

> Started by an event in a connected app, and works across GitHub, Jira, Postgres and Slack.

Source: https://millionrounds.com/workflow/triage-devops-incidents-from-slack-with-openai-and-prometheu (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Triage DevOps incidents from Slack with OpenAI and Prometheus

Started by an event in a connected app, and works across GitHub, Jira, Postgres and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-devops-incidents-from-slack-with-openai-and-prometheu)

**23 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**4** Services it connects to

## The flow

Starts it 1 Model 6 Logic 6 Service 10

The steps in the order they run, from what starts it.

- 1 **Slack - Incident Trigger** Slack trigger *Starts it*
- 2 **Tool - Query Prometheus** Tool Http Request *Model*
- 3 **Tool - Query Loki** Tool Http Request *Model*
- 4 **Tool - RAG Search Past Incidents** Tool Vector Store *Model*
- 5 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 6 **Window Buffer Memory** Memory Buffer Window *Model*
- 7 **Set - Config** Set *Logic*
- 8 **AI Agent - Incident Investigator** Agent *Model*
- 9 **Set - Parse Agent Output** Set *Logic*
- 10 **Postgres - Log Incident Analysis** Postgres *Service*
- 11 **IF - Remediation Proposed** If *Logic*
- 12 **Slack - Request Human Approval** Slack *Service*
- 13 **Slack - Post Investigation Notice** Slack *Service*
- 14 **Wait - For Human Approval** Wait *Logic*
- 15 **IF - Approved** If *Logic*
- 16 **Switch - Ticketing System** Switch *Logic*
- 17 **Slack - Post Rejection Notice** Slack *Service*
- 18 **Jira - Create Incident Ticket (optional)** Jira *Service*
- 19 **GitHub - Create Incident Issue (optional)** Github *Service*
- 20 **Terraform - Apply Remediation** Http Request *Service*
- 21 **Prometheus - Verify Resolution** Http Request *Service*
- 22 **Grafana - Annotate Dashboard** Http Request *Service*
- 23 **Slack - Post Resolution Summary** Slack *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 23, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** GitHub, Jira, Postgres, Slack
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own GitHub, Jira, Postgres and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-devops-incidents-from-slack-with-openai-and-prometheu)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[GitHub](https://millionrounds.com/workflows?service=GitHub#library)[Jira](https://millionrounds.com/workflows?service=Jira#library)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Assess procurement inflation risk with Groq and Google Sheets** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/assess-procurement-inflation-risk-with-groq-and-google-sheet)
- [**Build an engineering knowledge graph with ClickUp and GitHub** 23 steps · calls a model · Slack](https://millionrounds.com/workflow/build-an-engineering-knowledge-graph-with-clickup-and-github)
- [**Classify and respond to Facebook Messenger inquiries** 23 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/classify-and-respond-to-facebook-messenger-inquiries)
- [**Create AI Instagram Reels with OpenAI and Veo3** 23 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/create-ai-instagram-reels-with-openai-and-veo3)
- [**Find LinkedIn engagement opportunities with Apify and Gemini** 23 steps · calls a model · Apify, Google Sheets](https://millionrounds.com/workflow/find-linkedin-engagement-opportunities-with-apify-and-gemini)
- [**Omni-Sentinel AI: autonomous enterprise auditor & ROI engine** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/omni-sentinel-ai-autonomous-enterprise-auditor-and-roi-engin)
