πŸ”§ Track student arrival with iOS automation, Google Sheets & email alerts

⚑ 218 views Β· πŸ”§ Miscellaneous

Description

This workflow automates real-time student tracking using iOS Shortcuts and geolocation data, notifying both teachers and parents based on geofenced logic.

🎯 What This Workflow Does

πŸ”„ Workflow Steps

StepDescription
Location Update WebhookTriggered via iOS Shortcut when student location updates
Process Location DataExtracts coordinates and metadata
Student Arrived?Checks if student entered school zone
Log School ArrivalAdds arrival data to Google Sheet
At School?Double-checks geofence condition before notifying
Notify TeacherSends email if student is confirmed at school
Notify ParentSends email to parent (can vary based on geofence logic)
Success ResponseReturns a 200 response to the triggering device

🧠 How the Logic Works

  1. The student’s phone runs a shortcut when near school.
  2. Sends coordinates to webhook.
  3. Workflow compares coordinates with predefined geofence (e.g., radius around school).
  4. If inside school zone:
    • Log arrival
    • Notify teacher and/or parent
  5. Else:
    • Optionally notify parent only

πŸ“± iOS Shortcut Sample (Trigger Setup)

POST URL:

https://your-n8n-instance.com/webhook/location-update

Body Example:

{
  "student_id": "STU042",
  "student_name": "Anaya Joshi",
  "lat": 19.0760,
  "lng": 72.8777,
  "timestamp": "2025-08-06T08:05:00"
}

πŸ“Š Google Sheets Logging

Student IDNameDateTimeStatus
STU042Anaya Joshi2025-08-0608:05Arrived

βš™οΈ Setup Requirements

πŸ”— Nodes Used

Send Email, HTTP Request, Webhook

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup