{
  "name": "Spending Threshold Alert",
  "nodes": [
    {
      "name": "Every 4 Hours",
      "type": "n8n-nodes-base.cron",
      "position": [0, 0],
      "parameters": {
        "triggerTimes": {
          "item": [
            { "hour": 10 },
            { "hour": 14 },
            { "hour": 18 },
            { "hour": 22 }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Run Check",
      "type": "n8n-nodes-base.httpRequest",
      "position": [200, 0],
      "parameters": {
        "url": "http://192.168.7.6:18789/hooks/agent",
        "method": "POST",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "task",
              "value": "Run ~/.openclaw/scripts/spending-alert.py and parse the JSON output. If should_alert is true, send the alert_message to Brandon via Signal. Otherwise reply with just the total spent today."
            }
          ]
        },
        "options": { "timeout": 60000 }
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Every 4 Hours": { "main": [[{ "node": "Run Check", "type": "main", "index": 0 }]] }
  },
  "settings": { "timezone": "America/Denver" },
  "active": false
}
