Automatically add travel time blockers to calendar using Google Directions API
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on a schedule (every day at 07:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Google Calendar.
How it runs
Trigger: On a schedule (every day at 07:00) (plus 1 other trigger).
- Set Defaults (Edit Fields (Set)): sets 3 fields: home, mode, Blocker name
- Call Google Directions API (HTTP Request): calls an HTTP API
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 3 tools (travel_directions, get_calendar_events, create_calendar_event); memory: Simple Memory
- set Travel_time (Edit Fields (Set)): sets 1 field: Travel_time
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger
From the author
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…