Skip to main content

Employee time tracking system with GPT-4o reports & Gmail notifications

Workflow preview

Workflow preview
100%
Employee time tracking system with GPT-4o reports & Gmail notifications preview
Open on n8n.io

Important notice

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

1. Workflow 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 aut...

Best for

  • HR automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.switch, n8n-nodes-base.stickynote, n8n-nodes-base.respondtowebhook, n8n-nodes-base.webhook, n8n-nodes-base.if, n8n-nodes-base.datatable, @n8n/n8n-nodes-langchain.openai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jose Castillo.

Original n8n.io source

1.1 Workflow description

Title
Employee time tracking system with GPT-4o reports & Gmail notifications
Workflow name
Employee time tracking system with GPT-4o reports & Gmail notifications

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

  1. Webhook /track-time → Receives a POST request with a method (start, break, or end) and duration if applicable.
  2. Switch Logic → Directs the request to create or update the appropriate record in your Data Table.
  3. Data Tables → Store timestamps, break durations, and worker IDs in a secure local table.
  4. 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.
  5. OpenAI Analysis
    • Summarizes working hours and productivity trends.
    • Detects missed clock-ins or irregular patterns.
  6. 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Set Break Duration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.1

Block 3 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 8 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Webhook - Track Time

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 10 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Get row(s)

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 12 - Update row(s)

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 13 - ERROR

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Insert row

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 15 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Get row(s)2

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 17 - Update row(s)1

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 18 - ERROR1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 19 - end

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 21 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Message a model1

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 23 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - ANALYZE TIME ENTRIES

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Showing the first 24 of 33 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Employee time tracking system with GPT-4o reports & Gmail notifications
Complexity advanced
Nodes 33
Categories HR, AI Summarization
Author Jose Castillo
Published 26 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10189/10189.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Employee time tracking system with GPT-4o reports & Gmail notifications do?

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 aut...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your HR, AI Summarization use case.