{
  "name": "Error Monitoring!",
  "nodes": [
    {
      "parameters": {},
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        20,
        320
      ],
      "id": "ef401694-6d19-4d49-8269-0bfeefbc35e9"
    },
    {
      "parameters": {
        "sendTo": "<yourmail>",
        "subject": "error paduka raja!",
        "message": "={{ $json.message }}",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        460,
        320
      ],
      "id": "09a04430-1cb6-4bd5-b97d-d6b98541fd82",
      "name": "Notify Gmail",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "disabled": true
    },
    {
      "parameters": {
        "operation": "send",
        "recipientPhoneNumber": ",penerima message>",
        "textBody": "={{ $json.message }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.whatsApp",
      "typeVersion": 1,
      "position": [
        460,
        520
      ],
      "id": "d78b5623-caab-4616-aa3a-e00af03cba3a",
      "name": "Notify Whatsapp",
      "disabled": true
    },
    {
      "parameters": {
        "select": "user",
        "user": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "text": "={{ $json.message }}",
        "otherOptions": {}
      },
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        460,
        720
      ],
      "id": "8c5dbd37-cc37-4a1a-89c4-bbf692339b93",
      "name": "Notify Slack",
      "disabled": true
    },
    {
      "parameters": {
        "chatId": "<your_chat_id>",
        "text": "={{ $json.message }}",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "name": "Notify Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        460,
        120
      ],
      "id": "0ec6e5cb-c290-4073-9560-0f237f85a6bd",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "authentication": "webhook",
        "content": "={{ $json.message }}",
        "options": {}
      },
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        460,
        -80
      ],
      "id": "4e378031-382d-4abd-94f5-b7274f42161e",
      "name": "Notify Discord",
      "credentials": {
        "discordWebhookApi": {
          "name": "<your credential>"
        }
      },
      "disabled": true
    },
    {
      "parameters": {
        "content": "## \ud83d\udea8 Error Monitoring Workflow\n\nThis workflow automatically sends notifications when any other workflow fails.\n\nSimply download copy and paste into your workflow then add your credential with prefered channel\n\nThis workflow is free. \nwant more? [contact me](khmuhtadin.com)\n\nhave something to helps me chill, [a coffee](coff.ee/khmuhtadin) would be great!",
        "height": 280,
        "width": 420,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        500
      ],
      "typeVersion": 1,
      "id": "ad022c9b-4453-4590-b27e-358e342e1f26",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "jsCode": "// Hello, this workflow is made by khaisa. please visit shop.khaisa.com for more tailored support\n\n// Perfect error access untuk N8N v1.99.1\nconst errorData = $input.first().json;\nconst execution = errorData.execution;\nconst workflow = errorData.workflow;\nconst error = execution.error;\n\nconst message = `\ud83d\udea8 <b>WORKFLOW ERROR</b>\\n\\n` +\n  `\ud83d\udccb Workflow: <b>${workflow.name}</b>\\n` +\n  `\u2699\ufe0f Node: <code>${error.node.name}</code>\\n` +\n  `\u274c Error: <code>${error.message}</code>\\n` +\n  `\ud83d\udcdd Description: <i>${error.description}</i>\\n` +\n  `\ud83d\udd50 Waktu: ${new Date(error.timestamp).toLocaleString('id-ID')}\\n` +\n  `\ud83d\udd0d Execution: <a href=\"${execution.url}\">${execution.id}</a>\\n` +\n  `\u26a0\ufe0f Level: ${error.level.toUpperCase()}`;\n\nreturn {\n  message: message,\n  parse_mode: 'HTML',\n  chat_id: '621412350'\n};"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        240,
        320
      ],
      "id": "e950234f-06c7-4304-b8a6-62d3ba6b7a50",
      "name": "Prepare Messages"
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Prepare Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Whatsapp": {
      "main": [
        []
      ]
    },
    "Prepare Messages": {
      "main": [
        [
          {
            "node": "Notify Telegram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Discord",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Whatsapp",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "eb21ed00-33b1-4872-9bb2-9752b1389455",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "7RR5Rf9kzQ2eWl5C",
  "tags": []
}