What This Workflow Does
The FocusTime workflow automatically analyzes your Google Calendar to identify available time slots for focused work. It runs on a scheduled basis and checks your entire week to determine which days already have 6 or more hours of meetings booked, helping you plan uninterrupted work time more effectively.
How It Works
The workflow operates through a series of integrated steps that examine your calendar data and apply logical filtering:
- Executes on a scheduled time, ideally before your workday begins
- Connects to your Google Calendar to retrieve all events from Sunday through Saturday of the current week
- Processes calendar data through custom code to calculate total hours booked per day
- Applies conditional logic to identify days with 6 or more hours of existing commitments
- Generates a list of available focus time opportunities
- Creates a sticky note or notification with the results for easy reference
Use Cases
- Knowledge workers who need to block out deep work sessions can identify which days have capacity for 2+ hour focus blocks
- Project managers can automatically flag heavily booked days to avoid scheduling additional meetings
- Freelancers can determine optimal days for client work versus administrative tasks based on existing commitments
- Team leads can understand their personal availability before committing to new projects or responsibilities
- Students can identify study time opportunities by recognizing days with lighter class or commitment schedules
Nodes Used
- Schedule Trigger: Sets the execution time for the workflow, typically scheduled before work hours begin
- Google Calendar: Retrieves all calendar events for the current week from your Google Calendar account
- Code: Custom JavaScript logic that calculates total hours booked per day
- If: Conditional node that filters days based on the 6-hour threshold
- Item Lists: Organizes and structures the filtered calendar data
- Sticky Note: Creates a visual summary or notification of available focus time slots
Prerequisites
- An active n8n instance or n8n Cloud account
- A Google account with Google Calendar enabled and populated with your schedule
- Google Calendar API credentials properly configured in n8n
- Permission to install and execute n8n workflows
- Basic understanding of workflow scheduling and trigger times
Difficulty Level
Intermediate. This workflow requires setting up Google Calendar authentication credentials and understanding how to configure scheduled triggers. Users should be comfortable connecting external services to n8n but do not need advanced coding knowledge, as the logic is pre-built.
This workflow template is shared under the n8n fair-code license. Free to use and modify.
Leave a Reply