{
  "name": "Predict incidents and run autonomous remediation with GPT-4 and Slack",
  "nodes": [
    {
      "id": "490ae22f-10b3-4a09-8232-c6b386725843",
      "name": "Metrics Collection Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -448,
        148
      ]
    },
    {
      "id": "f7e03506-5285-472e-aa36-8dea1830aa42",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        148
      ]
    },
    {
      "id": "475f0a15-1b33-4c4b-bf3c-c842f16c7d5c",
      "name": "Fetch Metrics Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "7806772c-fadd-4fae-b3e1-3acd3851abd2",
      "name": "Fetch Logs Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        192
      ]
    },
    {
      "id": "7de61d0a-cd8e-416e-b064-6510c0ff2d63",
      "name": "Fetch Traces Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        384
      ]
    },
    {
      "id": "6ca7338e-8309-4646-b506-dab7555ad014",
      "name": "Fetch Alerts Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        576
      ]
    },
    {
      "id": "c475f8c1-e834-42a4-a3cc-c555b2f8b343",
      "name": "Merge Observability Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        224,
        136
      ]
    },
    {
      "id": "6c65fa70-13d3-4c80-bfec-d9e3b6a52166",
      "name": "Anomaly Detection Engine",
      "type": "n8n-nodes-base.code",
      "position": [
        448,
        168
      ]
    },
    {
      "id": "c3c05aa4-ad2d-4977-b425-21196ad15858",
      "name": "Temporal Forecasting Model",
      "type": "n8n-nodes-base.code",
      "position": [
        672,
        168
      ]
    },
    {
      "id": "1254e14f-3495-44ec-93fc-a8c0614ba556",
      "name": "Causal Inference Analysis",
      "type": "n8n-nodes-base.code",
      "position": [
        896,
        168
      ]
    },
    {
      "id": "231adc21-bfcc-4a72-b60b-76743ef8511f",
      "name": "Incident Predicted?",
      "type": "n8n-nodes-base.if",
      "position": [
        1120,
        168
      ]
    },
    {
      "id": "85017db6-6a60-49a9-851d-09e8d9ec70cd",
      "name": "Root Cause Correlation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1344,
        168
      ]
    },
    {
      "id": "bfa7d4e2-7142-4887-89e6-7045512813fa",
      "name": "OpenAI GPT-4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1352,
        392
      ]
    },
    {
      "id": "c72c8a64-eb27-43f8-9e58-832fd7598f06",
      "name": "Root Cause Output Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1480,
        392
      ]
    },
    {
      "id": "acb5c796-9f5d-4a7a-8221-5daecde92f98",
      "name": "Blast Radius Evaluator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1696,
        168
      ]
    },
    {
      "id": "33bf4e6a-bc25-4561-9d3f-72de71398769",
      "name": "OpenAI GPT-4 Blast Radius",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1704,
        392
      ]
    },
    {
      "id": "50d5b6e0-e6c9-4257-9e0b-c5313ddaef6d",
      "name": "Blast Radius Output Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1872,
        400
      ]
    },
    {
      "id": "a39d184a-805e-47f1-b7e3-d71609a2d185",
      "name": "Auto-Remediation Safe?",
      "type": "n8n-nodes-base.if",
      "position": [
        2048,
        168
      ]
    },
    {
      "id": "eacd6b8b-5fe8-4bf8-af38-fed3176b1371",
      "name": "Remediation Strategy Planner",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2272,
        16
      ]
    },
    {
      "id": "be6f9902-a8c6-4f03-8ad5-54924ef2b057",
      "name": "OpenAI GPT-4 Remediation",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2280,
        240
      ]
    },
    {
      "id": "3e3d1355-1a12-4f5a-b8af-0bf73f8930c6",
      "name": "Remediation Plan Output Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2408,
        240
      ]
    },
    {
      "id": "6df27416-ef43-470e-858c-7aced401f8e9",
      "name": "Execute Remediation Action",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2624,
        120
      ]
    },
    {
      "id": "974ceacc-e5ad-4769-bf24-631b4806823e",
      "name": "Wait for Remediation Effect",
      "type": "n8n-nodes-base.wait",
      "position": [
        2848,
        120
      ]
    },
    {
      "id": "3d41182e-5f0b-4b0c-b034-c1a368e5ea53",
      "name": "Verify Remediation Success",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3072,
        120
      ]
    },
    {
      "id": "7a18f204-a5aa-47af-a861-f2c47f51ee6e",
      "name": "Remediation Successful?",
      "type": "n8n-nodes-base.if",
      "position": [
        3360,
        120
      ]
    },
    {
      "id": "d2ad0e7d-d679-4b1a-b81e-e11c8d1c727b",
      "name": "Execute Rollback",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3648,
        48
      ]
    },
    {
      "id": "6e8f456b-1ef0-4ecd-b008-ff842e95c3e5",
      "name": "Request Manual Approval",
      "type": "n8n-nodes-base.slack",
      "position": [
        2336,
        416
      ]
    },
    {
      "id": "daef6e2b-b6de-4826-aa17-6382d68b846e",
      "name": "Approval Response Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1760,
        628
      ]
    },
    {
      "id": "41af1ba5-86c6-4786-902e-ae27ac025136",
      "name": "Approval Granted?",
      "type": "n8n-nodes-base.if",
      "position": [
        2048,
        628
      ]
    },
    {
      "id": "a4312f35-8723-4f83-93a3-4491e9fbd85a",
      "name": "Escalation Diagnostics Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3344,
        640
      ]
    },
    {
      "id": "357acb61-2e07-4983-a860-966d0cd01449",
      "name": "OpenAI GPT-4 Diagnostics",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3328,
        848
      ]
    },
    {
      "id": "6ae166d2-c60f-4e35-8277-2b7372961183",
      "name": "Diagnostics Output Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3504,
        848
      ]
    },
    {
      "id": "f085d97f-8345-4a3d-945e-3d883ea3d7c1",
      "name": "Escalate to On-Call Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        3648,
        628
      ]
    },
    {
      "id": "7e849d13-8e3e-4908-a0b8-88742ede9119",
      "name": "Store Incident in Knowledge Graph",
      "type": "n8n-nodes-base.postgres",
      "position": [
        4160,
        192
      ]
    },
    {
      "id": "e37e391c-66db-40f5-b80b-e9773df3869d",
      "name": "Incident Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePGVector",
      "position": [
        4096,
        488
      ]
    },
    {
      "id": "8323ef1c-545d-4e04-944b-55cb889df0b6",
      "name": "OpenAI Embeddings",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        4104,
        712
      ]
    },
    {
      "id": "e7b1abf9-83ff-4038-9e48-5c67ef33c7b6",
      "name": "Incident Document Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        4232,
        712
      ]
    },
    {
      "id": "c2e76468-8c81-4086-958a-7feb72d8b83c",
      "name": "Post-Mortem Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4448,
        488
      ]
    },
    {
      "id": "3be3e95a-6da9-4c66-bcd2-2f2acbfa879c",
      "name": "OpenAI GPT-4 Post-Mortem",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        4456,
        712
      ]
    },
    {
      "id": "dd941f9b-950c-4502-a92d-9bc1fdf58f4c",
      "name": "Post-Mortem Output Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        4584,
        712
      ]
    },
    {
      "id": "9e72c4d2-5a55-444c-a820-294ed897c932",
      "name": "Update Learning Database",
      "type": "n8n-nodes-base.postgres",
      "position": [
        4800,
        488
      ]
    },
    {
      "id": "ad97eb87-80d0-42ae-ac56-2588ae097e09",
      "name": "Send Post-Mortem Report",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        5024,
        488
      ]
    },
    {
      "id": "e8364ef8-1537-483d-8add-4ff9e3d9d117",
      "name": "Merge Remediation Paths",
      "type": "n8n-nodes-base.merge",
      "position": [
        3872,
        204
      ]
    },
    {
      "id": "92dcb559-4ca9-480e-871e-ce194d9ef952",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        -576
      ],
      "parameters": {
        "width": 528,
        "height": 352,
        "content": "## Prerequisites\nNVIDIA NIM API access, OpenAI API key, Anthropic API credentials \n## Use Cases\nCustomer support automation with tiered response complexity \n## Customization\nAdjust AI model selection "
      }
    },
    {
      "id": "be39b0ce-4162-487e-b9df-8486f106f090",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        -464
      ],
      "parameters": {
        "width": 528,
        "height": 224,
        "content": "## Setup Steps\n1. Configure NVIDIA API credentials with appropriate model access \n2. Add OpenAI API key with GPT-4 access for general query handling\n3. Set up Anthropic Claude API credentials for comp"
      }
    },
    {
      "id": "49f68125-4bd1-4039-b4b1-26a8ec782f43",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -448
      ],
      "parameters": {
        "width": 896,
        "height": 224,
        "content": "## How It Works\nThis workflow automates end-to-end customer journey management by intelligently routing queries through multiple AI models (OpenAI, Claude) based on complexity and context. Designed fo"
      }
    },
    {
      "id": "9e2c517e-0641-4beb-a8ff-2e38106db616",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3296,
        -96
      ],
      "parameters": {
        "width": 2048,
        "height": 1200,
        "content": "## Response Delivery & Logging\n**Why:** Sends formatted responses via preferred channels, logs interactions to Google Sheets for analytics, and triggers follow-up sequences based on customer engagemen"
      }
    },
    {
      "id": "f39d10db-d7df-45c1-82ea-6d6c3efd57c1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        -96
      ],
      "parameters": {
        "width": 1008,
        "height": 1120,
        "content": "\n## Multi-Model Response Generation\n**Why:** Leverages specialized AI capabilities for technical depth, OpenAI for conversational flow, Claude for nuanced reasoning—producing contextually appropriate "
      }
    },
    {
      "id": "497c81ab-e8c0-437a-9f22-b457c1c1f020",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        -96
      ],
      "parameters": {
        "width": 1760,
        "height": 896,
        "content": "## Intent Classification & Routing\n**Why:** Uses AI to analyze query complexity, sentiment, and type, then intelligently routes to the most suitable model, ensuring cost-effective and accurate respons"
      }
    },
    {
      "id": "9a2061eb-8de8-45ff-af16-69d91bd7b2bb",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        -96
      ],
      "parameters": {
        "width": 880,
        "height": 1184,
        "content": "## Trigger & Data Capture\n**Why:** Initiates workflow from multiple sources (email, webhook, form submission) and normalizes customer data for consistent processing across channels."
      }
    }
  ],
  "connections": {
    "OpenAI GPT-4": {
      "ai_languageModel": [
        [
          {
            "node": "Root Cause Correlation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Logs Data": {
      "main": [
        [
          {
            "node": "Merge Observability Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Execute Rollback": {
      "main": [
        [
          {
            "node": "Merge Remediation Paths",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Approval Granted?": {
      "main": [
        [
          {
            "node": "Remediation Strategy Planner",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Escalation Diagnostics Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Alerts Data": {
      "main": [
        [
          {
            "node": "Merge Observability Data",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Fetch Traces Data": {
      "main": [
        [
          {
            "node": "Merge Observability Data",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "OpenAI Embeddings": {
      "ai_embedding": [
        [
          {
            "node": "Incident Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Metrics Data": {
      "main": [
        [
          {
            "node": "Merge Observability Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Incident Predicted?": {
      "main": [
        [
          {
            "node": "Root Cause Correlation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Incident Vector Store": {
      "main": [
        [
          {
            "node": "Post-Mortem Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post-Mortem Generator": {
      "main": [
        [
          {
            "node": "Update Learning Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto-Remediation Safe?": {
      "main": [
        [
          {
            "node": "Remediation Strategy Planner",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Request Manual Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blast Radius Evaluator": {
      "main": [
        [
          {
            "node": "Auto-Remediation Safe?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Metrics Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Logs Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Traces Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Alerts Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Remediation Paths": {
      "main": [
        [
          {
            "node": "Store Incident in Knowledge Graph",
            "type": "main",
            "index": 0
          },
          {
            "node": "Incident Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remediation Successful?": {
      "main": [
        [
          {
            "node": "Merge Remediation Paths",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Rollback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anomaly Detection Engine": {
      "main": [
        [
          {
            "node": "Temporal Forecasting Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Escalate to On-Call Team": {
      "main": [
        [
          {
            "node": "Merge Remediation Paths",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Incident Document Loader": {
      "ai_document": [
        [
          {
            "node": "Incident Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Merge Observability Data": {
      "main": [
        [
          {
            "node": "Anomaly Detection Engine",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Diagnostics": {
      "ai_languageModel": [
        [
          {
            "node": "Escalation Diagnostics Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Post-Mortem": {
      "ai_languageModel": [
        [
          {
            "node": "Post-Mortem Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Remediation": {
      "ai_languageModel": [
        [
          {
            "node": "Remediation Strategy Planner",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Root Cause Output Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Root Cause Correlation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Update Learning Database": {
      "main": [
        [
          {
            "node": "Send Post-Mortem Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Approval Response Webhook": {
      "main": [
        [
          {
            "node": "Approval Granted?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Causal Inference Analysis": {
      "main": [
        [
          {
            "node": "Incident Predicted?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Diagnostics Output Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Escalation Diagnostics Generator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Blast Radius": {
      "ai_languageModel": [
        [
          {
            "node": "Blast Radius Evaluator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Post-Mortem Output Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Post-Mortem Generator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Blast Radius Output Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Blast Radius Evaluator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Execute Remediation Action": {
      "main": [
        [
          {
            "node": "Wait for Remediation Effect",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Temporal Forecasting Model": {
      "main": [
        [
          {
            "node": "Causal Inference Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify Remediation Success": {
      "main": [
        [
          {
            "node": "Remediation Successful?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Metrics Collection Schedule": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Remediation Effect": {
      "main": [
        [
          {
            "node": "Verify Remediation Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remediation Strategy Planner": {
      "main": [
        [
          {
            "node": "Execute Remediation Action",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Root Cause Correlation Agent": {
      "main": [
        [
          {
            "node": "Blast Radius Evaluator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remediation Plan Output Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Remediation Strategy Planner",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Escalation Diagnostics Generator": {
      "main": [
        [
          {
            "node": "Escalate to On-Call Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}