AutomationFlowsAI & RAG › Autonomous Agent - Incident Response - Submit Incident

Autonomous Agent - Incident Response - Submit Incident

Autonomous Agent - Incident Response - Submit Incident. Uses n8n-nodes-autonomous-agent. Webhook trigger; 5 nodes.

Webhook trigger★★★★☆ complexity5 nodesN8N Nodes Autonomous Agent
AI & RAG Trigger: Webhook Nodes: 5 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Autonomous Agent - Incident Response - Submit Incident",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "autonomous-agent/incidents",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "61b130a4-2cae-4ef3-8063-f831ef3cded1",
      "name": "Incident Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -800,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "const body = $json.body ?? $json;\nconst required = ['incident_id','title','description','severity','environment','service','reported_at','observations'];\nconst missing = required.filter((key) => body[key] === undefined || body[key] === null || body[key] === '' || (key === 'observations' && !Array.isArray(body[key])));\nif (missing.length) throw new Error(`Missing or invalid required fields: ${missing.join(', ')}`);\nif (!['sev1','sev2','sev3','sev4'].includes(String(body.severity).toLowerCase())) throw new Error('severity must be sev1, sev2, sev3, or sev4');\nif (!['production','staging','development'].includes(String(body.environment).toLowerCase())) throw new Error('environment must be production, staging, or development');\nif (!body.observations.length) throw new Error('observations must contain at least one timestamped observation');\nconst request = {...body, severity:String(body.severity).toLowerCase(), environment:String(body.environment).toLowerCase()};\nconst correlation_id = String(body.correlation_id ?? body.request_id ?? body.incident_id);\nreturn [{json:{request, correlation_id, workflow_key:'incident-response'}}];"
      },
      "id": "7e1f2eac-b90c-4399-8d13-14586b09c485",
      "name": "Validate and Normalize Request",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -560,
        300
      ]
    },
    {
      "parameters": {
        "operation": "create",
        "task": "=Investigate {{$json.request.severity.toUpperCase()}} incident {{$json.request.incident_id}} affecting {{$json.request.service}}. Build an evidence-based timeline and impact assessment, rank root-cause hypotheses, then produce an approval-aware containment, remediation, validation, rollback, and stakeholder communication plan. Never execute production changes.",
        "mode": "supervised",
        "contextInputMode": "json",
        "contextJson": "={{ { request: $json.request, capabilities: ['incident-root-cause-analysis','production-remediation-plan'], orchestration: { source: 'n8n', correlation_id: $json.correlation_id, workflow: $json.workflow_key, callback_mode: 'status-webhook' } } }}",
        "includeDesiredOutput": true,
        "desiredOutputFormat": "json",
        "desiredOutputSchema": "{\n  \"type\": \"object\",\n  \"required\": [\n    \"incident_summary\",\n    \"impact_assessment\",\n    \"timeline\",\n    \"probable_causes\",\n    \"evidence_gaps\",\n    \"recommended_strategy\",\n    \"containment\",\n    \"remediation\",\n    \"validation\",\n    \"rollback\",\n    \"stakeholder_communication\"\n  ],\n  \"properties\": {\n    \"incident_summary\": {\n      \"type\": \"string\"\n    },\n    \"impact_assessment\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"scope\",\n        \"customer_impact\",\n        \"business_impact\"\n      ],\n      \"properties\": {\n        \"scope\": {\n          \"type\": \"string\"\n        },\n        \"customer_impact\": {\n          \"type\": \"string\"\n        },\n        \"business_impact\": {\n          \"type\": \"string\"\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"timeline\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"timestamp\",\n          \"event\",\n          \"source\"\n        ],\n        \"properties\": {\n          \"timestamp\": {\n            \"type\": \"string\"\n          },\n          \"event\": {\n            \"type\": \"string\"\n          },\n          \"source\": {\n            \"type\": \"string\"\n          }\n        },\n        \"additionalProperties\": false\n      }\n    },\n    \"probable_causes\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"rank\",\n          \"cause\",\n          \"confidence\",\n          \"reasoning\",\n          \"supporting_evidence\",\n          \"contradicting_evidence\"\n        ],\n        \"properties\": {\n          \"rank\": {\n            \"type\": \"integer\",\n            \"minimum\": 1\n          },\n          \"cause\": {\n            \"type\": \"string\"\n          },\n          \"confidence\": {\n            \"type\": \"number\",\n            \"minimum\": 0,\n            \"maximum\": 1\n          },\n          \"reasoning\": {\n            \"type\": \"string\"\n          },\n          \"supporting_evidence\": {\n            \"type\": \"array\",\n            \"items\": {\n              \"type\": \"string\"\n            }\n          },\n          \"contradicting_evidence\": {\n            \"type\": \"array\",\n            \"items\": {\n              \"type\": \"string\"\n            }\n          }\n        },\n        \"additionalProperties\": false\n      }\n    },\n    \"evidence_gaps\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"recommended_strategy\": {\n      \"type\": \"string\"\n    },\n    \"containment\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"priority\",\n          \"action\",\n          \"reason\",\n          \"risk\",\n          \"requires_approval\"\n        ],\n        \"properties\": {\n          \"priority\": {\n            \"type\": \"integer\",\n            \"minimum\": 1\n          },\n          \"action\": {\n            \"type\": \"string\"\n          },\n          \"reason\": {\n            \"type\": \"string\"\n          },\n          \"risk\": {\n            \"type\": \"string\"\n          },\n          \"requires_approval\": {\n            \"type\": \"boolean\"\n          }\n        },\n        \"additionalProperties\": false\n      }\n    },\n    \"remediation\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"step\",\n          \"action\",\n          \"owner_role\",\n          \"expected_result\",\n          \"risk\",\n          \"requires_approval\"\n        ],\n        \"properties\": {\n          \"step\": {\n            \"type\": \"integer\",\n            \"minimum\": 1\n          },\n          \"action\": {\n            \"type\": \"string\"\n          },\n          \"owner_role\": {\n            \"type\": \"string\"\n          },\n          \"expected_result\": {\n            \"type\": \"string\"\n          },\n          \"risk\": {\n            \"type\": \"string\"\n          },\n          \"requires_approval\": {\n            \"type\": \"boolean\"\n          }\n        },\n        \"additionalProperties\": false\n      }\n    },\n    \"validation\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"check\",\n          \"success_criteria\",\n          \"observation_window\",\n          \"failure_action\"\n        ],\n        \"properties\": {\n          \"check\": {\n            \"type\": \"string\"\n          },\n          \"success_criteria\": {\n            \"type\": \"string\"\n          },\n          \"observation_window\": {\n            \"type\": \"string\"\n          },\n          \"failure_action\": {\n            \"type\": \"string\"\n          }\n        },\n        \"additionalProperties\": false\n      }\n    },\n    \"rollback\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"trigger\",\n          \"action\",\n          \"validation\"\n        ],\n        \"properties\": {\n          \"trigger\": {\n            \"type\": \"string\"\n          },\n          \"action\": {\n            \"type\": \"string\"\n          },\n          \"validation\": {\n            \"type\": \"string\"\n          }\n        },\n        \"additionalProperties\": false\n      }\n    },\n    \"stakeholder_communication\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"audience\",\n          \"message\",\n          \"channel\",\n          \"timing\"\n        ],\n        \"properties\": {\n          \"audience\": {\n            \"type\": \"string\"\n          },\n          \"message\": {\n            \"type\": \"string\"\n          },\n          \"channel\": {\n            \"type\": \"string\"\n          },\n          \"timing\": {\n            \"type\": \"string\"\n          }\n        },\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"additionalProperties\": false\n}",
        "desiredOutputMediaType": "application/json",
        "includeConstraints": true,
        "deadlineSeconds": 900,
        "maximumAgentCalls": 15,
        "maximumToolCalls": 20,
        "allowedCapabilities": "incident-root-cause-analysis,production-remediation-plan,task-understanding,dynamic-planning,response-composition,result-evaluation,structured-generation,correction-planning",
        "deniedCapabilities": "",
        "allowedTools": "",
        "deniedTools": "",
        "requireApprovalFor": "production-remediation-plan",
        "metadataInputMode": "json",
        "metadataJson": "={{ { workflow: $json.workflow_key, correlation_id: $json.correlation_id, requested_by: $json.request.requested_by ?? null } }}",
        "idempotencyKeyMode": "manual",
        "idempotencyKey": "={{$json.workflow_key + ':' + $json.correlation_id}}",
        "waitUntilComplete": false,
        "retryTemporaryErrors": true
      },
      "id": "156375dc-69b7-4232-968f-2658b9b3ba4f",
      "name": "Create Autonomous Execution",
      "type": "n8n-nodes-autonomous-agent.autonomousAgentExecution",
      "typeVersion": 1,
      "position": [
        -300,
        300
      ],
      "credentials": {
        "autonomousAgentApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const execution = $('Create Autonomous Execution').item.json;\nconst input = $('Validate and Normalize Request').item.json;\nreturn [{json:{\n  accepted: true,\n  workflow: input.workflow_key,\n  correlation_id: input.correlation_id,\n  execution_id: execution.execution_id,\n  status: execution.status ?? 'accepted',\n  message: 'Incident analysis was accepted for asynchronous processing.',\n  links: {\n    status: `/webhook/autonomous-agent/incident-response/executions/${execution.execution_id}`,\n    approval: '/webhook/autonomous-agent/incident-response/executions/approval',\n    artifact_template: `/webhook/autonomous-agent/incident-response/executions/${execution.execution_id}/artifacts/{artifactId}`\n  }\n}}];"
      },
      "id": "36ffd910-1c17-4427-8c58-8ceabc14ed0c",
      "name": "Build Workflow Response",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -40,
        300
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{$json}}",
        "options": {
          "responseCode": 202
        }
      },
      "id": "cfc4ec25-cd1f-4ed5-9e99-a97e8880493f",
      "name": "Respond to Request",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        220,
        300
      ]
    }
  ],
  "connections": {
    "Incident Webhook": {
      "main": [
        [
          {
            "node": "Validate and Normalize Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate and Normalize Request": {
      "main": [
        [
          {
            "node": "Create Autonomous Execution",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Autonomous Execution": {
      "main": [
        [
          {
            "node": "Build Workflow Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Workflow Response": {
      "main": [
        [
          {
            "node": "Respond to Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2a66f39e-bb4a-4a77-9e0c-02ce1306522c",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Autonomous Agent - Incident Response - Submit Incident. Uses n8n-nodes-autonomous-agent. Webhook trigger; 5 nodes.

Source: https://github.com/MustiSquare/n8n-with-autonomous-agent-platform-demo/blob/main/workflows/01-incident-response/execution/domain-execution.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Autonomous Agent - Incident Response - Execution Status. Uses n8n-nodes-autonomous-agent. Webhook trigger; 10 nodes.

N8N Nodes Autonomous Agent
AI & RAG

Autonomous Agent - Execute Autonomous Software Development. Uses n8n-nodes-autonomous-agent. Webhook trigger; 10 nodes.

N8N Nodes Autonomous Agent
AI & RAG

Autonomous Agent - Incident Response - Approval and Continuation. Uses n8n-nodes-autonomous-agent. Webhook trigger; 9 nodes.

N8N Nodes Autonomous Agent
AI & RAG

Autonomous Agent - Autonomous Software Development - Approval and Continuation. Uses n8n-nodes-autonomous-agent. Webhook trigger; 9 nodes.

N8N Nodes Autonomous Agent
AI & RAG

Autonomous Agent - Document Processing - Approval and Continuation. Uses n8n-nodes-autonomous-agent. Webhook trigger; 9 nodes.

N8N Nodes Autonomous Agent