{
  "id": "O0C6dgSlC6BHD8cN",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "ErrorFlow WhatsApp Alarm",
  "tags": [],
  "nodes": [
    {
      "id": "10c87315-4b50-4e87-81a0-3ed3e23648b5",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8ebb8bdd-a2d2-4140-93d1-031eb7e52332",
      "name": "SETUP INSTRUCTIONS",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        -280
      ],
      "parameters": {
        "width": 400,
        "height": 4180,
        "content": "# \ud83d\udea8 ERROR-MONITORING FLOW \u2014 WHATSAPP SETUP GUIDE  \n\n\ud83d\udd17 Jump to language:  \n\ud83c\uddec\ud83c\udde7 [English](#-english) | \ud83c\uddea\ud83c\uddf8 [Espa\u00f1ol](#-espa\u00f1ol) | \ud83c\udde9\ud83c\uddea [Deutsch](#-deutsch) | \ud83c\uddeb\ud83c\uddf7 [Fran\u00e7ais](#-fran\u00e7ais) | \ud83c\uddf7\ud83c\uddfa [\u0420\u0443\u0441\u0441\u043a\u0438\u0439](#-\u0440\u0443\u0441\u0441\u043a\u0438\u0439)  \n\n---\n\n> \u2757 This workflow must remain **INACTIVE**.  \n> You should select it as the **Error Workflow** inside other workflows where you want to receive error alerts.\n\n---\n\n## \ud83c\uddec\ud83c\udde7 English\n\n1. Make sure your **WhatsApp Business Cloud API** is properly connected to n8n.\n\n2. In the **Send Message** node:  \n   - Set your **WhatsApp credentials**  \n   - Resource: `Message`  \n   - Operation: `Send`  \n   - Sender phone number (or ID)  \n   - Recipient's phone number in international format (e.g. `+34612345678`)  \n   - Message type: `Text`  \n   - **Text Body**:  \n     ```\n     Error on WorkFlow: {{ $json.workflow.name }}  \n     Message: {{ $json.execution.error.message }}  \n     lastNodeExecuted: {{ $json.execution.lastNodeExecuted }}\n     ```\n\n3. Save this workflow but **do not activate it**.\n\n4. In the workflow(s) you want to monitor \u2192 open **Settings** \u2192 select this as **Error Workflow**.\n\n---\n\n## \ud83c\uddea\ud83c\uddf8 Espa\u00f1ol\n\n> \u2757 Este flujo debe permanecer **INACTIVO**.  \n> Debes seleccionarlo como **Error Workflow** en otros flujos.\n\n1. Aseg\u00farate de que la **API de WhatsApp Business Cloud** est\u00e9 conectada en n8n.\n\n2. En el nodo **Send Message**:  \n   - Credenciales de WhatsApp  \n   - Recurso: `Message`  \n   - Operaci\u00f3n: `Send`  \n   - N\u00famero del remitente  \n   - N\u00famero del destinatario en formato internacional  \n   - Tipo de mensaje: `Text`  \n   - **Cuerpo del mensaje**:  \n     ```\n     Error on WorkFlow: {{ $json.workflow.name }}  \n     Message: {{ $json.execution.error.message }}  \n     lastNodeExecuted: {{ $json.execution.lastNodeExecuted }}\n     ```\n\n3. Guarda el flujo pero **no lo actives**.\n\n4. En otros flujos \u2192 **Settings** \u2192 elige este como **Error Workflow**.\n\n---\n\n## \ud83c\udde9\ud83c\uddea Deutsch\n\n> \u2757 Dieser Workflow bleibt **INAKTIV**.  \n> In anderen Flows als **Error Workflow** einstellen.\n\n1. Stelle sicher, dass deine **WhatsApp Business Cloud API** mit n8n verbunden ist.\n\n2. Im Node **Send Message**:  \n   - WhatsApp-Zugangsdaten setzen  \n   - Ressource: `Message`  \n   - Operation: `Send`  \n   - Absendernummer  \n   - Empf\u00e4ngernummer im internationalen Format  \n   - Nachrichtentyp: `Text`  \n   - **Nachrichtentext**:  \n     ```\n     Error on WorkFlow: {{ $json.workflow.name }}  \n     Message: {{ $json.execution.error.message }}  \n     lastNodeExecuted: {{ $json.execution.lastNodeExecuted }}\n     ```\n\n3. Workflow speichern, aber **nicht aktivieren**.\n\n4. In anderen Workflows \u2192 **Einstellungen** \u2192 diesen als **Error Workflow** setzen.\n\n---\n\n## \ud83c\uddeb\ud83c\uddf7 Fran\u00e7ais\n\n> \u2757 Ce flux reste **INACTIF**.  \n> \u00c0 s\u00e9lectionner comme **Error Workflow** dans d'autres workflows.\n\n1. V\u00e9rifiez que votre **API WhatsApp Business Cloud** est bien connect\u00e9e \u00e0 n8n.\n\n2. Dans le n\u0153ud **Send Message** :  \n   - Identifiants WhatsApp  \n   - Ressource : `Message`  \n   - Op\u00e9ration : `Send`  \n   - Num\u00e9ro de l\u2019exp\u00e9diteur  \n   - Num\u00e9ro du destinataire au format international  \n   - Type de message : `Text`  \n   - **Texte du message** :  \n     ```\n     Error on WorkFlow: {{ $json.workflow.name }}  \n     Message: {{ $json.execution.error.message }}  \n     lastNodeExecuted: {{ $json.execution.lastNodeExecuted }}\n     ```\n\n3. Sauvegardez ce flux mais **ne l\u2019activez pas**.\n\n4. Dans d'autres workflows \u2192 **Param\u00e8tres** \u2192 d\u00e9finissez ce flux comme **Error Workflow**.\n\n---\n\n## \ud83c\uddf7\ud83c\uddfa \u0420\u0443\u0441\u0441\u043a\u0438\u0439\n\n> \u2757 \u042d\u0442\u043e\u0442 workflow \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c **\u041d\u0415\u0410\u041a\u0422\u0418\u0412\u041d\u042b\u041c**.  \n> \u0415\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 workflow \u043a\u0430\u043a **Error Workflow**.\n\n1. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e **WhatsApp Business Cloud API** \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043a n8n.\n\n2. \u0412 \u043d\u043e\u0434\u0435 **Send Message**:  \n   - \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 credentials WhatsApp  \n   - \u0420\u0435\u0441\u0443\u0440\u0441: `Message`  \n   - \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f: `Send`  \n   - \u041d\u043e\u043c\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f  \n   - \u041d\u043e\u043c\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0432 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, `+79261234567`)  \n   - \u0422\u0438\u043f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f: `Text`  \n   - **\u0422\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f**:  \n     ```\n     Error on WorkFlow: {{ $json.workflow.name }}  \n     Message: {{ $json.execution.error.message }}  \n     lastNodeExecuted: {{ $json.execution.lastNodeExecuted }}\n     ```\n\n3. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 workflow, \u043d\u043e **\u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u0433\u043e**.\n\n4. \u0412 \u0434\u0440\u0443\u0433\u0438\u0445 workflow \u2192 **\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438** \u2192 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u043a\u0430\u043a **Error Workflow**."
      },
      "typeVersion": 1
    },
    {
      "id": "63f6e3e6-6f20-4d61-98cf-1c65f00b8381",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -140
      ],
      "parameters": {
        "color": 7,
        "width": 300,
        "height": 280,
        "content": "## Listen\n\n**IMPORTANT**: In your other workflows \u2192 open **Settings** \u2192 select this as **Error Workflow**."
      },
      "typeVersion": 1
    },
    {
      "id": "57d9a111-52ba-40dd-afbc-11efeac099a3",
      "name": "Send message",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        320,
        0
      ],
      "parameters": {
        "textBody": "=Error on WorkFlow: {{ $json.workflow.name }} Message: {{ $json.execution.error.message }}  lastNodeExecuted: {{ $json.execution.lastNodeExecuted }}",
        "operation": "send",
        "phoneNumberId": "708748555659713",
        "additionalFields": {},
        "recipientPhoneNumber": "!!!!!!!! Insert your number !!!!!!!!!"
      },
      "credentials": {
        "whatsAppApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "70f3761d-b1dd-4a0f-b472-380874b4f31c",
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Send message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}