This workflow follows the Error Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.
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 →
{
"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"
}
]
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
⚠️ F2G Error Handler. Uses errorTrigger, httpRequest. Event-driven trigger; 3 nodes.
Source: https://github.com/BOUTCHOUANG1/n8n-workflow/blob/619f3562fcbdf23d05d3e3fe3588e73a80c0aa31/n8n-workflows/f2g-error-handler.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Say goodbye to messy JSON exports. Treat your n8n automations like real software with a built-in CI/CD pipeline.
WB-02: Auto-Assign Officer. Uses executeWorkflowTrigger, httpRequest, errorTrigger. Event-driven trigger; 8 nodes.
Global Error Handler - Kimi Auto-Heal. Uses errorTrigger, httpRequest, emailSend. Event-driven trigger; 4 nodes.
Global Error Handler → AgeniusDesk. Uses errorTrigger, httpRequest. Event-driven trigger; 4 nodes.
PulseMosaic-v1.1-Error. Uses errorTrigger, httpRequest. Event-driven trigger; 3 nodes.