#493: Setting up a VK channel
Отредактирована: сегодняWith the help of this article, you will be able to connect your VK community to Swarmica and communicate in personal messages to the community on behalf of the community. You can connect several of your communities at once.
After completing and saving all settings on the Swarmica side, contact the Swarmica support team to start the channel on the system side!
Settings on the VK side
Conditions
- You need the 'Community Leader' rights to complete the setup.
- Two-factor authentication must be enabled in your VK account. You can enable it using this link.
Settings
All steps of the instruction must be followed only in the specified order! If you switch the items, the integration will not work!
- On the community page, click 'Management' in the side menu on the right.
- Enable the Long Poll API mode in the Settings > Working with API > Long Poll API section:

- Connect all event types related to the Messages section:

- Only after that create an API key and copy it - it will be needed to configure the channel in Swarmica:

- Find and copy the community ID in the Settings > General information section:
ATTENTION! Only numbers are needed, the prefix club or group is not needed.
Settings on the Swarmica side
- Go to your Swarmica account to the Settings - Channels section and select 'VK (Vkontakte)'.
- Click on the icon in the top right of the page that opens:

- Enter the name of your channel and save:

- A window like this will open:

- Enter the token - the API key created on VK in step 3 of the settings in the previous section. In the VK community, it is located in the Management > Settings > Working with API section.
- Enter the community number from step 5 of the settings in the previous section. In the VK community, it is located in the Management > Settings > General information section.
- Choose what will be created when a message arrives from VK: requests or chats. The difference between these functions is described in detail in this article.
- Move the slider 'Enabled' to activate the channel.
- Click:

Example of completed settings:

- **After completing and saving all settings, contact the Swarmica support team to start the channel on the system side!