This workflow follows the Emailsend → 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 →
{
"name": "Auto-Healing Alert Mechanism",
"nodes": [
{
"parameters": {},
"id": "e0a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f51",
"name": "Start Test",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
200
]
},
{
"parameters": {
"requestMethod": "GET",
"url": "https://api.github.com/this-endpoint-is-broken-123",
"options": {
"ignoreResponseCode": true
}
},
"id": "d0a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f52",
"name": "Call Broken API",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
220,
200
],
"settings": {
"continueOnFail": true
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.message }}",
"operation": "equal",
"value2": "Not Found"
}
]
}
},
"id": "c0a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f53",
"name": "Check For Failure",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
440,
200
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "title",
"value": "API Failure Detected"
},
{
"name": "errorMessage",
"value": "={{ $json.message }}"
},
{
"name": "endpoint",
"value": "https://api.github.com/this-endpoint-is-broken-123"
},
{
"name": "timestamp",
"value": "={{ $now }}"
},
{
"name": "severity",
"value": "HIGH"
}
],
"number": [
{
"name": "statusCode",
"value": "={{ $json.status }}"
}
]
},
"options": {}
},
"id": "b0a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f54",
"name": "Extract Error Details",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
660,
200
]
},
{
"parameters": {
"keepOnlySet": false,
"values": {
"string": [
{
"name": "formattedMessage",
"value": "={{ '\ud83d\udea8 **API Failure Detected**\\n**Endpoint:** ' + $json.endpoint + '\\n**Error:** ' + $json.errorMessage + '\\n**Status Code:** ' + $json.statusCode + '\\n**Time:** ' + $json.timestamp + '\\n**Action Required:** Immediate investigation needed' }}"
}
]
},
"options": {}
},
"id": "a0a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f55",
"name": "Format Alert Message",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
880,
200
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "YOUR_DISCORD_WEBHOOK_URL_HERE",
"jsonParameters": true,
"options": {},
"bodyParametersJson": "={{ JSON.stringify({ embeds: [ { title: \"Production Alert\", description: $json.formattedMessage, color: 16711680 } ] }) }}"
},
"id": "90a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f56",
"name": "Send Discord Alert",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
1100,
100
]
},
{
"parameters": {
"fromEmail": "YOUR_SENDER_EMAIL_HERE",
"toEmail": "YOUR_RECEIVER_EMAIL_HERE",
"subject": "\ud83d\udea8 Production Alert: API Failure",
"text": "={{ $json.formattedMessage }}",
"options": {}
},
"id": "80a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f57",
"name": "Send Email Alert",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 1,
"position": [
1100,
300
]
},
{
"parameters": {},
"id": "70a0a550-8b1b-4d7a-9f5a-3f7c4f1c1f58",
"name": "Global Error Catcher",
"type": "n8n-nodes-base.errorTrigger",
"typeVersion": 1,
"position": [
440,
400
]
}
],
"connections": {
"Start Test": {
"main": [
[
{
"node": "Call Broken API",
"type": "main",
"index": 0
}
]
]
},
"Call Broken API": {
"main": [
[
{
"node": "Check For Failure",
"type": "main",
"index": 0
}
]
]
},
"Check For Failure": {
"main": [
[
{
"node": "Extract Error Details",
"type": "main",
"index": 0
}
]
]
},
"Extract Error Details": {
"main": [
[
{
"node": "Format Alert Message",
"type": "main",
"index": 0
}
]
]
},
"Format Alert Message": {
"main": [
[
{
"node": "Send Discord Alert",
"type": "main",
"index": 0
},
{
"node": "Send Email Alert",
"type": "main",
"index": 0
}
]
]
},
"Global Error Catcher": {
"main": [
[
{
"node": "Extract Error Details",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Auto-Healing Alert Mechanism. Uses httpRequest, emailSend, errorTrigger. Event-driven trigger; 8 nodes.
Source: https://gist.github.com/KushagrIttan/088957c70f98445b80d4265875372685 — 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.
Global Error Handler - Kimi Auto-Heal. Uses errorTrigger, httpRequest, emailSend. Event-driven trigger; 4 nodes.
The Sora 2 API allows seamless generation of CGI ads, turning text prompts into stunning videos. This workflow automates the entire process from video generation to upload, notification, and file shar
Say goodbye to messy JSON exports. Treat your n8n automations like real software with a built-in CI/CD pipeline.
Storyboard I2V Pipeline (17 shots) with Retry/Wait/State/Notify. Uses httpTrigger, httpRequest, emailSend. Event-driven trigger; 28 nodes.
Create CGI ads effortlessly by integrating the Google Veo3 API for video generation and uploading to Google Drive with seamless email notifications. On form submission: Triggers the workflow when a fo