> For the complete documentation index, see [llms.txt](https://docs.athenachat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.athenachat.ai/documentation/documentation-en/integrations/google-calendar.md).

# Google Calendar

Connecting Google Calendar to the channel and booking time slots

## Step 1

In the section [**Channels**](/documentation/documentation-en/channels.md) select the channel to which you're connecting the calendar.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2FGCoBPXL9BwQGiF8zkUII%2Fgcal-01.webp?alt=media)

## Step 2

Open the settings for this channel.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2F1Umltj29rwGZAw3zrZnP%2Fgcal-02.webp?alt=media)

## Step 3

Go to the tab **Google Calendar**.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2FPc6iURq751788iLxXH1c%2Fgcal-03.webp?alt=media)

## Step 4

Click **Connect** and in the window, select the account linked to the calendar.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2FX4ecNOmMhMojA0NWME1B%2Fgcal-04.webp?alt=media)

## Step 5

Allow the agent access to write to the calendar.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2FkEm5kj1khbxDYyLfgGqS%2Fgcal-05.webp?alt=media)

## Step 6

The section will open **Google Calendar settings**. Fill in the fields and click **Save changes**.

![Google Calendar settings](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2Fe2joDz42xMf2U6Tuu5ls%2Fgcal-06-settings.png?alt=media)

**Time zone** — which time zone the slots are counted in. In the screenshot, selected `Europe/Moscow`.

**Calendars** — the Google Calendar where the agent makes appointments. In the list, the account you connected in step 4.

**Select the days of the week and set the booking interval** — during these hours, the agent can book clients.

**Booking duration (min)** — the length of one slot. In the screenshot — 30 minutes.

**Minimum time before booking (min)** — how many minutes before the slot booking is still possible. If set to 30, the client cannot book for a time earlier than 30 minutes from now.

**Maximum time before booking (min)** — how far ahead booking is open. The value is also in minutes.

The integration is ready to use.

## Step 7

For more precise operation, in the channel settings → **behavior instructions** additionally specify the command:

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2FdGl1UcfvCeMsWbc2vjqh%2Fgcal-07.webp?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.athenachat.ai/documentation/documentation-en/integrations/google-calendar.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
