私のエラーハンドリングワークフロー

初級

これはDevOps分野の自動化ワークフローで、4個のノードを含みます。主にGmail, ErrorTriggerなどのノードを使用。 ワークフローでエラーが発生した際にGmailを通じて自動通知

前提条件
  • Googleアカウント + Gmail API認証情報

使用ノード (4)

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "b9d26382fbc087c17fe86e193d09f32e5d99f4a254d13f3b8ee28079e71766cf"
  },
  "name": "My Error workflow",
  "tags": [],
  "nodes": [
    {
      "id": "bb79f784-ce85-49ad-af14-666d8beee75c",
      "name": "付箋 — Read Me",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        96
      ],
      "parameters": {
        "width": 520,
        "height": 320,
        "content": "## Setup (read me)\n1) Open the Gmail node and connect credentials.\n2) Set the **To** field to your email or team list.\n3) Save this workflow, then in each target workflow go to **Options → Settings → Error workflow** and select this.\n\n### About the payload\nThis uses Error Trigger fields:\n- `{{$json[\"workflow\"][\"name\"]}}` / `{{$json[\"workflow\"][\"id\"]}}`\n- `{{$json[\"execution\"][\"id\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"url\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"lastNodeExecuted\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"error\"][\"message\"]}}`\n\nFor trigger-time failures, execution fields may be missing—email still sends with fallbacks."
      },
      "typeVersion": 1
    },
    {
      "id": "6d160f0f-6637-42af-acef-52aaa8ceb2d7",
      "name": "エラートリガー",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        144,
        112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7b16e9f0-16e7-4ca0-9858-0c5b73e08d76",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        528,
        112
      ],
      "parameters": {
        "toList": "your-email@example.com",
        "message": "A workflow failed.\\n\\nWorkflow: {{$json[\"workflow\"][\"name\"]}} ({{$json[\"workflow\"][\"id\"]}})\\nExecution ID: {{$json[\"execution\"][\"id\"] || \"N/A\"}}\\nLast node: {{$json[\"execution\"][\"lastNodeExecuted\"] || \"N/A\"}}\\nError: {{$json[\"execution\"][\"error\"][\"message\"]}}\\nExecution URL: {{$json[\"execution\"][\"url\"] || \"N/A\"}}",
        "subject": "n8n: {{$json[\"workflow\"][\"name\"]}} (ID {{$json[\"workflow\"][\"id\"]}}) failed",
        "resource": "message",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "065d4139-3ed8-4d52-ba06-7964336fa2c9",
      "name": "付箋 — Publishing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        272
      ],
      "parameters": {
        "width": 420,
        "height": 220,
        "content": "## Publishing checklist\n- Keep this template **Free**.\n- No hardcoded secrets in HTTP nodes.\n- Description uses Markdown with **## headings**.\n- Leave detailed instructions here in sticky notes."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "7b16e9f0-16e7-4ca0-9858-0c5b73e08d76",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

初級 - DevOps

有料ですか?

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

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

n8n初心者向け、1-5ノードのシンプルなワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34