{
 "name": "[노드 한 장] Error Trigger · 에러 받기",
 "nodes": [
  {
   "id": "b1",
   "name": "Error Trigger",
   "type": "n8n-nodes-base.errorTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "b2",
   "name": "Write alert text",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    260,
    0
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "a1",
       "name": "workflow",
       "type": "string",
       "value": "={{ $json.workflow.name }}"
      },
      {
       "id": "a2",
       "name": "failed_node",
       "type": "string",
       "value": "={{ $json.execution.lastNodeExecuted }}"
      },
      {
       "id": "a3",
       "name": "error",
       "type": "string",
       "value": "={{ $json.execution.error.message }}"
      },
      {
       "id": "a4",
       "name": "execution_id",
       "type": "string",
       "value": "={{ $json.execution.id }}"
      },
      {
       "id": "a5",
       "name": "alert",
       "type": "string",
       "value": "=🚨 '{{ $json.workflow.name }}' 실패\n노드: {{ $json.execution.lastNodeExecuted }}\n에러: {{ $json.execution.error.message }}\n실행 #{{ $json.execution.id }}"
      }
     ]
    },
    "options": {}
   }
  }
 ],
 "connections": {
  "Error Trigger": {
   "main": [
    [
     {
      "node": "Write alert text",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}