{
  "updatedAt": "2026-04-12T17:44:57.063Z",
  "createdAt": "2026-04-12T17:25:19.417Z",
  "id": "K4Ss7XgFOPRZfepM",
  "name": "\u26a0\ufe0f F2G Error Handler",
  "description": null,
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {},
      "name": "On Workflow Error",
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        200,
        300
      ],
      "id": "61e971bb-bcf3-4a73-bbcf-dff3c5fe508d"
    },
    {
      "parameters": {
        "jsCode": "\nconst error = $json;\nconst now = new Date().toISOString().slice(0, 19).replace('T', ' ');\nconst wfName = error.workflow?.name || 'Unknown';\nconst wfId = error.workflow?.id || '?';\nconst errMsg = error.execution?.error?.message || 'No error message';\nconst execId = error.execution?.id || '?';\nconst nodeName = error.execution?.error?.node?.name || '?';\n\nconst content = `**\u26a0\ufe0f F2G Workflow Error**\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n**Workflow:** ${wfName} (${wfId})\n**Node:** ${nodeName}\n**Error:** ${errMsg.slice(0, 500)}\n**Execution:** ${execId}\n**Time:** ${now}\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\nCheck: http://localhost:5678/workflow/${wfId}/executions/${execId}`;\n\nreturn [{json: {content: content.slice(0, 1950)}}];\n"
      },
      "name": "Format Error Alert",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        450,
        300
      ],
      "id": "c8cbf7bc-4f17-42de-a3cf-f6a4ea285460"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://discordapp.com/api/webhooks/1492897305085477026/QVXVQdN6LOFxVkX6PenVTtHtdAhjho_UIK348w6fMgub2C1tJby7vme0n0pCV47ynEdk",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\"content\":{{ JSON.stringify($json.content) }}}",
        "options": {}
      },
      "name": "Alert Discord",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        700,
        300
      ],
      "id": "3dee9dfe-2085-4895-8076-6e108c3949b0"
    }
  ],
  "connections": {
    "On Workflow Error": {
      "main": [
        [
          {
            "node": "Format Error Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Error Alert": {
      "main": [
        [
          {
            "node": "Alert Discord",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "callerPolicy": "workflowsFromSameOwner",
    "availableInMCP": true,
    "binaryMode": "separate",
    "timeSavedMode": "fixed",
    "errorWorkflow": "K4Ss7XgFOPRZfepM"
  },
  "staticData": null,
  "meta": null,
  "versionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
  "activeVersionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
  "versionCounter": 11,
  "triggerCount": 0,
  "shared": [
    {
      "updatedAt": "2026-04-12T17:25:19.421Z",
      "createdAt": "2026-04-12T17:25:19.421Z",
      "role": "workflow:owner",
      "workflowId": "K4Ss7XgFOPRZfepM",
      "projectId": "vB3IpiULx2Yon8YS",
      "project": {
        "updatedAt": "2026-04-12T13:04:13.020Z",
        "createdAt": "2026-04-12T13:02:01.729Z",
        "id": "vB3IpiULx2Yon8YS",
        "name": "Boutchouang NATHAN <boutchouangelija@gmail.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "876988b2-cfb7-489a-b244-b36cdcf76150"
      }
    }
  ],
  "tags": [],
  "activeVersion": {
    "updatedAt": "2026-04-12T17:25:19.437Z",
    "createdAt": "2026-04-12T17:25:19.437Z",
    "versionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
    "workflowId": "K4Ss7XgFOPRZfepM",
    "nodes": [
      {
        "parameters": {},
        "name": "On Workflow Error",
        "type": "n8n-nodes-base.errorTrigger",
        "typeVersion": 1,
        "position": [
          200,
          300
        ],
        "id": "61e971bb-bcf3-4a73-bbcf-dff3c5fe508d"
      },
      {
        "parameters": {
          "jsCode": "\nconst error = $json;\nconst now = new Date().toISOString().slice(0, 19).replace('T', ' ');\nconst wfName = error.workflow?.name || 'Unknown';\nconst wfId = error.workflow?.id || '?';\nconst errMsg = error.execution?.error?.message || 'No error message';\nconst execId = error.execution?.id || '?';\nconst nodeName = error.execution?.error?.node?.name || '?';\n\nconst content = `**\u26a0\ufe0f F2G Workflow Error**\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n**Workflow:** ${wfName} (${wfId})\n**Node:** ${nodeName}\n**Error:** ${errMsg.slice(0, 500)}\n**Execution:** ${execId}\n**Time:** ${now}\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\nCheck: http://localhost:5678/workflow/${wfId}/executions/${execId}`;\n\nreturn [{json: {content: content.slice(0, 1950)}}];\n"
        },
        "name": "Format Error Alert",
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          450,
          300
        ],
        "id": "c8cbf7bc-4f17-42de-a3cf-f6a4ea285460"
      },
      {
        "parameters": {
          "method": "POST",
          "url": "https://discordapp.com/api/webhooks/1492897305085477026/QVXVQdN6LOFxVkX6PenVTtHtdAhjho_UIK348w6fMgub2C1tJby7vme0n0pCV47ynEdk",
          "sendBody": true,
          "specifyBody": "json",
          "jsonBody": "={\"content\":{{ JSON.stringify($json.content) }}}",
          "options": {}
        },
        "name": "Alert Discord",
        "type": "n8n-nodes-base.httpRequest",
        "typeVersion": 4.2,
        "position": [
          700,
          300
        ],
        "id": "3dee9dfe-2085-4895-8076-6e108c3949b0"
      }
    ],
    "connections": {
      "On Workflow Error": {
        "main": [
          [
            {
              "node": "Format Error Alert",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Format Error Alert": {
        "main": [
          [
            {
              "node": "Alert Discord",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "authors": "Boutchouang NATHAN",
    "name": null,
    "description": null,
    "autosaved": false,
    "workflowPublishHistory": [
      {
        "createdAt": "2026-04-12T17:25:19.497Z",
        "id": 7,
        "workflowId": "K4Ss7XgFOPRZfepM",
        "versionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
        "event": "activated",
        "userId": "876988b2-cfb7-489a-b244-b36cdcf76150"
      },
      {
        "createdAt": "2026-04-12T17:30:50.704Z",
        "id": 17,
        "workflowId": "K4Ss7XgFOPRZfepM",
        "versionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
        "event": "activated",
        "userId": "876988b2-cfb7-489a-b244-b36cdcf76150"
      },
      {
        "createdAt": "2026-04-12T17:44:57.127Z",
        "id": 30,
        "workflowId": "K4Ss7XgFOPRZfepM",
        "versionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
        "event": "activated",
        "userId": "876988b2-cfb7-489a-b244-b36cdcf76150"
      },
      {
        "createdAt": "2026-04-12T17:30:50.682Z",
        "id": 16,
        "workflowId": "K4Ss7XgFOPRZfepM",
        "versionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
        "event": "deactivated",
        "userId": "876988b2-cfb7-489a-b244-b36cdcf76150"
      },
      {
        "createdAt": "2026-04-12T17:44:57.106Z",
        "id": 29,
        "workflowId": "K4Ss7XgFOPRZfepM",
        "versionId": "b533b0fd-4808-4587-9627-32b5cb4b51b2",
        "event": "deactivated",
        "userId": "876988b2-cfb7-489a-b244-b36cdcf76150"
      }
    ]
  }
}