VK Teams

Post reports and reminders to VK Teams chats as a bot

Connect VK Teams to the AI agent: chats, messages, members and files. The agent posts to work chats, lists chat members and pins the digest at the top.

How the agent works with VK Teams

The agent works in VK Teams through a bot: its first request reads the bot's own data, and after that come the chats the bot has been added to. From there it takes messages, the list of members, admins and blocked users, join requests and information about files. That is enough to post a report or a reminder where the team already sits and to work out what is going on in a work chat.

The visibility boundary here is hard: the bot sees only the chats it has been added to and nothing beyond them. History from before it joined is out of reach as well — events start at the minute the bot appeared in the chat, so a digest for last month in a freshly created chat simply cannot be assembled. VK Teams has no webhooks at all: new messages arrive on an event feed the agent holds open, and it picks the conversation up exactly where it stopped. The cursor there only moves forward — already-read events cannot be rewound to — so the agent never lets one slip past. Until the bot is added, it says plainly that the chat is out of reach instead of returning an empty summary.

On the write side the agent does plenty: it sends, edits and deletes messages, pins a summary at the top of the chat, sends messages with buttons and handles taps through a callback, sends files and voice messages, opens threads on messages, changes the chat title, description, rules and avatar, resolves join requests, removes people from the chat and blocks anyone breaking the rules. Adding members is the one thing not available everywhere: it is a private method that works only in on-premise VK Teams builds and only once a system administrator enables it, and in the cloud the agent says so outright rather than quietly failing. A message in a work chat is seen by everyone, and deletions and removals cannot be rolled back — so before such actions the agent names the chat and the text and waits for confirmation.

The connection is a bot token. It travels as a request parameter, so it has to be kept like a password, and the only way to revoke access is to recreate the bot. Everything the agent does is done as the bot and is signed that way in the chat: people see a robot behind the message, not a colleague, and can reply to it right there. How much moderation is possible depends on the bot's rights in that particular chat — without admin rights it will not delete someone else's message or remove a member, and it reports that shortfall directly instead of trying blindly.

Integration scenarios

Messages to a work chat

The agent writes as the bot straight into a VK Teams chat: a report, a reminder or an alert lands where the team already sits.

Chat roster and moderation

The agent shows members, admins and join requests, resolves the requests, removes people from the chat and blocks anyone breaking the rules.

Scheduled summary

The agent sends a summary to the chat you pick at the agreed time and pins it at the top so nobody hunts for it in the thread.

Buttons and follow-up questions

The agent sends a message with buttons, handles the tap through a callback and edits the text once the answer is out of date.

What the chat talked about

The agent reads the event stream on from where it stopped and puts together a recap: what was decided, what was asked and which questions nobody answered.

Files from the thread

The agent gathers the files dropped into the chat over the week — with the name, the size and who posted them — so the right document is not hunted by scrolling.

A discussion instead of a branch in the chat

The agent opens a thread on the message that needs it, replies inside it and shows who is subscribed — so working one task out does not sink into the general stream.

VK Teams examples

VK Teams
Frozen chats — click a question
Скинь сводку в чат отдела

Сводка ушла в «Продажи — оперативка» и закреплена в шапке.

Прошлое закрепление снял, чтобы не висело два. Дальше буду присылать каждый будний день в 9:30 — 24 участника чата увидят её первой строкой.

How to connect

Before you connect

  • A work VK Teams account: it stays the bot owner permanently
  • Administrator rights in the chat where the bot will be added
  1. 1

    Sign in to VK Teams and find Metabot

    The token comes from a service bot, not an admin panel: type «Метабот» (Metabot) in the chat search. Sign in with the account that will stay the bot owner.

  2. 2

    Send the /newbot command to Metabot

    It will ask for a name for the new bot. The name must end with bot, otherwise Metabot rejects it and asks for another one.

  3. 3

    Send /setjoingroups to Metabot

    Send /setjoingroups to Metabot, then your bot's nick or id, then the word enable. Without it the bot stays in private dialogs; only a chat admin can add it.

  4. 4

    Copy the token from Metabot's reply

    The token arrives right after creation: 001.2659914704.0218887601:747432131 — four numeric blocks with dots and a colon. If the message is lost, send /token.

FAQ

With a bot token. In VK Teams search for Metabot, send it the /newbot command and a name ending in bot, then copy the token from the reply. If the message gets lost, the /token command helps.

The bot own data and the chats it has been added to: messages, the list of members, admins and blocked users, join requests, and information about files.

Yes: it sends, edits and deletes messages, pins them, sends files and voice messages, opens threads, changes the chat title, description, rules and avatar, resolves join requests and removes members.

Adding members is a private Bot API method: it exists only in on-premise VK Teams builds and is switched on by a system administrator for a specific bot. In the cloud version it is available to nobody, so the agent warns you up front rather than after a failed attempt.

By default the bot lives only in direct messages. Send Metabot /setjoingroups, the bot nickname and the word enable, and have a chat admin add the bot to the chat itself.

Related integrations

Category
Messengers
Connection
API key
Documentation
VK Teams

Connect VK Teams

Connecting takes a couple of minutes, and your data stays in your own systems.

Connect