See llms.txt for all machine-readable content.

Back to Templates

Track student attendance from CSV, email parents, and build an HTML dashboard

๐Ÿš€ Overview

Automatically monitors daily student attendance from CSV files, identifies absent students, sends parent email alerts via SMTP, calculates risk scores, and generates an interactive HTML dashboard โ€” all on a weekday schedule with no manual work needed.

โš™๏ธ How it works

  1. Schedule trigger โ€” runs Mondayโ€“Friday at 17:30
  2. Data ingestion โ€” reads student_attendance.csv and filters to today's records only
  3. Absence check โ€” splits students into Absent / Present branches
  4. Contact merge โ€” matches absent students with parent data from student_contacts.csv
  5. Alert logic โ€” calculates risk level, attendance %, consecutive streak, and trend (Improving / Stable / Worsening)
  6. Parent email โ€” sends a colour-coded HTML alert via SMTP for each absent student
  7. Dashboard builder โ€” generates dashboard.html with 5 tabs: Today, Weekly, Monthly, Full History, and At-Risk
  8. Report update โ€” appends records to attendance_report.csv for historical tracking

๐Ÿ›  Setup steps

  1. Upload student_attendance.csv to the n8n files folder
  2. Upload student_contacts.csv to the n8n files folder
  3. Create an empty attendance_report.csv in the n8n files folder
  4. Add smtp_user in Settings โ†’ Variables
  5. Configure SMTP credentials in the Send Email node
  6. Adjust the cron schedule if needed (default: 17:30 Monโ€“Fri)

๐Ÿ”ง Required CSV formats

student_attendance.csv

StudentID Date Status Class Subject Teacher
S101 12-01-2026 Absent Grade 6 Math Mr Singh

student_contacts.csv

StudentID ParentName Email Phone
S101 Anita Kumar parent@email.com +919999999999

๐Ÿ“Š Dashboard Preview

Dashboard Preview 1

Dashboard Preview 2