Automatically Add Travel Time Blockers to Calendar using Google Directions API
Automatically add Travel time blockers before Appointments
This bot automatically adds Travel time blockers to your calendar, so you never come late to an appointment again.
How it works
Trigger**: The workflow is initiated daily at 7 AM by a "Schedule Trigger". AI Agent**: An "AI Agent" node orchestrates the main logic. Fetch events**: It uses the get_calendar_events tool to retrieve all events scheduled for the current day. Identify events with location**: It then filters these events to identify those that have a specified location. Check for existing travel time Blockers*: For each event with a location, it checks if a Travel time blocker already exists. Events that *do not have such a blocker are marked for processing. Calculate travel time: Using the Google Directions API it determines how lot it takes to get to the location of the event. The starting location is by default your Home Address, unless there is a previous event within 2 hours before the event, in which case it will use the location of that previous event. Create Travel time blocker: Finally, it uses the create_calendar_event tool to create the Travel time blocker with a duration equal to the calculated travel time + 10 minutes for buffer.
Set up steps
Set Variables Home address Blocker name Mode of Transportation Connect your LLM Provider Connect your Google Calendar Connect your Google Directions API
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
🤖 Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments