> 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/integracii/google-calendar.md).

# Google Calendar

Подключение Google Календаря к каналу и запись на слоты

## Шаг 1

В разделе [**Каналы**](/kanaly.md) выберите канал, к которому подключаете календарь.

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

## Шаг 2

Откройте настройки этого канала.

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

## Шаг 3

Перейдите во вкладку **Google Календарь**.

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

## Шаг 4

Нажмите **Подключить** и в окне выберите аккаунт, который привязан к календарю.

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

## Шаг 5

Разрешите агенту доступ для записи в календарь.

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

## Шаг 6

Откроется блок **Настройки Google календаря**. Заполните поля и нажмите **Сохранить изменения**.

![Настройки Google календаря](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2Fe2joDz42xMf2U6Tuu5ls%2Fgcal-06-settings.png?alt=media)

**Часовой пояс** — в каком поясе считаются слоты. На скрине выбран `Europe/Moscow`.

**Календари** — Google-календарь, в который агент ставит записи. В списке аккаунт, который вы подключили на шаге 4.

**Выберите дни недели и задайте интервал для записи** — в эти часы агент может записывать клиентов.

**Длительность записи (мин)** — длина одного слота. На скрине — 30 минут.

**Минимальное время до записи (мин)** — за сколько минут до слота ещё можно записаться. Если стоит 30, клиент не запишется на время раньше чем через 30 минут.

**Максимальное время до записи (мин)** — насколько далеко вперёд открыта запись. Значение тоже в минутах.

Интеграция готова к работе.

## Шаг 7

Для более точной работы в настройках канала → **инструкции поведения** дополнительно пропишите команду:

![](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/integracii/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.
