> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Calendar

> Give agents access to Google Calendar events and schedules.

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

<Steps>
  <Step title="Open Credentials">Go to **Credentials** in Guild.</Step>
  <Step title="Connect Google Calendar">Click **Google Calendar** and authorize with your Google account.</Step>
</Steps>

## Usage

```typescript theme={null}
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.

```typescript theme={null}
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",
    ]),
  },
})
```
