> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/functional/integrations/notion/connection.md).

# Подключение

1. Перейдите в свой аккаунт Notion.
2. Откройте страницу интеграций по [ссылке](https://www.notion.so/profile/integrations/internal).
3. Нажмите на «+» Create a new integration.<br>

<figure><img src="/files/vpnZQq7PnPv4EayAn937" alt=""><figcaption></figcaption></figure>

4. Введите имя интеграции (любое на ваш вкус) и выберите рабочую область в поле **Associated workspace** и нажмите Create.

<figure><img src="/files/xtPTnWhJNgkTvEFTl1Yt" alt=""><figcaption></figcaption></figure>

4. Скопируйте ваш **Internal Integration Secret**

<figure><img src="/files/zFGbnu7iQawLM5Jsp0Xt" alt=""><figcaption></figcaption></figure>

7. Вставьте в поле **"Notion ключ"** на [странице подключения Notion](https://app.nextbot.ru/integrations?tab=NotionSettings) и нажмите на кнопку **"Сохранить"**.<br>

<figure><img src="/files/qvZFfw9AWPOpUS4qn9ge" alt=""><figcaption></figcaption></figure>

8. Перейдите на [главную страницу Notion](https://www.notion.so).
9. Перейдите на страницу с нужной базой данных. Нажмите на **"..."** в правом верхнем углу, выберите **"Connection to"**, свою интеграцию и нажмите **"Confirm"**.

<figure><img src="/files/xZChpqEjqHcHsnNptIXJ" alt=""><figcaption></figcaption></figure>

10. Скопируйте из адресной строки код вашей таблицы (после **"notion.so/"** до **"?"**). Вставьте скопированный код базы данных в поле **"Код базы данных"** на этой странице.

<figure><img src="/files/pGTrrloZYy2DjM5TDmWI" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Интеграция поддерживает только Notion таблицы.**
{% endhint %}

<figure><img src="/files/gdjYAicRG1LZH6Hcd6B9" alt=""><figcaption></figcaption></figure>

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

Добавьте описание для столбцов (если требуется). Выберите **"Поиск"**, если требуется, чтобы агент использовал эти ячейки в качестве фильтров. Выберите **"Чтение"**, если хотите, чтобы агент мог прочитать эту ячейку. После настройки нажмите кнопку **"Сохранить"**.


---

# 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://doc.nextbot.ru/functional/integrations/notion/connection.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.
