The whole process will be:
create community, get group id, and access token
enable community messages and bot abilities
You need to have a VK personal account first, go to https://vk.com (opens a new window), register, and log in yourself.
Go to "Community" from the left sidebar and "Create Community" for your chatbot.
Click on "Create token", Tick the options, and hit "Create".
Copy your token and group id and now let's go back to OCP.
Go to the VK channel, click "Add New Bot" and fill in your group id and access token, hit "Add".
Forgot your group id? You can find the community information page here:
After the connection, your page looks like this:
Click "Create Bot", select a template, and be done.
Add a simple greeting message for testing.
To talk to your bot, you need to enable community messages first. Follow steps 1 to 4 in the above screenshot to do so.
Then go to "Bot settings", change the bot abilities to "Enabled" and make sure you hit the "Save" button and see the green "Changes saved" prompt. It's important to enable bot abilities so that your bot can send buttons, questions, and cards instead of just text messages and media.
Now you can open your VK application on your phone, search your community name and click on it:
Click on "Message" to start the conversation.
There are several limitations on the VK channel according to their API:
In a card, the image should have a 13/8 ratio and there should be at least one button otherwise the card won't show.
In a question step, there are 5 quick answers at most.
In a file question, the file uploaded by the user is sent to VK and VK returns an URL pointing to the file back to OCP. Please note that this URL isn't a direct file link. Therefore you cannot send a file-type message based on this URL. You can print the URL instead and by clicking this URL, users can access the file.