私のエラーハンドリングワークフロー
初級
これは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など)は別途料金が発生する場合があります。
関連ワークフロー
Mini SOC インシデント分類
自動セキュリティインシデント分類:GPT-4o-miniとGmail通知
Set
Gmail
Webhook
+
Set
Gmail
Webhook
7 ノードCalistus Christian
AI要約
エラーニotify器-v1-No Database
Telegram、Slackその他の通話ツールによる集中エラーモニタリングとアラート
Code
Gmail
Slack
+
Code
Gmail
Slack
13 ノードAndrew
DevOps
AIAutomationPro 高級エラーハンドリング&メール通知 v1
集中型n8nエラーシステム:Gmail経由でメールアラートを自動送信
If
N8n
Set
+
If
N8n
Set
16 ノードDaniel Ng
エンジニアリング
日次のビジネスニュース
OpenAIとGmailを使って複数のRSSフィードからの毎日のビジネスニュースサマリーを生成
If
Code
Gmail
+
If
Code
Gmail
15 ノードCalistus Christian
市場調査
毎日のセキュリティニュース
毎日の技術・サイバーセキュリティブリーフィング:RSS、OpenAI GPT-4o、Gmail を使用
If
Code
Gmail
+
If
Code
Gmail
19 ノードCalistus Christian
個人の生産性
iOS環境設定同期ウィザード:.envからXcodeへ
GitHubのPRとメール通知を使ってiOS設定同期を自動化:.envからXcodeへ
Set
Code
Gmail
+
Set
Code
Gmail
12 ノードWeblineIndia
DevOps