Skip to main content
The @guildai-services/guildai~google-calendar package gives your agents access to Google Calendar events and schedules through Guild’s Google Calendar integration.

Authentication

  • Type: OAuth 2.0
  • Token management: Refreshed automatically

Setup

1

Open Credentials

Go to Credentials in Guild.
2

Connect Google Calendar

Click Google Calendar and authorize with your Google account.

Usage

import { googleCalendarTools } from "@guildai-services/guildai~google-calendar"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that manages calendar events",
  tools: { ...googleCalendarTools },
})

Selecting specific tools

Tools are named with the google_calendar_ prefix. Use pick() to include only what your agent needs.
import { googleCalendarTools } from "@guildai-services/guildai~google-calendar"
import { llmAgent, pick } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that schedules meetings",
  tools: {
    ...pick(googleCalendarTools, [
      "google_calendar_events_list",
      "google_calendar_events_insert",
      "google_calendar_events_update",
      "google_calendar_events_delete",
    ]),
  },
})