{
  "name": "Analyze alerts from Alertmanager and send diagnostic reports to Slack",
  "nodes": [
    {
      "id": "dbac538b-b899-4b55-8b99-ce62a87ef11d",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        928,
        112
      ]
    },
    {
      "id": "7111ff84-f306-4358-89b2-c40a5f328f7b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        800,
        240
      ]
    },
    {
      "id": "6ca399a9-7742-4e20-8258-5fa27c3ac305",
      "name": "K8S mcp",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        1056,
        544
      ]
    },
    {
      "id": "5e3b7dfa-6f83-4998-918f-04afa764a966",
      "name": "Grafana mcp",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        1200,
        544
      ]
    },
    {
      "id": "9ca07b6a-6fb0-4bc8-befa-cf2712ecdf6e",
      "name": "Digitalocean MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        912,
        544
      ]
    },
    {
      "id": "21f3a33e-693f-451c-a606-35779bc69b69",
      "name": "Receive alerts",
      "type": "n8n-nodes-base.webhook",
      "position": [
        80,
        112
      ]
    },
    {
      "id": "7809686c-7023-42b7-8e36-c44dbe01f858",
      "name": "PreProcessAlerts",
      "type": "n8n-nodes-base.code",
      "position": [
        464,
        112
      ]
    },
    {
      "id": "00f1a936-5093-4095-b433-0b213ddf6bac",
      "name": "Qdrant Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        1360,
        544
      ]
    },
    {
      "id": "6a32e809-cf33-4825-8540-de91b2281fd6",
      "name": "Embeddings Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        1360,
        736
      ]
    },
    {
      "id": "5a710de1-2e38-4618-9d27-ac0795489e6f",
      "name": "Gitlab MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        768,
        544
      ]
    },
    {
      "id": "50222e20-ae04-4588-b1ed-ad98de338ddb",
      "name": "GetAlertMessages",
      "type": "n8n-nodes-base.slack",
      "position": [
        1408,
        112
      ]
    },
    {
      "id": "11347d4b-0fb5-4bfc-974c-9a9bd714043b",
      "name": "SendReport",
      "type": "n8n-nodes-base.slack",
      "position": [
        1792,
        112
      ]
    },
    {
      "id": "8c081f53-f49c-4f32-ae6d-bd1f7b2520f5",
      "name": "FindAlert",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        112
      ]
    },
    {
      "id": "2afd4eb8-9fa9-46a9-8f31-036ff8abefde",
      "name": "SetVars",
      "type": "n8n-nodes-base.set",
      "position": [
        272,
        112
      ]
    },
    {
      "id": "51180c57-ba7d-495a-8381-21aebe08ae22",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 640,
        "height": 352,
        "content": "# Input chain\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nReceive and format alerts from Alertmanager"
      }
    },
    {
      "id": "e08cf46f-f9b8-4d26-8a14-1d05d3e644a3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        0
      ],
      "parameters": {
        "width": 528,
        "height": 352,
        "content": "# Alert analysis"
      }
    },
    {
      "id": "458f8d22-49df-4c78-a215-65550b4f4d7d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        448
      ],
      "parameters": {
        "width": 896,
        "height": 464,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# MCP servers\nAdd correct URLs for remote MCPs\nUse following mcp:\n* [grafana-mcp](https://github.com/grafana/mcp-grafana)\n* [kubernetes-mcp-server](https://github.com/containers/kubern"
      }
    },
    {
      "id": "44309ad0-cfea-4085-87c4-73d423c27674",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        0
      ],
      "parameters": {
        "width": 640,
        "height": 352,
        "content": "# Output chain\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPost generated report to Slack"
      }
    },
    {
      "id": "f8f27172-e960-41f9-b639-d7f02b4b2773",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        416
      ],
      "parameters": {
        "width": 656,
        "height": 704,
        "content": "# Overview\nThis workflow helps automatically analyze alerts occurring in the infrastructure and suggest solutions even before the on-duty engineer sees the alert.\n## How It Works\nThe workflow receives"
      }
    }
  ],
  "connections": {
    "K8S mcp": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SetVars": {
      "main": [
        [
          {
            "node": "PreProcessAlerts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "GetAlertMessages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FindAlert": {
      "main": [
        [
          {
            "node": "SendReport",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gitlab MCP": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Grafana mcp": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Receive alerts": {
      "main": [
        [
          {
            "node": "SetVars",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Digitalocean MCP": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "GetAlertMessages": {
      "main": [
        [
          {
            "node": "FindAlert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PreProcessAlerts": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    }
  }
}