> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/scripts/script-events/vk-events.md).

# VK Events

Here we will tell you how to set up a bot to respond to likes, reposts, joins and exits from your VK group

The list of VK events is in the left menu, in the "Events" tab:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F1WBYXlz3bVhNr9PNzXDo%2F%D0%A1%D0%BE%D0%B1%D1%8B%D1%82%D0%B8%D1%8F%20%D0%92%D0%9A.png?alt=media\&token=fbe4aaff-165d-410a-b007-37aa70bdd0ea)

Like/remove like and repost

> The event works only for VK channels

With the help of this event, you can earn points for likes and reposts, as well as prevent cheating by deleting likes.&#x20;

If the publication, like most VK posts, consists of text and a picture, the like reaction will work twice (on the post and on the picture).&#x20;

{% hint style="info" %}
To make your bot react to a specific post, open the block and select "Object ID condition". Here you can also select the type of object: post, picture, video, etc.
{% endhint %}

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FrczW0dqIYu5yNUG6pVTJ%2F%D0%9B%D0%B0%D0%B9%D0%BA.png?alt=media\&token=76acd314-c763-4ca0-b9f3-ceb97b6fe091)

Deleting likes and reposts works the same way.&#x20;

### Joining/leaving a group&#x20;

> Only available for VK groups

You can configure the action that the bot will perform if a person joins a group or subscribes to a community, for example: give him a bonus (by changing a variable), record an event in statistics, or send a message.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FvTERZ82FubjGyzFEXgVl%2F%D0%92%D1%81%D1%82%D1%83%D0%BF%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B2%20%D0%B3%D1%80%D1%83%D0%BF%D0%BF%D1%83.png?alt=media\&token=720af567-2100-437b-827c-3be0686169f3)

{% hint style="info" %}
Please note: a message will be sent to the user's LAN only if he has allowed the group to write to him in the LAN.&#x20;
{% endhint %}

If the user has unsubscribed, the bot can send them a “farewell letter” or a survey to understand the reasons for unsubscribing.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FPrEyniM7bDk4s9nN9kJ7%2F%D0%92%D1%8B%D1%85%D0%BE%D0%B4%20%D0%B8%D0%B7%20%D0%B3%D1%80%D1%83%D0%BF%D0%BF%D1%8B.png?alt=media\&token=c658d599-7356-4eb3-b02a-a220b1177a68)

In such a simple way, you can apply VKontakte events!
