Analyze failed workflows with Claude via OpenRouter and log to Sheets with Slack, Email, Discord alerts

eb898ba3-a903-478c-92aa-26685cf2c9de

Latency
9370ms
Cost
$0.0005
Tokens
1,724
Status
partial
gemini-2.5-flash-lite

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "fde4bf6f-40b6-473e-9d67-38b2906e2381",
    "timestamp": 1780869425282
  },
  {
    "data": {
      "kind": "n8n-nodes-base.errorTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780869425282
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "fde4bf6f-40b6-473e-9d67-38b2906e2381",
    "timestamp": 1780869425282
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "d018b3ff-2296-40b0-a3d1-3f49820bd644",
    "timestamp": 1780869425285
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/anthropic/claude-3.5-sonnet",
    "nodeId": "llm",
    "timestamp": 1780869425285
  },
  {
    "data": {
      "model": "anthropic/claude-3.5-sonnet",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780869425285
  },
  {
    "data": {
      "error": "Google Gemini API error (500): {\n  \"error\": {\n    \"code\": 500,\n    \"message\": \"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting\",\n    \"status\": \"INTERNAL\"\n  }\n}\n",
      "status": "error",
      "degraded": true,
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "d018b3ff-2296-40b0-a3d1-3f49820bd644",
    "timestamp": 1780869429386
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "84fd0d60-d271-4ec3-9961-e4727fe8a06c",
    "timestamp": 1780869429391
  },
  {
    "data": {
      "inputKeys": [
        "failed_node",
        "error_message",
        "workflow_id",
        "timestamp",
        "workflow_name",
        "execution_id",
        "error_signature",
        "text.split",
        "ai_confidence",
        "execution_mode",
        "trigger_type",
        "environment",
        "input_payload",
        "workflow",
        "execution"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780869429391
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "84fd0d60-d271-4ec3-9961-e4727fe8a06c",
    "timestamp": 1780869429391
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "e72f26c2-7cd2-4614-b168-55c42dafa01e",
    "timestamp": 1780869429391
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "e72f26c2-7cd2-4614-b168-55c42dafa01e",
    "timestamp": 1780869429393
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "e56d7473-23d8-4755-a7ae-452c8387c36f",
    "timestamp": 1780869429396
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780869429397
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780869429397
  },
  {
    "data": {
      "model": "gemini-2.5-flash-lite",
      "costUsd": 0.0004796,
      "provider": "openai",
      "latencyMs": 4300,
      "promptTokens": 700,
      "completionTokens": 1024
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780869433703
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "e56d7473-23d8-4755-a7ae-452c8387c36f",
    "timestamp": 1780869433703
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "3ef615f5-885c-477c-82df-17b287ea2183",
    "timestamp": 1780869433703
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "3ef615f5-885c-477c-82df-17b287ea2183",
    "timestamp": 1780869433707
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "29d27254-f33a-404e-bd17-c8186cd1a21d",
    "timestamp": 1780869433707
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "29d27254-f33a-404e-bd17-c8186cd1a21d",
    "timestamp": 1780869433709
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "1632fea4-ba7f-4b0d-ac19-3ec2bb7c6d03",
    "timestamp": 1780869433711
  },
  {
    "data": {
      "inputKeys": [
        "text",
        "model",
        "usage",
        "ai_confidence",
        "error_signature",
        "normalized_error"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780869433711
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "1632fea4-ba7f-4b0d-ac19-3ec2bb7c6d03",
    "timestamp": 1780869433711
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "0e0bba81-2708-490c-b518-e0825175b0cc",
    "timestamp": 1780869433713
  },
  {
    "data": {
      "service": "googleSheets",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780869433713
  },
  {
    "data": {
      "url": "https://sheets.googleapis.com/v4/spreadsheets/1e8XpVw-np2ABv8gBd_VYhphaHZUYnJ5zoOa--qocbPE/values/Sink:append?valueInputOption=RAW",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780869433713
  },
  {
    "data": {
      "tab": "Sink",
      "status": 200
    },
    "event": "sheets.write",
    "nodeId": "integration",
    "timestamp": 1780869433941
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "googleSheets",
      "latencyMs": 228,
      "operation": "append"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780869433941
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "0e0bba81-2708-490c-b518-e0825175b0cc",
    "timestamp": 1780869433941
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "2bd5467f-178c-4c0b-97ba-0d9636adbf57",
    "timestamp": 1780869433941
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "2bd5467f-178c-4c0b-97ba-0d9636adbf57",
    "timestamp": 1780869433944
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e4e51024-1629-43df-a2c9-c98607990e42",
    "timestamp": 1780869433948
  },
  {
    "data": {
      "service": "gmail",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780869433948
  },
  {
    "data": {
      "url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780869433948
  },
  {
    "data": {
      "status": 200
    },
    "event": "gmail.read",
    "nodeId": "integration",
    "timestamp": 1780869434074
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 126,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780869434074
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e4e51024-1629-43df-a2c9-c98607990e42",
    "timestamp": 1780869434074
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "df5c4a8a-6517-4d0b-bc94-a87f607b5904",
    "timestamp": 1780869434081
  },
  {
    "data": {
      "service": "slack",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780869434081
  },
  {
    "data": {
      "url": "https://slack.com/api/conversations.history?channel=C0B6WTD21QX&limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780869434081
  },
  {
    "data": {
      "status": 200
    },
    "event": "slack.read",
    "nodeId": "integration",
    "timestamp": 1780869434388
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "slack",
      "latencyMs": 307,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780869434388
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "df5c4a8a-6517-4d0b-bc94-a87f607b5904",
    "timestamp": 1780869434388
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "f022b0c6-9d5f-4587-bd33-e56fd3629ab8",
    "timestamp": 1780869434393
  },
  {
    "data": {
      "service": "discord",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780869434393
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "discord",
      "latencyMs": 250,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780869434645
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "f022b0c6-9d5f-4587-bd33-e56fd3629ab8",
    "timestamp": 1780869434645
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "4bd4bb7d-2b51-471b-864a-ece92c884b48",
    "timestamp": 1780869434651
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 250,
      "operation": "unresolvable-url",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780869434652
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "4bd4bb7d-2b51-471b-864a-ece92c884b48",
    "timestamp": 1780869434652
  }
]