> 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/channels/social-networks/vk.md).

# VK

Connecting a VKontakte community by ID and API key

To connect, you need a VKontakte community.

## Step 1

In Athena's dashboard, open [**Channels**](/documentation/documentation-en/channels.md) → **Add channel**.

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

## Step 2

Select **VK** → **Next**. The community ID and API input fields will open.

* How to get the ID: [vk.com/faq18062](https://vk.com/faq18062)
* How to get the API: [Community access key](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)

**Community ID.** Community settings → copy the id digits and paste them into Athena.

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

## Step 3

**API key.** The same place: **Working with the API** → **Create key**.

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

## Step 4

Allow access to the community.

{% hint style="warning" %}
**Important**

Be sure to enable **Allow the app to access community management**.
{% endhint %}

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

## Step 5

Copy the key and paste it into the form in Athena.

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

Correctly filled-in data looks like this:

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

## Step 6

Click **Next**. Select the already created agent settings, create new ones (**New settings**) or **Continue without settings**.

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

## Step 7

Set up the channel, agent behavior, and connect the knowledge base: [**Channels**](/documentation/documentation-en/channels.md) → **Edit**.

![](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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.athenachat.ai/documentation/documentation-en/channels/social-networks/vk.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.
