Automatically log work and break times to Notion via webhooks
Workflow Description
This automation captures incoming webhook signals to record when work and break periods start or end, then stores timestamped entries in a Notion database while automatically calculating session duration for analysis and reporting.
How it works
- 1.Receive incoming webhook request containing session type (work or break)
- 2.Validate request data and determine whether period is starting or ending
- 3.Store timestamped entry in Notion table with calculated duration and session details
Use cases
- Track employee work hours and breaks automatically from external applications
- Generate accurate time reports in Notion for payroll, productivity audits, and compliance
- Monitor work-break balance to prevent burnout and ensure scheduled rest periods
Requirements
- Connect Notion account and create database with fields for timestamp, session type, and duration
- Configure active webhook endpoint to receive signals from client apps or external systems
- Document the signal-sending mechanism (when work/break sessions start and stop)
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (30)
Create new page
Notion
Update page with end date
Notion
If pause_in_minuten is empty
If
If page responded
If
If page exist
If
If page exist1
If
If
If
Set Break Duration
Set
Update break duration for current day
Notion
Set break duration for current day
Notion
Get notion page by date
Notion
Set Message - End time already tracked
Set
Set Message - End time tracked
Set
Set Message - Start time not yet tracked
Set
Set Message - Start not yet tracked
Set
Set Message - Break time tracked
Set
Set Message - Break time updated
Set
Set Message - Start time already tracked
Set
Set Message - Start time already tracked1
Set
Get notion page with todays date
Notion
Switch
Switch
Get notion page with todays date1
Notion
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Respond to Webhook
Webhook
Sticky Note5
Sticky Note
Webhook - Track Time
Webhook