Skip to main content

Student absence alerts via email & WhatsApp with attendance tracking

Workflow preview

Student absence alerts via email & WhatsApp with attendance tracking preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

Overview

๐Ÿ“˜ 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 (e.g., 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 (e.g., 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 Email Phone
ST101 Aryan Shah [email protected] +919123456789

๐Ÿงพ Expected Input Format Example

{
  "studentId": "ST101",
  "name": "Aryan Shah",
  "email": "[email protected]",
  "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 in 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