> 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/ru/kanaly/socialnye-seti/vkontakte.md).

# ВКонтакте

Подключение сообщества ВКонтакте по ID и API-ключу

Для подключения нужно сообщество ВКонтакте.

## Шаг 1

В кабинете Афины откройте [**Каналы**](/documentation/ru/kanaly.md) → **Добавить канал**.

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

## Шаг 2

Выберите **VK** → **Далее**. Откроется ввод ID и API сообщества.

* Как получить ID: [vk.com/faq18062](https://vk.com/faq18062)
* Как получить API: [Ключ доступа сообщества](https://dev.vk.com/ru/api/access-token/getting-started#%D0%9A%D0%BB%D1%8E%D1%87%20%D0%B4%D0%BE%D1%81%D1%82%D1%83%D0%BF%D0%B0%20%D1%81%D0%BE%D0%BE%D0%B1%D1%89%D0%B5%D1%81%D1%82%D0%B2%D0%B0)

**ID сообщества.** Настройки сообщества → скопируйте цифры id и вставьте в Афину.

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

## Шаг 3

**API-ключ.** Там же: **Работа с API** → **Создать ключ**.

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

## Шаг 4

Разрешите доступ к сообществу.

{% hint style="warning" %}
**Важно**

Обязательно включите **Разрешить приложению доступ к управлению сообществом**.
{% endhint %}

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

## Шаг 5

Скопируйте ключ и вставьте в форму в Афине.

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

Правильно заполненные данные выглядят так:

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

## Шаг 6

Нажмите **Далее**. Выберите уже созданные настройки агента, создайте новые (**Новые настройки**) или **Продолжить без настроек**.

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

## Шаг 7

Настройте канал, поведение агента и подключите базу знаний: [**Каналы**](/documentation/ru/kanaly.md) → **Редактировать**.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2FlbDXUXl1XQrT6KWqySF0%2Fvk-08.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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.athenachat.ai/documentation/ru/kanaly/socialnye-seti/vkontakte.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
