Monitor AI infrastructure costs and route budget alerts with Claude, NVIDIA, Slack, and Gmail

54e72f31-a323-46c9-ac00-8daa9064faba

Latency
13509ms
Cost
$0.0021
Tokens
17,678
Status
partial
gemini-2.5-flash-lite

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "0bfe849a-e411-42b7-b15a-b0e37a8d9143",
    "timestamp": 1780869769301
  },
  {
    "data": {
      "kind": "n8n-nodes-base.scheduleTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780869769301
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "0bfe849a-e411-42b7-b15a-b0e37a8d9143",
    "timestamp": 1780869769301
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "32d6ceb0-2071-4c82-8b63-f61dec527c44",
    "timestamp": 1780869769304
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling anthropic/claude-sonnet-4-5-20250929",
    "nodeId": "llm",
    "timestamp": 1780869769304
  },
  {
    "data": {
      "model": "claude-sonnet-4-5-20250929",
      "provider": "anthropic"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780869769304
  },
  {
    "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": "32d6ceb0-2071-4c82-8b63-f61dec527c44",
    "timestamp": 1780869773397
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "1cd7b8e0-3011-4742-b2b8-03f0fe82046e",
    "timestamp": 1780869773402
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1780869773402
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "1cd7b8e0-3011-4742-b2b8-03f0fe82046e",
    "timestamp": 1780869773402
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "a45a057e-35cc-431e-a721-1c85e0451ba1",
    "timestamp": 1780869773405
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling anthropic/claude-sonnet-4-5-20250929",
    "nodeId": "llm",
    "timestamp": 1780869773405
  },
  {
    "data": {
      "model": "claude-sonnet-4-5-20250929",
      "provider": "anthropic"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780869773405
  },
  {
    "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": "a45a057e-35cc-431e-a721-1c85e0451ba1",
    "timestamp": 1780869777528
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "1dffaf34-46d0-4001-9b70-a86bef7665fc",
    "timestamp": 1780869777532
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1780869777532
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "1dffaf34-46d0-4001-9b70-a86bef7665fc",
    "timestamp": 1780869777532
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "652d24a4-cc1f-4d99-86c9-b6ab39fc34f9",
    "timestamp": 1780869777535
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "toolcode",
      "latencyMs": 250,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780869777787
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "652d24a4-cc1f-4d99-86c9-b6ab39fc34f9",
    "timestamp": 1780869777787
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "8cb75373-6a4e-46a4-88fb-69eeef529aef",
    "timestamp": 1780869777793
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "toolcode",
      "latencyMs": 250,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780869778045
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "8cb75373-6a4e-46a4-88fb-69eeef529aef",
    "timestamp": 1780869778045
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "e10edf10-9250-4437-b5d9-cb8f704fa1ea",
    "timestamp": 1780869778048
  },
  {
    "data": {
      "inputKeys": [
        "metrics",
        "output",
        "alertLevel",
        "budgetThresholdUSD",
        "slackCriticalChannel",
        "slackWarningChannel",
        "executiveEmail"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780869778048
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "e10edf10-9250-4437-b5d9-cb8f704fa1ea",
    "timestamp": 1780869778048
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "75041e34-8185-457b-b39c-f00b18237302",
    "timestamp": 1780869778048
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "75041e34-8185-457b-b39c-f00b18237302",
    "timestamp": 1780869778052
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "440d8159-0638-46aa-880a-d3b300ae8fe0",
    "timestamp": 1780869778054
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780869778054
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780869778054
  },
  {
    "data": {
      "model": "gemini-2.5-flash-lite",
      "costUsd": 0.0020589000000000002,
      "provider": "openai",
      "latencyMs": 3283,
      "promptTokens": 16493,
      "completionTokens": 1024
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780869781339
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "440d8159-0638-46aa-880a-d3b300ae8fe0",
    "timestamp": 1780869781339
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "b20d11f8-d030-4619-99cf-f9ad91d035de",
    "timestamp": 1780869781344
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780869781344
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780869781344
  },
  {
    "data": {
      "model": "gemini-2.5-flash-lite",
      "costUsd": 0.000024800000000000003,
      "provider": "openai",
      "latencyMs": 512,
      "promptTokens": 132,
      "completionTokens": 29
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780869781858
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "b20d11f8-d030-4619-99cf-f9ad91d035de",
    "timestamp": 1780869781858
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "b4092c30-56ec-4495-987d-a5a08c7fc180",
    "timestamp": 1780869781863
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1780869781863
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "b4092c30-56ec-4495-987d-a5a08c7fc180",
    "timestamp": 1780869781863
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "cf5f3438-d7c1-4033-89e1-eb01eab9decb",
    "timestamp": 1780869781865
  },
  {
    "event": "no rule matched -> default",
    "nodeId": "switch",
    "timestamp": 1780869781865
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "cf5f3438-d7c1-4033-89e1-eb01eab9decb",
    "timestamp": 1780869781865
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "c429be7e-eaef-40b1-b419-42c8a20d7320",
    "timestamp": 1780869781867
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1780869781867
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "c429be7e-eaef-40b1-b419-42c8a20d7320",
    "timestamp": 1780869781867
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "7ecf725e-3aba-46c5-9204-2134b0ddbc41",
    "timestamp": 1780869781869
  },
  {
    "data": {
      "service": "slack",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780869781869
  },
  {
    "data": {
      "url": "https://slack.com/api/conversations.history?channel=C0B6WTD21QX&limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780869781869
  },
  {
    "data": {
      "status": 200
    },
    "event": "slack.read",
    "nodeId": "integration",
    "timestamp": 1780869782138
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "slack",
      "latencyMs": 269,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780869782138
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "7ecf725e-3aba-46c5-9204-2134b0ddbc41",
    "timestamp": 1780869782138
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "4fc3e49e-e8e7-46b1-b329-19f900cd7b6f",
    "timestamp": 1780869782145
  },
  {
    "data": {
      "service": "slack",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780869782145
  },
  {
    "data": {
      "url": "https://slack.com/api/conversations.history?channel=C0B6WTD21QX&limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780869782145
  },
  {
    "data": {
      "status": 200
    },
    "event": "slack.read",
    "nodeId": "integration",
    "timestamp": 1780869782301
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "slack",
      "latencyMs": 156,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780869782301
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "4fc3e49e-e8e7-46b1-b329-19f900cd7b6f",
    "timestamp": 1780869782301
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "6032ec2f-0183-4356-acdb-612d7daae71f",
    "timestamp": 1780869782308
  },
  {
    "data": {
      "service": "smtp",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780869782308
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "smtp",
      "latencyMs": 500,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780869782810
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "6032ec2f-0183-4356-acdb-612d7daae71f",
    "timestamp": 1780869782810
  }
]