{
  "name": "Attendance Alerts",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "attendance-alert",
        "options": {}
      },
      "id": "1a2b3c4d-attendance-webhook",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "fromEmail": "admin@campusflow.edu",
        "toEmail": "={{ $json.body.student_email }}",
        "subject": "Low Attendance Warning",
        "text": "={{ 'Dear Student, your attendance has dropped to ' + $json.body.attendance_percentage + '%. Please ensure you meet the minimum requirement of 75%.' }}",
        "options": {}
      },
      "id": "2b3c4d5e-send-email",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2,
      "position": [
        450,
        300
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "versionId": "f0fe7d71-c0c1-4b13-9f5e-14fbdb7d6db0",
  "id": "attendance-alert-workflow",
  "tags": []
}