Google Calendar
connector.google_calendar · connector.google_calendar_trigger · productivity, calendar
Create, read, update and delete events and calendars, check free/busy time, and react to event changes.
Vendor API documentation: https://developers.google.com/workspace/calendar/api/v3/reference
Authentication
| Method | Credential kind | Auth kind | Fields | Test request |
|---|---|---|---|---|
| Google account (OAuth2) | google_calendar/oauth2 | oauth2_auth_code | client_id, client_secret (secret) | yes |
| Google service account | google_calendar/service_account | jwt_service_account | client_email, private_key (secret), subject | yes |
Actions
Node type connector.google_calendar. Choose a resource and an operation; each operation has its own parameters.
Calendar
| Operation | ID | Effect | Paginated | Cassette tests |
|---|---|---|---|---|
| Check availability | calendar.availability | reads | 3 | |
| Query free/busy for several calendars | calendar.query_free_busy | reads | 1 | |
| Get a calendar | calendar.get | reads | 2 | |
| List calendars | calendar.list | reads | yes | 1 |
| Create a calendar | calendar.create | writes | 1 | |
| Update a calendar | calendar.update | writes | 1 | |
| Delete a secondary calendar | calendar.delete | writes | 1 | |
| Clear the primary calendar | calendar.clear | writes | 1 |
Check availability
Operation calendar.availability. Ask whether one calendar is free during a time window, or list its busy slots.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
time_min | datetime | yes | Start of window. | ||
time_max | datetime | yes | End of window. | ||
time_zone | string | IANA time zone used for times in the response. Defaults to UTC. | |||
output_format | options | "availability" | One of availability, bookedSlots, raw. |
Query free/busy for several calendars
Operation calendar.query_free_busy. Returns one item per calendar with its busy intervals.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendars | string | yes | Comma separated calendar IDs or group emails. | ||
time_min | datetime | yes | Start of window. | ||
time_max | datetime | yes | End of window. | ||
time_zone | string | ||||
group_expansion_max | number | Maximum calendars returned for one group (max 100). | |||
calendar_expansion_max | number | Maximum calendars to return in total (max 50). |
Get a calendar
Operation calendar.get.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. |
List calendars
Operation calendar.list. Calendars on the user’s calendar list.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
return_all | boolean | false | |||
limit | number | 50 | return_all = false | ||
min_access_role | options | Only return calendars where the user has at least this role. One of freeBusyReader, reader, writer, owner. | |||
show_hidden | boolean | false | |||
show_deleted | boolean | false |
Create a calendar
Operation calendar.create.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
summary | string | yes | Title. | ||
description | string | ||||
location | string | ||||
time_zone | string |
Update a calendar
Operation calendar.update.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | yes | Values from lookup calendars. | ||
summary | string | Title. | |||
description | string | ||||
location | string | ||||
time_zone | string |
Delete a secondary calendar
Operation calendar.delete.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | yes | Values from lookup calendars. |
Clear the primary calendar
Operation calendar.clear. Deletes every event on the account’s primary calendar.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. |
Event
| Operation | ID | Effect | Paginated | Cassette tests |
|---|---|---|---|---|
| Create an event | event.create | writes | 3 | |
| Get an event | event.get | reads | 2 | |
| List events | event.list | reads | yes | 2 |
| List instances of a recurring event | event.instances | reads | yes | 1 |
| Update an event | event.update | writes | 2 | |
| Delete an event | event.delete | writes | 1 | |
| Move an event to another calendar | event.move | writes | 1 | |
| Quick add from text | event.quick_add | writes | 1 |
Create an event
Operation event.create.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
summary | string | Title. | |||
start | datetime | yes | RFC 3339 date-time, or a date for all-day events. | ||
end | datetime | yes | Exclusive end. For all-day events use the day after the last day. | ||
all_day | boolean | false | |||
time_zone | string | IANA time zone for start and end. Defaults to the calendar’s own time zone. | |||
description | string | ||||
location | string | ||||
attendees | string | Comma separated attendee emails. | |||
color_id | options | Color. One of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. | |||
visibility | options | One of default, public, private, confidential. | |||
transparency | options | Show me as. One of opaque, transparent. | |||
recurrence | string | One RRULE, EXRULE, RDATE or EXDATE line. Pass an array of lines from an expression for several. | |||
repeat_frequency | options | Simple repeat rule when no recurrence lines are given. One of daily, weekly, monthly, yearly. | |||
repeat_count | number | Number of occurrences for the simple repeat rule. | |||
repeat_until | datetime | Last occurrence for the simple repeat rule. | |||
guests_can_modify | boolean | ||||
guests_can_invite_others | boolean | ||||
guests_can_see_other_guests | boolean | ||||
use_default_reminders | boolean | true | |||
reminders | fixed_collection | Reminder overrides (at most five). | |||
reminders.method | options | "popup" | One of popup, email. | ||
reminders.minutes | number | 10 | |||
add_google_meet | boolean | false | Add Google Meet link. | ||
conference_solution | options | Conference type to attach. Setting it implies a conference is created. One of hangoutsMeet, eventHangout, eventNamedHangout. | |||
event_id | string | Optional custom ID (base32hex characters, 5 to 1024 long). | |||
send_updates | options | One of all, externalOnly, none. | |||
max_attendees | number |
Get an event
Operation event.get.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
event_id | resource_locator | yes | Event. Depends on calendar. Values from lookup events. | ||
time_zone | string | Time zone used in the response. | |||
max_attendees | number |
List events
Operation event.list.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
return_all | boolean | false | |||
limit | number | 50 | return_all = false | ||
time_min | datetime | After. Only events ending after this time. | |||
time_max | datetime | Before. Only events starting before this time. | |||
query | string | Search text. Free text search over summary, description, location and attendees. | |||
single_events | boolean | false | Expand recurring events. | ||
order_by | options | One of startTime, updated. | |||
show_deleted | boolean | false | |||
show_hidden_invitations | boolean | false | |||
updated_min | datetime | Updated after. | |||
time_zone | string | Time zone used in the response. | |||
ical_uid | string | iCalendar UID. | |||
max_attendees | number | ||||
event_types | multi_options | One of default, birthday, focusTime, fromGmail, outOfOffice, workingLocation. |
List instances of a recurring event
Operation event.instances.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
event_id | resource_locator | yes | Event. Depends on calendar. Values from lookup events. | ||
return_all | boolean | false | |||
limit | number | 50 | return_all = false | ||
time_min | datetime | After. | |||
time_max | datetime | Before. | |||
show_deleted | boolean | false | |||
time_zone | string |
Update an event
Operation event.update. Changes only the fields that are set; attendees, when set, replace the current list.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
event_id | resource_locator | yes | Event. Depends on calendar. Values from lookup events. | ||
summary | string | Title. | |||
start | datetime | ||||
end | datetime | ||||
all_day | boolean | false | |||
time_zone | string | IANA time zone for start and end. Defaults to the calendar’s own time zone. | |||
description | string | ||||
location | string | ||||
attendees | string | Comma separated attendee emails. | |||
color_id | options | Color. One of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. | |||
visibility | options | One of default, public, private, confidential. | |||
transparency | options | Show me as. One of opaque, transparent. | |||
recurrence | string | One RRULE, EXRULE, RDATE or EXDATE line. Pass an array of lines from an expression for several. | |||
repeat_frequency | options | Simple repeat rule when no recurrence lines are given. One of daily, weekly, monthly, yearly. | |||
repeat_count | number | Number of occurrences for the simple repeat rule. | |||
repeat_until | datetime | Last occurrence for the simple repeat rule. | |||
guests_can_modify | boolean | ||||
guests_can_invite_others | boolean | ||||
guests_can_see_other_guests | boolean | ||||
use_default_reminders | boolean | ||||
reminders | fixed_collection | Reminder overrides (at most five). | |||
reminders.method | options | "popup" | One of popup, email. | ||
reminders.minutes | number | 10 | |||
status | options | One of confirmed, tentative, cancelled. | |||
send_updates | options | One of all, externalOnly, none. | |||
max_attendees | number |
Delete an event
Operation event.delete.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
event_id | resource_locator | yes | Event. Depends on calendar. Values from lookup events. | ||
send_updates | options | One of all, externalOnly, none. |
Move an event to another calendar
Operation event.move.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
event_id | resource_locator | yes | Event. Depends on calendar. Values from lookup events. | ||
destination | resource_locator | yes | Destination calendar. Values from lookup calendars. | ||
send_updates | options | One of all, externalOnly, none. |
Quick add from text
Operation event.quick_add. Creates an event from a sentence such as “Lunch with Ana tomorrow at 1pm”.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
text | string | yes | |||
send_updates | options | One of all, externalOnly, none. |
Lookups
Lookups fill dropdowns and resource pickers in the editor from the vendor API.
| Lookup | Depends on | Search | Description |
|---|---|---|---|
calendars | client-side | {{ item.accessRole }}{{ ’ (primary)’ if item.primary else ‘’ }} | |
events | calendar | server-side |
Triggers
Node type connector.google_calendar_trigger.
| Trigger | ID | Kind | Deduplication key | Signature | Webhook registration | Cassette tests |
|---|---|---|---|---|---|---|
| Event created | event_created | poll | {{ item.id }} | 0 | ||
| Event updated | event_updated | poll | {{ item.id }}@{{ item.updated }} | 0 | ||
| Event cancelled | event_cancelled | poll | {{ item.id }} | 0 | ||
| Event started | event_started | poll | {{ item.id }}@{{ item.start.dateTime or item.start.date }} | 0 | ||
| Event ended | event_ended | poll | {{ item.id }}@{{ item.end.dateTime or item.end.date }} | 0 |
Trigger: Event created
Emits events created on the calendar since the last check.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
query | string | Only events matching. Free text filter. |
Trigger: Event updated
Emits events that were created or changed since the last check (one item per change).
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
query | string | Only events matching. Free text filter. |
Trigger: Event cancelled
Emits events that were cancelled or deleted since the last check.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
query | string | Only events matching. Free text filter. |
Trigger: Event started
Emits events whose start time passed since the last check. Recurring events are expanded.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
query | string | Only events matching. Free text filter. |
Trigger: Event ended
Emits events whose end time passed since the last check. Recurring events are expanded.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
calendar | resource_locator | "primary" | yes | Values from lookup calendars. | |
query | string | Only events matching. Free text filter. |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
n8n-nodes-base.googleCalendar | >=1 <1.3 | unverified | |
n8n-nodes-base.googleCalendar | >=1.3 <2 | unverified | |
n8n-nodes-base.googleCalendarTrigger | >=1 <2 | unverified |
Provenance
Written from the vendor’s documentation:
- https://developers.google.com/workspace/calendar/api/v3/reference
- https://developers.google.com/workspace/calendar/api/v3/reference/events
- https://developers.google.com/workspace/calendar/api/v3/reference/events/list
- https://developers.google.com/workspace/calendar/api/v3/reference/events/insert
- https://developers.google.com/workspace/calendar/api/v3/reference/events/patch
- https://developers.google.com/workspace/calendar/api/v3/reference/events/move
- https://developers.google.com/workspace/calendar/api/v3/reference/events/quickAdd
- https://developers.google.com/workspace/calendar/api/v3/reference/events/instances
- https://developers.google.com/workspace/calendar/api/v3/reference/calendars
- https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/list
- https://developers.google.com/workspace/calendar/api/v3/reference/freebusy/query
- https://developers.google.com/workspace/calendar/api/guides/errors
- https://developers.google.com/workspace/calendar/api/guides/quota
- https://developers.google.com/workspace/calendar/api/auth
- https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest
- https://developers.google.com/identity/protocols/oauth2/web-server
- https://developers.google.com/identity/protocols/oauth2/service-account