Oneclick AI Squad

Oneclick AI Squad

Student Absence Alerts via Email & WhatsApp with Attendance Tracking

πŸ“˜ Student Absence Alerts & Attendance Tracking Automation

Automatically alerts parents about student absences and tracks 30-day attendance patterns to identify risks and trends.

πŸ”§ Main Components

  • Daily Attendance Check – 10:30 AM
    Triggers the workflow every day at 10:30 AM.

  • Read Today's Attendance
    Retrieves current-day attendance records from the source Excel or database.

  • Read Student Contacts
    Reads contact details (email, phone) of students for alert delivery.

  • Process Absent Students
    Identifies students who are absent and unexcused for the day.

  • Prepare Absence Email
    Generates customized email content for absent students.

  • Send Absence Email
    Sends an absence alert email to the student's parent/guardian.

  • Prepare Absence SMS
    Formats WhatsApp-friendly message for alerts.

  • Send Absence WhatsApp
    Sends the WhatsApp message using API (eg, Facebook Graph).

  • Generate Attendance Report
    Prepares a daily attendance summary with absence level classifications.

  • Save Attendance Report
    Appends the generated report to a historical attendance sheet.

⚠️ Alert Logic

Based on the past 30-day absence pattern, the system classifies students into:

Level Absences in 30 Days Status
πŸ”΄ High 5+ Critical Alert
🟑 Medium 3–4 Warning
🟒 Low 1–2 Low Risk

πŸ“Š Tracking Features

  • πŸ”’ Attendance Rate Calculation – Tracks each student's attendance percentage
  • πŸ” Pattern Analysis – Detects recurring absenteeism trends
  • 🚨 Risk Identification – Flags high-risk students for early intervention
  • πŸ“ˆ Historical Reporting – Maintains daily logs for future reference

βœ… Essential Prerequisites

  • Excel sheet or database with daily attendance logs
  • Excel sheet or database with student contact details
  • SMTP credentials for sending emails
  • WhatsApp API integration (eg, Facebook Graph or Twilio)
  • Storage access for saving attendance reports

πŸ“ Required Excel File Structures

Attendance Sheet ( daily_attendance.xlsx )

Student ID Date Status
ST101 2025-08-06 Absent

Contacts Sheet ( student_contacts.xlsx )

Student ID Name E-mail Phone
ST101 Aryan Shah aryan@example.com +919123456789

🧾 Expected Input Format Example

 {
 "studentId": "ST101",
 "name": "Aryan Shah",
 "email": "aryan@example.com",
 "phone": "+919123456789",
 "status": "Absent",
 "date": "2025-08-06"
 }

πŸš€ Key Features

  • ⏰ Scheduled Daily Execution – Automated tracking at 10:30 AM
  • βœ‰οΈ Multi-Channel Notifications – Email + WhatsApp alerts to parents
  • πŸ“Š Absence Pattern Monitoring – 30-day trend analysis
  • 🧠 Risk-Based Alerts – Smart classification into alert levels
  • πŸ—‚οΈ Daily Reports – Easy to audit attendance summary logs

βš™οΈ Quick Setup Guide

  1. Import Workflow JSON into n8n.
  2. Configure schedule trigger at 10:30 AM.
  3. Set Excel file paths in "Read Today's Attendance" and "Read Student Contacts".
  4. Customize absence thresholds in the β€œProcess Absent Students” node.
  5. Add SMTP details for the β€œSend Absence Email” node.
  6. Integrate WhatsApp API into the β€œSend Absence WhatsApp” node.
  7. Test with mock data and review reports.
  8. Activate the workflow.

πŸ”§ Parameters to Configure

Parameter Description
attendance_file_path Path to today's attendance records
contacts_file_path Path to student contacts sheet
smtp_user Email username for SMTP server
smtp_password Password for SMTP server
whatsapp_api_url Endpoint for sending WhatsApp messages
alert_thresholds Absence count thresholds for alerts
Do you want to automate your business?

Let's talk about your project