Automate Google Calendar with TypeScript

Manage calendars and events, find available time, and run automations when events are created, updated, or deleted.

color-code-calendar-events.automation.ts
import { automation } from "automate.ax"
import { googleCalendar } from "automate.ax/google-calendar"

export default automation("Color-code new calendar events", () => {
  const event = googleCalendar.onEventCreated({
    calendarId: "team@example.com",
  })

  googleCalendar.updateEvent({
    calendar: "team@example.com",
    event: event.id,
    colorId: "5",
  })
})

What you can do

Actions

  • Create, update, move, import, and delete events
  • Search events and query free/busy time
  • Create and manage calendars
  • Manage access rules and invitations

Triggers

  • Event created
  • Event updated
  • Event deleted

Start automating with Google Calendar today

Start building