LLM Calendar Scheduling: Automate Google Calendar Operations

This workflow automates enterprise calendar management using Google Calendar and OpenAI's GPT-4. Key nodes include Webhook Trigger (receives scheduling queries), Execute Workflow Trigger (handles sub-agent execution), Condition (validates API keys and queries), Set (processes queries with timezone handling), AI Agent (executes calendar operations), Google Calendar Tool (manages events), Memory Buffer Window (maintains session context), and Webhook Response (returns results). It leverages Google Calendar for event management and GPT-4 for intelligent scheduling. Install n8n from n8n.io for self-hosting or sign up at cloud.n8n.io. Obtain Google Calendar OAuth2 credentials via console.cloud.google.com and configure them in Google Calendar Tool nodes. Get an OpenAI API key from openai.com and set it in the GPT-4 node ('gpt-4o'). Set DEVHUB_CALENDAR_API_KEY for authentication and DEVHUB_CALENDAR_EMAIL for the target calendar. Configure Webhook Trigger with a POST endpoint at '/calendar-agent' and enable CORS headers. Ensure Google Calendar nodes use ISO 8601 time formats and reference the correct calendar ID. Test by sending a POST request (e.g., {query: 'Schedule meeting with team@company.com tomorrow at 2pm', operation: 'create', sessionId: 'test123', timezone: 'America/New_York'}) with a valid X-API-Key. Verify Condition nodes detect invalid API keys (returns 401) or empty/long queries (returns 400 with examples). Check Webhook Response for structured results with event details, request IDs, and performance metrics. Missing Google Calendar or OpenAI credentials cause processing failures; invalid event IDs or time formats return errors. Deploy by activating the workflow and setting environment variables. Validate outputs for accurate event creation, updates, or deletions, ensuring conflict detection, attendee notifications, and timezone accuracy.

$6.99

Workflow steps: 20

Integrated apps: webhook, executeWorkflowTrigger, if

LLM Calendar Scheduling: Automate Google Calendar Operations preview