{
  "name": "TrustField Agentic Weekly Audit",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "weeksInterval": 1,
              "triggerAtDay": [
                0
              ],
              "triggerAtHour": 9
            }
          ]
        }
      },
      "id": "schedule",
      "name": "Sunday 09:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "command": "./scripts/agentic_weekly_audit.sh"
      },
      "id": "audit",
      "name": "Run Weekly Audit",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        480,
        300
      ]
    },
    {
      "parameters": {
        "chatId": "={{$env.TELEGRAM_CHANNEL_ID}}",
        "text": "={{$json.stdout}}"
      },
      "id": "telegram",
      "name": "Telegram Digest",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        720,
        300
      ]
    }
  ],
  "connections": {
    "Sunday 09:00": {
      "main": [
        [
          {
            "node": "Run Weekly Audit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Weekly Audit": {
      "main": [
        [
          {
            "node": "Telegram Digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "description": "RZ-Logic workflow #10 pattern \u2014 local fallback: ./scripts/agentic_weekly_audit.sh"
  }
}