π₯ Employee time tracking system with GPT-4o reports & Gmail notifications
β‘ 294 views Β· π₯ HR & Recruitment
Description
Overview
This workflow acts as an AI-powered smart time tracker for employees or personal use.
It records work sessions via a webhook, logs start/end/break times into n8n Data Tables,
and uses OpenAI to automatically summarize working patterns and send reminders or monthly reports via Gmail.
How It Works
- Webhook
/track-timeβ Receives aPOSTrequest with amethod(start,break, orend) and duration if applicable. - Switch Logic β Directs the request to create or update the appropriate record in your Data Table.
- Data Tables β Store timestamps, break durations, and worker IDs in a secure local table.
- Schedule Triggers
- Daily (10:00) β Checks if todayβs shift was not started and sends a reminder.
- Monthly (Day 1, 06:00) β Compiles last monthβs working data and sends an AI report to management.
- OpenAI Analysis
- Summarizes working hours and productivity trends.
- Detects missed clock-ins or irregular patterns.
- Gmail Integration β Sends formatted daily or monthly reports to both employees and supervisors.
Example Webhook Requests
# Start work
POST /track-time
{
"method": "start",
"headers": { "id": "EMP001" }
}
# Log a break
POST /track-time
{
"method": "break",
"duration": 15,
"headers": { "id": "EMP001" }
}
# End work
POST /track-time
{
"method": "end",
"headers": { "id": "EMP001" }
}
# Example Email Output
Subject: βWorkday Summary β EMP001β
π Workday completed successfully
Start: 09:00
Break: 15 minutes
End: 17:45
AI Summary:
Consistent work pattern detected this week. Consider shorter but more frequent breaks.
## π Nodes Used
Webhook, Gmail, Schedule Trigger, OpenAI, Data table
## π₯ Import
Download [`workflow.json`](workflow.json) and import into n8n:
**Workflow menu β Import from File**
[π Importing guide](../../../docs/importing-templates.md) Β· [π Credential setup](../../../docs/credential-setup.md)