Developer & DevOps

Automatically log work and break times to Notion via webhooks

30 nodes 296 158 Webhook
Download

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. 1.Receive incoming webhook request containing session type (work or break)
  2. 2.Validate request data and determine whether period is starting or ending
  3. 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

Notion

Details

Trigger Webhook
Nodes 30
Apps 1
Views 296
Downloads 158

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (30)

/

Create new page

Notion

#1

Update page with end date

Notion

#2

If pause_in_minuten is empty

If

#3

If page responded

If

#4

If page exist

If

#5

If page exist1

If

#6

If

If

#7

Set Break Duration

Set

#8

Update break duration for current day

Notion

#9

Set break duration for current day

Notion

#10

Get notion page by date

Notion

#11

Set Message - End time already tracked

Set

#12

Set Message - End time tracked

Set

#13

Set Message - Start time not yet tracked

Set

#14

Set Message - Start not yet tracked

Set

#15

Set Message - Break time tracked

Set

#16

Set Message - Break time updated

Set

#17

Set Message - Start time already tracked

Set

#18

Set Message - Start time already tracked1

Set

#19

Get notion page with todays date

Notion

#20

Switch

Switch

#21

Get notion page with todays date1

Notion

#22

Sticky Note

Sticky Note

#23

Sticky Note1

Sticky Note

#24

Sticky Note2

Sticky Note

#25

Sticky Note3

Sticky Note

#26

Sticky Note4

Sticky Note

#27

Respond to Webhook

Webhook

#28

Sticky Note5

Sticky Note

#29

Webhook - Track Time

Webhook

#30