Connecting a VK Group
The module receives incoming messages from a VKontakte group through the Callback API and forwards them to the support service. Manager replies are delivered back to users in VKontakte on behalf of the community.
Prerequisites
Before connecting, make sure the project is deployed using one of the guides:
1 Connecting the integration
- Go to the "Settings" -> "Integrations" section.
- Click the "VKontakte" card.
2 Creating an access token
- Go to Community Management → API Usage → Access Tokens.
- Create a new token with the permissions:
- Community messages
- Photos
- Documents
- After saving, paste the token you receive into the "Token" field in the integration settings.
3 Configuring the Callback API
Go to Community Management → API Usage → Callback API.
3.1 "Servers" tab
- Specify the server URL:
https://{your domain}/api/vk/bot - Select the type: Callback API.
- Specify the API version: 5.131 or newer.
- In the Secret key field, enter a string to protect your integration. A random string of 10-12 characters.
- Enter the same Secret key in the corresponding field in the integration settings.
3.2 "Settings" tab
- Copy the Confirmation string and paste it into the "Confirmation Code" field in the integration settings.
3.3 "Event types" tab
- Enable the events:
- Incoming message
- Outgoing message
- Save the settings.
4. Configuring the integration
- By this point you should have already filled in all the important fields.
- Click the "Save" button.
Verification
- Send a message to the VKontakte group as a regular user.
- A new item and the sent message will appear in the "Chats" section.
- Write a reply, and it should be sent to VKontakte on behalf of the community.