Graphrt

Google Calendar

Events with Meet links, free/busy and DST-aware free-slot search, idempotent booking, agent tools limited to allowed calendars (OAuth or service account)

Beta v0.1.0 Node.js 10 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the official Google Calendar API v3. Read calendars and events, check availability, find free meeting slots, and create, change or delete events (with Google Meet links). Every operation is a workflow node and an agent tool. Agent tools have extra limits (see Agent tool limits).

What it can do

  • Calendars and availability: list_calendars, query_free_busy, and find_free_slots, which computes slots in the plugin from free/busy data, with working hours per weekday, IANA time zones (DST-correct), buffers and a slot step
  • Events: list_events (time range, text search, recurring events expanded, paging), get_event, create_event (timed or all-day, guests, reminders, recurrence, Google Meet, private properties), update_event (PATCH), delete_event, quick_add (natural-language text)
  • Safe retries: create_event sends its own event id. With idempotency_key the id is derived from the key, so a repeated create returns the existing event instead of a duplicate. book_slot: true re-checks free/busy right before creating and fails conflict if the time was taken
  • api_request: any other Calendar API endpoint, restricted to www.googleapis.com/calendar/v3
  • Auth: OAuth refresh token, service account key file, or a ready access token

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • List Google calendars google-calendar.list_calendars
  • Query Google Calendar free/busy google-calendar.query_free_busy
  • Find free Google Calendar slots google-calendar.find_free_slots
  • List Google Calendar events google-calendar.list_events
  • Get Google Calendar event google-calendar.get_event
  • Create Google Calendar event google-calendar.create_event
  • Update Google Calendar event google-calendar.update_event
  • Delete Google Calendar event google-calendar.delete_event
  • Quick add Google Calendar event google-calendar.quick_add
  • Google Calendar API request google-calendar.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • GOOGLE_REFRESH_TOKEN
    OAuth refresh token for a Google account (authorize with access_type=offline and the calendar scope)
  • GOOGLE_CLIENT_ID
    OAuth client id that issued the refresh token
  • GOOGLE_CLIENT_SECRET
    OAuth client secret
  • GOOGLE_SERVICE_ACCOUNT_JSON
    Path to a service account JSON key file
  • GOOGLE_ACCESS_TOKEN
    A ready OAuth access token (expires after about an hour)
  • GOOGLE_CALENDAR_TOOL_ALLOWED_IDS Primary
    Comma-separated calendar ids agent tools may use, * allows every calendar the credentials reach
  • GOOGLE_CALENDAR_TOOL_SEND_UPDATES Off
    1 lets agent tools email guests (send_updates), otherwise tools always send none
  • GOOGLE_CALENDAR_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Google Calendar.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install google-calendar
workflow.yaml
- id: slots
  type: google-calendar.find_free_slots
  calendar_ids: ["primary", "sari@example.com"]
  time_min: "2026-11-23"
  time_max: "2026-11-28"
  time_zone: "Asia/Jakarta"
  duration_minutes: 30
  buffer_minutes: 10
- id: book
  type: google-calendar.create_event
  summary: "Consultation with {{#start.customer#}}"
  start: "{{#slots.data.slots.0.start#}}"
  end: "{{#slots.data.slots.0.end#}}"
  attendees: ["{{#start.email#}}"]
  add_google_meet: true
  idempotency_key: "booking-{{#start.order_id#}}"
  book_slot: true
  send_updates: all
Plugins in the docs