{"product_id":"alertmanager-incident-investigator-with-gpt-4-1-clickup-slack-pagerduty","title":"Alertmanager Incident Investigator with GPT-4.1, ClickUp, Slack, PagerDuty","description":"\u003ch3\u003eAlertmanager Incident Investigator with GPT-4.1 — RCA to ClickUp + Slack + PagerDuty\u003c\/h3\u003e\n\u003cp\u003eWhen Prometheus Alertmanager fires, this n8n workflow immediately investigates the incident with a GPT-4.1-powered agent, generates a structured root-cause analysis (RCA), logs it to Postgres, creates a ClickUp incident task, notifies Slack, and pages PagerDuty for critical outages.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eReceives Prometheus Alertmanager webhooks\u003c\/b\u003e via a POST endpoint (\u003ccode\u003e\/alertmanager-incident\u003c\/code\u003e) containing firing alert details.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eNormalizes alert context\u003c\/b\u003e (alert name, severity, affected service, description, start time) and \u003cb\u003ederives a session ID\u003c\/b\u003e from the alert fingerprint so follow-up alerts stay in the same investigation thread.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eRuns an OpenAI incident investigator agent\u003c\/b\u003e using session memory to query your systems (optionally querying your \u003ci\u003elog API\u003c\/i\u003e and \u003ci\u003eCI\/CD deployment API\u003c\/i\u003e multiple times) and returns \u003cb\u003estructured RCA JSON\u003c\/b\u003e (root cause, confidence, evidence, likely deployment, severity, and recommended actions).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eStores audit history in Postgres\u003c\/b\u003e by inserting the RCA into the \u003ccode\u003eincident_analyses\u003c\/code\u003e table.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eCreates a ClickUp task\u003c\/b\u003e for the incident and posts a formatted summary (including the ticket link) to a Slack DevOps channel.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003ePages PagerDuty for critical incidents\u003c\/b\u003e based on the agent-assessed severity, then returns a JSON response to the webhook caller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSpeeding up incident triage when Prometheus alerts spike after deployments.\u003c\/li\u003e\n  \u003cli\u003eEnsuring every incident gets a repeatable RCA with evidence and recommended actions.\u003c\/li\u003e\n  \u003cli\u003eAutomating DevOps workflows end-to-end: Alertmanager → investigation → ClickUp → Slack → PagerDuty.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003en8n nodes:\u003c\/b\u003e Webhook, Set, If, Slack, ClickUp, Postgres\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eAI:\u003c\/b\u003e OpenAI Chat Model (GPT-4.1) with session memory; outputs structured RCA JSON\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eCore logic:\u003c\/b\u003e session ID from alert fingerprint, JSON parsing, Postgres insert into \u003ccode\u003eincident_analyses\u003c\/code\u003e, conditional PagerDuty escalation\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cb\u003eIdeal for:\u003c\/b\u003e n8n users, automation engineers, and SaaS operators who want Prometheus-driven incident response with AI-assisted root-cause analysis.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45978919436467,"sku":"N8N-19356","price":75.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/j8fXdtVQnlCdb4g5gzrPi_7iYbSDM3.png?v=1788858716","url":"https:\/\/buyflowscripts.com\/products\/alertmanager-incident-investigator-with-gpt-4-1-clickup-slack-pagerduty","provider":"N8N Commerce","version":"1.0","type":"link"}