Notificador de errores - v1 - sin base de datos
Este es unDevOpsflujo de automatización del dominio deautomatización que contiene 13 nodos.Utiliza principalmente nodos como Code, Gmail, Slack, Discord, Telegram. Monitoreo centralizado de errores y alertas a través de Telegram, Slack y otras herramientas de comunicación
- •Cuenta de Google y credenciales de API de Gmail
- •Bot Token de Slack o URL de Webhook
- •Bot Token de Discord o Webhook
- •Bot Token de Telegram
Nodos utilizados (13)
Categoría
{
"id": "61Flju0VYVpEMHzD",
"name": "Error_Notifier-v1-no_db",
"nodes": [
{
"id": "06623d7e-80a2-4f7d-86d8-99eb139760a9",
"name": "Nota Adhesiva1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
180
],
"parameters": {
"color": 6,
"width": 660,
"height": 80,
"content": "# ERROR NOTIFIER\n\n"
},
"typeVersion": 1
},
{
"id": "eb9762e3-1c49-4c18-aab0-ce04bb54d3c5",
"name": "Disparador de Error",
"type": "n8n-nodes-base.errorTrigger",
"disabled": true,
"position": [
-440,
-120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9925c654-17de-47c7-83b1-0b062c86be90",
"name": "Cuando se Ejecuta por Otro Flujo de Trabajo",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-440,
300
],
"parameters": {
"inputSource": "passthrough"
},
"typeVersion": 1.1
},
{
"id": "d8ad4b78-3387-44ce-894b-4c4c21863f1c",
"name": "Nota Adhesiva2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
-220
],
"parameters": {
"width": 440,
"height": 300,
"content": "# How it works\nThis workflow automatically sends notifications when any other workflow fails.\n\nAlgorithm:\n- Create a workflow with \"**ERROR NOTIFIER**\".\n- Copy and paste \"**ERROR ALERTER**\" into your workflows and activate.\n- Add credentials using your preferred channel.\n\nPlease check out my other items on [gumroad](https://boanse.gumroad.com/?section=k_Sn6LcT_dzJFnp5jmsM5A%3D%3D)\nYou might also like something else☺️"
},
"typeVersion": 1
},
{
"id": "e57e084d-b215-4666-964c-01c2b17984c7",
"name": "Ejecutar Flujo de Trabajo de Alerta Bag",
"type": "n8n-nodes-base.executeWorkflow",
"disabled": true,
"position": [
-220,
-120
],
"parameters": {
"options": {},
"workflowId": {
"__rl": true,
"mode": "list",
"value": "61Flju0VYVpEMHzD",
"cachedResultName": "Error_Notifier-v1-no_db"
},
"workflowInputs": {
"value": {},
"schema": [],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": true
}
},
"typeVersion": 1.2
},
{
"id": "51276cbe-9156-4b88-938f-95919c20fd2f",
"name": "Preparar Mensajes para Notificar",
"type": "n8n-nodes-base.code",
"position": [
-220,
300
],
"parameters": {
"jsCode": "// Get data\nconst errorData = $input.first().json;\n\n\n// Get fallback\nconst execution = errorData.execution || {};\nconst workflow = errorData.workflow || {};\nconst error = execution.error || {};\n\n\nconst workflowName = workflow.name || 'Unknown';\n\nconst nodeName = execution?.lastNodeExecuted|| 'Unknown';\nconst errorMessage = error.message || '-';\nconst errorDescription = error?.context?.messageTemplate || 'No description';\nconst timestamp = error.timestamp ? new Date(error.timestamp).toLocaleString('ru-RU') : 'Unknown';\n\nconst executionUrl = execution.url || '#';\nconst executionId = execution.id || 'Unknown';\nconst errorLevel = error.level ? error.level.toUpperCase() : 'UNKNOWN';\n\n\nconst message = \n`🚨 <b>WORKFLOW ERROR (<a href=\"${executionUrl}\">${executionId}</a>)</b>\n\nWorkflow: <code>${workflowName}</code>\nNode: <code>${nodeName}</code>\n\n<b>${errorLevel}:</b>\n${errorMessage}\n${errorDescription}\n\n${timestamp}`;\n\n\nreturn {\n json: {\n message,\n }\n};"
},
"typeVersion": 2
},
{
"id": "a8b62ee0-f379-47e1-b9e0-d76700edd361",
"name": "Nota Adhesiva",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
-220
],
"parameters": {
"color": 6,
"width": 440,
"height": 80,
"content": "# ERROR ALERTER"
},
"typeVersion": 1
},
{
"id": "32389017-571e-4efc-bb5d-155426626f01",
"name": "Nota Adhesiva3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
180
],
"parameters": {
"width": 440,
"height": 240,
"content": "# Setup\n- ## Add Credentials:\n - WhatsApp (OAuth & API)\n - Telegram\n - Gmail\n - Discord\n - Slack"
},
"typeVersion": 1
},
{
"id": "d066e29c-9c77-4089-8560-9736db38754a",
"name": "Enviar Notificación a Gmail",
"type": "n8n-nodes-base.gmail",
"disabled": true,
"position": [
0,
700
],
"webhookId": "52f0cc71-1ad8-4f9a-b07c-bae9be1e217c",
"parameters": {
"sendTo": "@gmail.com",
"message": "={{ $json.message }}",
"options": {},
"subject": "Error Workflow"
},
"credentials": {
"gmailOAuth2": {
"id": "Ixik7dvloMznqRjx",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "b38ff563-c8c9-408d-a99e-d8c93ba5f309",
"name": "Enviar Notificación a Whatsapp",
"type": "n8n-nodes-base.whatsApp",
"disabled": true,
"position": [
0,
500
],
"webhookId": "fde1b1fc-48dc-4d7b-b48a-c42b36225a43",
"parameters": {
"textBody": "={{ $json.message }}",
"operation": "send",
"additionalFields": {},
"recipientPhoneNumber": "+12345678901"
},
"credentials": {
"whatsAppApi": {
"id": "p1y94W7Y28627PI2",
"name": "WhatsApp account"
}
},
"typeVersion": 1
},
{
"id": "97a95663-5650-423a-a28b-ea18182c0e69",
"name": "Enviar Notificación a Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
0,
300
],
"webhookId": "13c616bf-a3ad-4035-998a-1dfe6021b89f",
"parameters": {
"text": "={{ $json.message }}",
"chatId": "=YOUR_CHAT_ID",
"additionalFields": {
"parse_mode": "HTML"
}
},
"credentials": {
"telegramApi": {
"id": "0iSopCWwssqRXLS1",
"name": "Error acc"
}
},
"typeVersion": 1
},
{
"id": "cfa7d60b-3e58-4ad2-b445-5f918aac8823",
"name": "Enviar Notificación a Discord",
"type": "n8n-nodes-base.discord",
"disabled": true,
"position": [
0,
900
],
"webhookId": "ea0cb122-61d1-4457-9447-34daa40dccdc",
"parameters": {
"content": "={{ $json.message }}",
"options": {},
"authentication": "webhook"
},
"credentials": {
"discordWebhookApi": {
"id": "gD4HHWsmeRgEyl65",
"name": "Discord Webhook account"
}
},
"typeVersion": 2
},
{
"id": "b1505ead-f1f1-4816-816b-e2e70cfabcb3",
"name": "Enviar Notificación a Slack",
"type": "n8n-nodes-base.slack",
"disabled": true,
"position": [
0,
1100
],
"webhookId": "d2b8ce70-e478-4f05-9add-37d859f73dd8",
"parameters": {
"text": "={{ $json.message }}",
"user": {
"__rl": true,
"mode": "list",
"value": ""
},
"select": "user",
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "kyf7L2n90PzYIt0V",
"name": "Slack account"
}
},
"typeVersion": 2.3
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c390d2c8-192b-43eb-9cc7-02d6db4ff67a",
"connections": {
"eb9762e3-1c49-4c18-aab0-ce04bb54d3c5": {
"main": [
[
{
"node": "e57e084d-b215-4666-964c-01c2b17984c7",
"type": "main",
"index": 0
}
]
]
},
"51276cbe-9156-4b88-938f-95919c20fd2f": {
"main": [
[
{
"node": "d066e29c-9c77-4089-8560-9736db38754a",
"type": "main",
"index": 0
},
{
"node": "b38ff563-c8c9-408d-a99e-d8c93ba5f309",
"type": "main",
"index": 0
},
{
"node": "b1505ead-f1f1-4816-816b-e2e70cfabcb3",
"type": "main",
"index": 0
},
{
"node": "97a95663-5650-423a-a28b-ea18182c0e69",
"type": "main",
"index": 0
},
{
"node": "cfa7d60b-3e58-4ad2-b445-5f918aac8823",
"type": "main",
"index": 0
}
]
]
},
"9925c654-17de-47c7-83b1-0b062c86be90": {
"main": [
[
{
"node": "51276cbe-9156-4b88-938f-95919c20fd2f",
"type": "main",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Intermedio - DevOps
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Compartir este flujo de trabajo