---
related_nodes: ["gmail", "google_drive", "calendar_trigger"]
---

# Google Calendar

Manage Google Calendar in workflows: list, search, read, create, update and delete events, answer invitations, check free/busy, and list, create, update and delete calendars.

## When to Use

- Automating meeting scheduling from form submissions or emails
- Creating calendar events based on workflow triggers
- Answering invitations automatically
- Finding a free slot across several people's calendars
- Keeping a project's own calendar in step with another system

## How It Works

The Google Calendar node runs one Calendar operation, picked from the list. The same operations back the `google_calendar` agent tool group and the `verdalia.api.google_calendar` script module.

- Every operation needs a **Google OAuth connection**.
- Text fields support MiniJinja interpolation from workflow input, for example `{{ input.summary }}`.
- A blank optional field is left out of the request. A blank required field, or a time that is not RFC 3339, fails the node before Google is called.
- An event create, update or delete, and an invitation response, emails other people only when its notification setting is on.

## Configuration

**connection** - Google connection to use
- Select from Settings → Connections
- Agents should call `list_connections` and set `connection` to the returned `id` ULID
- Use `name` only for display; node configuration needs the `id`
- Must be a Google OAuth connection holding the `calendar` scope; a call it lacks the scope for fails with an error asking to reconnect the account
- Required (node validation fails if not selected)

**operation** - Operation to perform, by `op`:
- `list_events`: List events
- `search_events`: Search events by text
- `get_event`: Get one event
- `create_event`: Create an event
- `update_event`: Change an event
- `delete_event`: Delete an event
- `respond_to_invitation`: Answer an invitation
- `free_busy`: Read when calendars are busy
- `list_calendars`: List calendars
- `create_calendar`: Create a secondary calendar
- `update_calendar`: Change a calendar
- `delete_calendar`: Delete a secondary calendar
- Defaults to `list_events`

Times are RFC 3339 with an offset or `Z`, for example `2026-11-05T14:00:00+01:00`.

### Operation: List Events

Events come back in start order, with recurring events expanded into their occurrences.

**calendar_id** - Calendar ID
- `"primary"` (default) is the account's main calendar; other IDs come from List Calendars
- Optional

**time_min** - Only events ending after this time. Optional.

**time_max** - Only events starting before this time. Optional.

**query** - Free text matched against summary, description, location and attendees. Optional.

**options** - Repeatable request modifiers
- `key`: `max_results`; `value`: a number
- Without it, Google's own default applies (up to 250 events)
- Blank rows are skipped and duplicate keys use the last row

### Operation: Search Events

**calendar_id** - Calendar ID. Default `"primary"`.

**query** - Search text. Required.

### Operation: Get Event

**calendar_id** - Calendar ID. Default `"primary"`.

**event_id** - The `id` of an event from List Events. Required.

### Operation: Create Event

**calendar_id** - Calendar ID. Default `"primary"`.

**summary** - Event title. Optional.

**description** - Event description. Optional.

**location** - Event location, such as `"Conference Room A"` or a meeting link. Optional.

**start_time** - Start time. Required.

**end_time** - End time, after `start_time`. Required.

**options** - Repeatable advanced event fields
- `attendees` - comma-separated guest emails
- `send_notifications` - `true` to email the guests; off by default
- Blank rows are skipped and duplicate keys use the last row

### Operation: Update Event

**calendar_id** - Calendar ID. Default `"primary"`.

**event_id** - Event ID. Required.

**summary**, **description**, **location**, **start_time**, **end_time** - New values; leave empty to keep unchanged.

**options** - Repeatable advanced event fields
- `attendees` - comma-separated guest emails; replaces the whole guest list. Leave out to keep the guests.
- `send_notifications` - `true` to email the guests about the change; off by default

### Operation: Delete Event

**calendar_id** - Calendar ID. Default `"primary"`.

**event_id** - Event ID. Required.

**options**
- `send_notifications` - `true` to email the guests the cancellation; off by default

### Operation: Respond to Invitation

Answers as the connection's Google account, which must be a guest of the event.

**calendar_id** - Calendar ID. Default `"primary"`.

**event_id** - Event ID. Required.

**response** - `accepted` (default), `declined` or `tentative`.

**comment** - A note to the organizer. Optional.

**send_notifications** - Email the organizer the answer. Default `false`.

### Operation: Free/Busy

**time_min** - Start of the window. Required.

**time_max** - End of the window. Required.

**calendar_ids** - Comma-separated calendar IDs. A person's email address is their primary calendar's ID. Default `"primary"`.

### Operation: List Calendars

**options** - Repeatable request modifiers
- `key`: `min_access_role`; `value`: `freeBusyReader`, `reader`, `writer` or `owner`
- Blank rows are skipped and duplicate keys use the last row

### Operation: Create Calendar

**summary** - Calendar title. Required.

**description**, **location** - Optional.

**time_zone** - IANA time zone, such as `Europe/Stockholm`. Optional.

### Operation: Update Calendar

**calendar_id** - Calendar ID from List Calendars. Required.

**summary**, **description**, **location**, **time_zone** - New values; leave empty to keep unchanged.

### Operation: Delete Calendar

**calendar_id** - ID of a secondary calendar. Required. Its events are deleted with it; the primary calendar cannot be deleted.

### Retry

**retry** - Whether each Calendar request is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see [Retries](http_get.md#retries) for how attempts and waits work. List Events, Search Events, Get Event and List Calendars are reads, sent again freely, as are Delete Event and Delete Calendar, where a repeated delete can answer "not found" because the first attempt worked. Every other operation, Free/Busy included, is a write, sent again only when Google refused it before acting: the connection never opened, or Google answered 425 or 429. The `google_calendar` tool group takes the same setting.

## Inputs

**input** - Any input
- Used to trigger the node
- Data can be accessed for template interpolation
- Required

## Outputs

**output** - The operation's result.

- List Events, Search Events, List Calendars: Google's list, with `items` and, when more exist, `nextPageToken`
- Get, Create, Update Event and Respond to Invitation: the event as Google stores it
- Create and Update Calendar: the calendar as Google stores it
- Delete Event: `{"deleted": true, "event_id": "..."}`
- Delete Calendar: `{"deleted": true, "calendar_id": "..."}`
- Free/Busy: busy periods by calendar ID

List Events:
```json
{
  "items": [
    {
      "id": "abc123def456",
      "summary": "Team Meeting",
      "location": "Conference Room A",
      "start": {"dateTime": "2026-03-15T14:00:00-07:00", "timeZone": "America/Los_Angeles"},
      "end": {"dateTime": "2026-03-15T15:00:00-07:00", "timeZone": "America/Los_Angeles"},
      "attendees": [
        {"email": "alice@example.com", "responseStatus": "accepted"},
        {"email": "bob@example.com", "responseStatus": "needsAction"}
      ],
      "organizer": {"email": "you@example.com"},
      "htmlLink": "https://www.google.com/calendar/event?eid=abc123"
    }
  ],
  "nextPageToken": "next_page_token_123"
}
```

Free/Busy:
```json
{
  "calendars": {
    "alice@example.com": {
      "busy": [{"start": "2026-03-15T09:00:00+00:00", "end": "2026-03-15T10:00:00+00:00"}]
    },
    "unknown@example.com": {"busy": [], "errors": [{"reason": "notFound"}]}
  }
}
```

## Agent tools

The `google_calendar` tool group offers `calendar_list_events`, `calendar_search_events`, `calendar_get_event`, `calendar_view_attachment`, `calendar_create_event`, `calendar_update_event`, `calendar_delete_event`, `calendar_respond_to_invitation`, `calendar_free_busy`, `calendar_list_calendars`, `calendar_create_calendar`, `calendar_update_calendar` and `calendar_delete_calendar`. Each has a switch that defaults on. Tool names carry the connection's handle (`google_freja__calendar_create_event`).

- Reads run freely.
- `calendar_get_event` returns the Google Calendar resource in `event` and file references in `attachments`. [View Calendar Attachment](/docs/tools/GoogleCalendarViewAttachmentTool) opens a listed file with the same Google connection, which also needs access to that file in Drive. Its switch is `view_attachment`.
- Creating, updating or deleting an event, and answering an invitation, are send, whatever the arguments: under the default meter the agent asks first.
- Creating and updating a calendar are write; deleting a calendar is delete.

## Examples

### Create Meeting from Email

```
[Gmail: ListEmails]
  Config: query = "subject:meeting request"

[AI Agent: Extract Meeting Details]
  → topic, meeting_time, meeting_end, attendees

[Google Calendar: CreateEvent]
  Config:
    summary: {{input.topic}}
    start_time: {{input.meeting_time}}
    end_time: {{input.meeting_end}}
    options:
      - key: attendees
        value: {{input.attendees}}
      - key: send_notifications
        value: true
```

### Accept Invitations from a Teammate

```
[Calendar Trigger: new event]

[Google Calendar: RespondToInvitation]
  Config:
    event_id: {{input.event_id}}
    response: accepted
    send_notifications: true
```

### Find a Free Slot

```
[Google Calendar: FreeBusy]
  Config:
    time_min: {{input.day_start}}
    time_max: {{input.day_end}}
    calendar_ids: "primary, alice@example.com"
```

## Runtime Errors

| Error | Cause | Remediation |
|-------|-------|-------------|
| Connection not selected or unavailable | `connection` is empty or does not point to a usable Google connection | Use `list_connections`, then set `connection` to the returned `id` ULID |
| No Google Calendar access | The connection lacks the `calendar` scope | Reconnect the Google account and allow Calendar |
| Could not find the requested item | Wrong event or calendar ID | Use IDs from List Events or List Calendars |
| `<field>` must be an RFC 3339 timestamp | A time without an offset or in another format | Use `2026-03-15T14:00:00-07:00` or `...Z` |
| No invitation for this Google account to answer | The account is not a guest of the event | Respond only to events the account was invited to |

## Common Mistakes

- **Mistake**: Using display names instead of calendar IDs
  - Fix: Use calendar IDs like `"primary"` or `"company.com_xxx@group.calendar.google.com"`
- **Mistake**: Attendees not receiving invites
  - Fix: Add an `options` row with `key = send_notifications` and `value = true`
- **Mistake**: Replacing guests by accident on update
  - Fix: `attendees` on Update Event is the whole new guest list; leave it out to keep the guests

## Tips

- Use the `htmlLink` field to give users a direct link to an event
- Check `accessRole` from List Calendars before creating events in a calendar
- Use `recurringEventId` to identify occurrences of a recurring event
