This workflow corresponds to n8n.io template #4407 — we link there as the canonical source.
This workflow follows the Error Trigger → Gmail recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "Yb92Z9P4HSj7JLuW",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Error handling alerts with Google Sheets, Telegram and Gmail",
"tags": [],
"nodes": [
{
"id": "ad41781c-30ed-4408-b3a4-7bfa592c3dd0",
"name": "Error Trigger",
"type": "n8n-nodes-base.errorTrigger",
"position": [
-80,
-100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "98d27f8f-baec-404f-a960-9068e66a9586",
"name": "Log error",
"type": "n8n-nodes-base.googleSheets",
"position": [
140,
-200
],
"parameters": {
"columns": {
"value": {
"URL": "={{ $json.execution.url }}",
"Node": "={{ $json.execution.error.node.name }}",
"STATUS": "NEW",
"Workflow": "={{ $json.workflow.name }}",
"Timestamp": "={{ $now.format('D hh:mm a') }}",
"Error Message": "={{ $json.execution.error.message }}"
},
"schema": [
{
"id": "Timestamp",
"type": "string",
"display": true,
"required": false,
"displayName": "Timestamp",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Workflow",
"type": "string",
"display": true,
"required": false,
"displayName": "Workflow",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "URL",
"type": "string",
"display": true,
"required": false,
"displayName": "URL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Node",
"type": "string",
"display": true,
"required": false,
"displayName": "Node",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Error Message",
"type": "string",
"display": true,
"required": false,
"displayName": "Error Message",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "STATUS",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "STATUS",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Notes",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Notes",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KKolzBcFWGI_RtFUvT1bdufFpMdA0WfM9quvgg_cKlU/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1KKolzBcFWGI_RtFUvT1bdufFpMdA0WfM9quvgg_cKlU",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KKolzBcFWGI_RtFUvT1bdufFpMdA0WfM9quvgg_cKlU/edit?usp=drivesdk",
"cachedResultName": "Error Logs"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"name": "<your credential>"
}
},
"typeVersion": 4.5
},
{
"id": "c62ec787-76eb-400d-852f-6df07eba72b9",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"position": [
140,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0e3ef75e-b4d9-489a-b45b-ca0b994756a7",
"name": "telegramChatID",
"type": "string",
"value": "chatID"
},
{
"id": "6e354af6-dd5e-4200-99ef-7856129d782e",
"name": "toEmail",
"type": "string",
"value": "toEmail"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "12396bb3-7143-466c-a9e0-b7a567425706",
"name": "Notify in channel",
"type": "n8n-nodes-base.telegram",
"position": [
360,
0
],
"parameters": {
"text": "=\u26a0\ufe0f\ud83d\udc1b New bug in n8n\n\nWorkflow: {{ $('Error Trigger').item.json.workflow.name }}\nExecution URL: {{ $('Error Trigger').item.json.execution.url }}\nNode name: {{ $('Error Trigger').item.json.execution.error.node.name }}\nError message: {{ $('Error Trigger').item.json.execution.error.message }}",
"chatId": "={{ $json.telegramChatID }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "cf154995-a319-4c24-8244-3a1a6d75cc81",
"name": "Send email",
"type": "n8n-nodes-base.gmail",
"position": [
580,
0
],
"parameters": {
"sendTo": "={{ $('Edit Fields').item.json.toEmail }}",
"message": "={{ $json.result.text }}",
"options": {
"senderName": "n8n Error Tracker",
"appendAttribution": false
},
"subject": "=\ud83d\udc1bNew n8n bug in \"{{ $('Error Trigger').item.json.workflow.name }}\""
},
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
},
"typeVersion": 2.1
},
{
"id": "25a14f2b-710d-4a07-a484-bea302232fe8",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
80,
-20
],
"parameters": {
"height": 320,
"content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Update fields \n- Set your Telegram chat id to get notified in a channel \n- Insert the recipient's email"
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"timezone": "Europe/Madrid",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "5cb21186-8ab7-4dcc-9489-1ba8e7e36f61",
"connections": {
"Edit Fields": {
"main": [
[
{
"node": "Notify in channel",
"type": "main",
"index": 0
}
]
]
},
"Error Trigger": {
"main": [
[
{
"node": "Log error",
"type": "main",
"index": 0
},
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Notify in channel": {
"main": [
[
{
"node": "Send email",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
gmailOAuth2googleSheetsOAuth2ApitelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This n8n workflow provides a robust error handling and notification system for your n8n workflows. When an error occurs, it automatically logs the error details to Google Sheets, sends a notification to a Telegram channel, and dispatches an email alert, ensuring you're…
Source: https://n8n.io/workflows/4407/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This template is designed for n8n users running workflows in production who need reliable and structured error monitoring, not just basic alerts.
This workflow creates a comprehensive error monitoring system for your n8n instance by automatically capturing workflow failures, logging them to Google Sheets, and sending immediate email notificatio
Telegram Code. Uses stickyNote, telegramTrigger, telegram, googleDrive. Event-driven trigger; 37 nodes.
Sync your Google Calendar events with Google Sheets and get daily Slack summaries with meeting statistics. FEATURES:
Instant enquiry/booking system. Uses telegramTrigger, googleSheets, telegram, gmail. Event-driven trigger; 28 nodes.