Graphrt

Google Calendar

Event dengan link Meet, free/busy dan pencarian slot kosong yang paham DST, booking yang idempoten, tool agent dibatasi ke kalender yang diizinkan (OAuth atau service account)

Beta v0.1.0 Node.js 10 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk Google Calendar API v3 resmi. Baca kalender dan event, cek ketersediaan, cari slot rapat yang kosong, serta buat, ubah atau hapus event (dengan link Google Meet). Setiap operasi adalah node workflow dan tool agent. Tool agent punya batasan tambahan (lihat batasan tool agent di README).

Yang bisa dilakukan

  • 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

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • 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

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • 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

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Google Calendar.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan 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
Plugin di docs