This workflow follows the Error Trigger → Google Sheets 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 →
{
"name": "Flow - Error Handler RecepIA",
"nodes": [
{
"id": "eh-trigger",
"name": "Error Trigger",
"type": "n8n-nodes-base.errorTrigger",
"typeVersion": 1,
"position": [
240,
300
],
"parameters": {}
},
{
"id": "eh-extraer",
"name": "Extraer Info Error",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
460,
300
],
"parameters": {
"jsCode": "const data = $input.first().json;\nconst errorMsg = data.execution?.error?.message || 'Error desconocido';\nconst nodoFallido = data.execution?.error?.node?.name || data.execution?.lastNodeExecuted || 'Desconocido';\nconst workflowName = data.execution?.workflowData?.name || 'Flow 2';\nconst executionId = data.execution?.id || '';\nconst executionUrl = data.execution?.url || '';\nreturn [{ json: { errorMsg, nodoFallido, workflowName, executionId, executionUrl } }];"
}
},
{
"id": "eh-config",
"name": "Leer Configuracion",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.4,
"position": [
680,
300
],
"alwaysOutputData": true,
"parameters": {
"operation": "read",
"documentId": {
"__rl": true,
"value": "1vK8h8c8prheB8_KE7nwl6e4SblGoeALs_jE-vkgv5ho",
"mode": "id"
},
"sheetName": {
"__rl": true,
"mode": "name",
"value": "Configuracion"
},
"options": {}
},
"credentials": {
"googleSheetsOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"id": "eh-preparar",
"name": "Preparar Alerta",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
900,
300
],
"parameters": {
"jsCode": "const err = $('Extraer Info Error').first().json;\nconst config = $('Leer Configuracion').first().json;\nconst twilioAuth = 'Basic ' + Buffer.from(config.twilio_account_sid + ':' + config.twilio_auth_token).toString('base64');\nconst twilioUrl = 'https://api.twilio.com/2010-04-01/Accounts/' + config.twilio_account_sid + '/Messages.json';\nconst adminTel = String(config.telefono_admin || '').replace(/\\D/g, '');\nconst mensaje = '\\u26a0\\ufe0f ERROR cr\\u00edtico en RecepIA\\n\\nFlow: ' + err.workflowName + '\\nNodo: ' + err.nodoFallido + '\\nError: ' + String(err.errorMsg).slice(0, 300) + '\\n\\nID ejecuci\\u00f3n: ' + err.executionId + (err.executionUrl ? '\\n' + err.executionUrl : '');\nreturn [{ json: { twilioAuth, twilioUrl, adminTel, mensaje, twilioFrom: config.twilio_from } }];"
}
},
{
"id": "eh-alertar-admin",
"name": "Alertar Admin",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1120,
300
],
"parameters": {
"method": "POST",
"url": "={{ $json.twilioUrl }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "={{ $json.twilioAuth }}"
}
]
},
"sendBody": true,
"contentType": "form-urlencoded",
"bodyParameters": {
"parameters": [
{
"name": "From",
"value": "={{ $json.twilioFrom }}"
},
{
"name": "To",
"value": "=whatsapp:+{{ $json.adminTel }}"
},
{
"name": "Body",
"value": "={{ $json.mensaje }}"
}
]
}
}
}
],
"connections": {
"Error Trigger": {
"main": [
[
{
"node": "Extraer Info Error",
"type": "main",
"index": 0
}
]
]
},
"Extraer Info Error": {
"main": [
[
{
"node": "Leer Configuracion",
"type": "main",
"index": 0
}
]
]
},
"Leer Configuracion": {
"main": [
[
{
"node": "Preparar Alerta",
"type": "main",
"index": 0
}
]
]
},
"Preparar Alerta": {
"main": [
[
{
"node": "Alertar Admin",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}
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.
googleSheetsOAuth2Api
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Flow - Error Handler RecepIA. Uses errorTrigger, googleSheets, httpRequest. Event-driven trigger; 5 nodes.
Source: https://github.com/SMsimarco/RecepIA---n8n/blob/main/n8n-flows/flow_error_handler.json — 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.
It transforms product data into AI-generated images, cinematic video scripts, and final videos, then uploads everything to Google Drive and updates your sheet automatically. Generate UGC ads at scale
This workflow triggers when a HubSpot deal stage changes to Closed Won and automatically generates an invoice. It collects deal and contact data, builds a styled invoice, converts it into a PDF, and s
Generate market research reports from news and competitor sites to Notion and Slack. Uses errorTrigger, httpRequest, notion, googleSheets. Event-driven trigger; 19 nodes.
Generate market research reports from news and competitor sites to Notion and Slack. Uses errorTrigger, httpRequest, notion, googleSheets. Event-driven trigger; 19 nodes.
Generate market research reports from news and competitor sites to Notion and Slack. Uses errorTrigger, httpRequest, notion, googleSheets. Event-driven trigger; 19 nodes.