{
  "name": "Monthly Executive Summary Report",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "monthly-report",
        "options": {}
      },
      "id": "node-trigger-monthly-report",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        100,
        240
      ]
    },
    {
      "parameters": {
        "toEmail": "ceo@albsaer.com",
        "subject": "=التقرير التنفيذي الشهري - معهد البصائر - لشهر {{ $json.month }}",
        "html": "=مرحباً الإدارة الموقرة،<br><br>مرفق لكم مؤشرات الأداء الإجمالية (KPIs) لشهر <strong>{{ $json.month }}</strong>:<br><ul><li>عدد الطلاب النشطين: <strong>{{ $json.active_students }}</strong></li><li>نسبة الحضور الإجمالية: <strong>{{ $json.average_attendance }}%</strong></li><li>عدد الإنذارات الصادرة: <strong>{{ $json.total_warnings }}</strong></li></ul><br>مع تحيات نظام الأتمتة.",
        "options": {}
      },
      "id": "node-email-monthly-report",
      "name": "Send Email to Administration",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2,
      "position": [
        300,
        240
      ]
    }
  ],
  "connections": {
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Send Email to Administration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "monthly-report-version-1",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "monthlyReportWorkflow"
}
