AI Calendar Management Agent using LLMs - n8n Workflow

Automate Google Calendar event creation, deletion, and retrieval using an intelligent AI agent. Import this powerful n8n workflow to streamline task management.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Automation specialists looking for advanced n8n templates utilizing AI Agents.
Users who need to manage Google Calendar events conversationally via an upstream n8n workflow.


  • Developers integrating AI reasoning and tool use into complex n8n workflows.

Overview

This powerful n8n workflow acts as a specialized sub-agent dedicated entirely to Google Calendar operations. It addresses the complexity of needing dynamic routing for event management (Get, Create, Delete events) based on unstructured natural language input. By utilizing the advanced reasoning capabilities of an OpenAI model configured as an AI Agent, this specific n8n workflow accurately parses user requests—such as "Schedule a quick call tomorrow at 10 am"—and selects the correct Google Calendar n8n node, extracting all necessary parameters (like start time, end time, and summary) dynamically. This is a critical component for building robust conversational AI systems using n8n templates, significantly reducing the manual complexity of setting up conditional logic within the overall n8n workflow.

How it Works

This process starts with the When Executed by Another Workflow n8n trigger, which receives text (the user command) and a sessionid from a parent process. The primary component is the AI Agent n8n node. This agent is configured with a detailed system prompt defining its role as a calendar assistant and connecting it to three specific Google Calendar n8n nodes:


  1. Google Calendar Tool (Get): Used for listing existing events.

  2. Google Calendar Tool (Create): Used for adding new events.

  3. Google Calendar Tool (Delete): Used for removing events by ID.

The AI Agent uses an OpenAI Chat Model (GPT-4.1-mini) and a Simple Memory n8n node, keyed by the sessionid, to maintain context across conversational turns. The agent analyzes the incoming text and determines which of the three Google Calendar n8n node tools is required. It intelligently extracts necessary arguments (e.g., event dates, summary, or ID) using the special $fromAI expression provided by the n8n framework, executing the chosen action. The final output of the selected Google Calendar n8n node is then returned back up to the AI Agent, which summarizes the result before returning confirmation to the originating parent n8n workflow.

Installation Guide


  1. Import the n8n workflow: Copy the provided JSON data and paste it directly into your n8n instance using the "New" -> "Import from JSON" function.

  2. Setup OpenAI Credentials: Locate the OpenAI Chat Model n8n node. You must link or create your OpenAI API key credentials for the language model to function.

  3. Setup Google Calendar Credentials: Locate the Get, Create, and Delete Google Calendar n8n nodes. Each must be authenticated using the appropriate Google Calendar OAuth2 API credentials linked to the calendar you wish to manage.

  4. Configuration: Ensure the calendar ID used in the Google Calendar n8n nodes is correctly set for your environment.

  5. Execution: This n8n template is designed as a sub-workflow. It must be executed by a separate parent n8n workflow using the Execute Workflow n8n node, passing the required text and sessionid inputs.

Node Details

When Executed by Another Workflow (n8n trigger):
Function: Acts as the starting point, triggered by a parent n8n workflow.
Key Configuration: Accepts workflow inputs named text (the user command) and sessionid (for conversational history).
AI Agent (n8n node):
Function: The core reasoning engine. It interprets the user's text and selects the appropriate Google Calendar tool from the connected n8n node options.
Key Configuration: Uses a detailed system prompt defining its role as a calendar assistant and dynamically links the Chat Model, Memory, and all three Google Calendar tools.
OpenAI Chat Model (n8n node):
Function: Provides the large language model capabilities (LLM) for the AI Agent's decision-making and tool argument extraction.
Key Configuration: Uses the gpt-4.1-mini model. Requires API credentials.
Simple Memory (n8n node):
Function: Maintains conversational history using the incoming sessionid input, crucial for multi-turn requests within the n8n workflow.
Key Configuration: Session Key is dynamically set to ={{ $json.sessionid }}.
Google Calendar Tool - Create (n8n node):
Function: Executes the creation of a new calendar event.
Key Configuration: Parameters like start, end, and summary are dynamically pulled from the AI Agent using $fromAI expressions.
Google Calendar Tool - Get (n8n node):
Function: Retrieves a list of calendar events based on date ranges.
Key Configuration: timeMax and timeMin (Before and After) are set dynamically via $fromAI expressions by the AI Agent.

Related n8n Workflows

Free

Nodes: 6 Nodes
Updated: December 26 2025
View all
Created by

Automation strategist and AI workflow architect creating intelligent, agent-driven processes that streamline operations. I build advanced n8n solutions integrating AI, cloud services, and real-time data orchestration for scalable impact. Explore my free workflows to get started. Premium, custom-built solutions are also available. Connect with me on LinkedIn for tailored automation expertise.

Featured*