エラーニotify器-v1-No Database

中級

これはDevOps分野の自動化ワークフローで、13個のノードを含みます。主にCode, Gmail, Slack, Discord, Telegramなどのノードを使用。 Telegram、Slackその他の通話ツールによる集中エラーモニタリングとアラート

前提条件
  • Googleアカウント + Gmail API認証情報
  • Slack Bot Token または Webhook URL
  • Discord Bot Token または Webhook
  • Telegram Bot Token

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "61Flju0VYVpEMHzD",
  "name": "Error_Notifier-v1-no_db",
  "nodes": [
    {
      "id": "06623d7e-80a2-4f7d-86d8-99eb139760a9",
      "name": "付箋1",
      "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": "エラートリガー",
      "type": "n8n-nodes-base.errorTrigger",
      "disabled": true,
      "position": [
        -440,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9925c654-17de-47c7-83b1-0b062c86be90",
      "name": "別ワークフローからの実行時",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -440,
        300
      ],
      "parameters": {
        "inputSource": "passthrough"
      },
      "typeVersion": 1.1
    },
    {
      "id": "d8ad4b78-3387-44ce-894b-4c4c21863f1c",
      "name": "付箋2",
      "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": "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": "通知用メッセージの準備",
      "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": "付箋",
      "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": "付箋3",
      "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": "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": "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": "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": "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": "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
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - DevOps

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数13
カテゴリー1
ノードタイプ10
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34