Templates / Auto-block focus time in Google Calendar on busy days

Auto-block focus time in Google Calendar on busy days

Needs changes

by Moe Ahad ✓ · 183 views · created 2025-07-21 · Personal Productivity

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Item Lists (legacy). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 8 nodes and runs on a schedule (cron 0 8 * * *). Along the way it connects Google Calendar.

How it runs

Trigger: On a schedule (cron 0 8 * * *).

  1. Get Full Week Events (Google Calendar): get many
  2. Calculate Full Week Focus Time Slots (Code): runs custom JavaScript code
  3. Should Create Focus Time? (If): checks a condition and branches into true / false
  4. Split Free Slots (Item Lists): reshapes item lists (legacy Item Lists node)
  5. Log No Focus Time Needed (Code): runs custom JavaScript code
  6. Create Focus Time Event (Google Calendar): uses Google Calendar
  7. Log Results (Code): runs custom JavaScript code

Services it uses

Google Calendar

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Item Lists (legacy) in Split Free Slots: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
Item Lists (legacy)
Split Free Slots
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)

Nodes used (5)

From the author

How it works: - This flow checks the user's Google calender of events from Sunday to Saturday of current week, to determine how many hours have been booked each day. - If a day has over 6 hours booked, it blocks out the remaining work hours for dedicated…

Excerpt from Moe Ahad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.