n8ntools-vk

N8N Tools VKontakte Enhanced node with comprehensive VK API support

Package Information

Released: 13 mo ago
Downloads: 7 weekly / 32 monthly
Latest Version: 1.0.3
Author: N8N Tools

Documentation

N8N Tools - VK Enhanced

npm version
npm downloads
License: MIT

Complete VKontakte (VK) social network integration with 60+ operations covering the full VK ecosystem. This N8N community node provides comprehensive access to Posts, Groups, Messages, Friends, Advertising, and Analytics APIs specifically designed for the Russian market and VK's unique social features.

✨ Features

  • 📱 Posts & Wall: Create, publish, and manage posts on walls with advanced formatting
  • 👥 Groups & Communities: Complete group management, member administration, and community tools
  • 💬 Messages & Conversations: Send messages, manage conversations, and handle chat bots
  • 👫 Friends & Users: Manage friendships, user profiles, and social connections
  • 📊 Analytics & Insights: Track engagement metrics, audience analytics, and performance data
  • 🎯 Advertising & Targeting: Create ads, manage campaigns, and target specific audiences
  • 📸 Media & Albums: Upload and manage photos, videos, and media collections
  • 🔔 Notifications & Events: Handle real-time notifications and event management
  • 🏪 Market & Products: Manage VK Market products and e-commerce features
  • 📺 Video & Streaming: Upload videos, manage playlists, and streaming content
  • 🔒 Secure API: Powered by N8N Tools platform with usage tracking and validation

🚀 Quick Start

Installation

Install this node in your N8N instance:

Via Community Nodes (Recommended)

  1. Go to Settings > Community Nodes in your N8N interface
  2. Click Install a community node
  3. Enter n8n-nodes-n8ntools-vk
  4. Click Install

Via npm

npm install n8n-nodes-n8ntools-vk

Setup Credentials

  1. Sign up at N8N Tools and get your API key
  2. In N8N, create new N8N Tools API credentials
  3. Enter your API URL: https://api.n8ntools.io
  4. Enter your API key

📋 Available Resources

📱 Posts & Wall (8 Operations)

Complete post management for VK walls:

Operation Description Features
Create Post Publish posts to walls Text, media, polls, links
Edit Post Modify existing posts Content updates, scheduling
Delete Post Remove posts from walls Soft delete, restoration
Get Post Retrieve specific post data Engagement metrics, comments
Get Wall Posts List wall posts with filters Pagination, date ranges
Pin Post Pin posts to top of wall Community management
Unpin Post Unpin posts from wall Visibility control
Repost Share posts to other walls Cross-posting, attribution

👥 Groups & Communities (10 Operations)

Advanced group and community management:

  • Create Group: Set up new groups and communities
  • Edit Group: Modify group settings and information
  • Get Group Info: Retrieve detailed group data
  • Join Group: Add users to groups
  • Leave Group: Remove users from groups
  • Invite Members: Send group invitations
  • Manage Members: Admin and moderation tools
  • Get Group Members: List group membership
  • Get Group Statistics: Analytics and insights
  • Set Group Settings: Configure privacy and features

💬 Messages & Conversations (7 Operations)

Comprehensive messaging capabilities:

  • Send Message: Send text and media messages
  • Get Messages: Retrieve conversation history
  • Get Conversations: List active conversations
  • Mark as Read: Update message read status
  • Delete Message: Remove messages from conversations
  • Create Chat: Set up group chats
  • Manage Chat: Admin controls for group chats

👫 Friends & Users (6 Operations)

Social connection management:

  • Get User Info: Retrieve user profile data
  • Get Friends: List user's friends
  • Add Friend: Send friend requests
  • Remove Friend: Delete friend connections
  • Search Users: Find users by criteria
  • Get User Status: Check online/offline status

📊 Analytics & Insights (5 Operations)

Performance tracking and analytics:

  • Get Post Stats: Post engagement metrics
  • Get Group Stats: Community analytics
  • Get Audience: Demographic insights
  • Get Reach: Content reach and impressions
  • Get Engagement: Interaction analytics

🎯 Advertising (8 Operations)

Complete advertising campaign management:

  • Create Ad: Set up new advertising campaigns
  • Edit Ad: Modify campaign settings
  • Get Ad Stats: Campaign performance metrics
  • Manage Budget: Control advertising spend
  • Target Audience: Define targeting criteria
  • Create Ad Account: Set up advertising accounts
  • Get Ad Categories: List available ad categories
  • Manage Campaigns: Campaign lifecycle management

📸 Media & Albums (6 Operations)

Media content management:

  • Upload Photo: Add images to albums
  • Upload Video: Upload video content
  • Create Album: Set up photo albums
  • Get Album Photos: Retrieve album contents
  • Edit Album: Modify album settings
  • Delete Media: Remove photos and videos

🔔 Notifications (3 Operations)

Event and notification handling:

  • Get Notifications: Retrieve notification list
  • Mark Notifications Read: Update read status
  • Set Notification Settings: Configure preferences

🏪 Market (4 Operations)

E-commerce and marketplace features:

  • Add Product: Create marketplace listings
  • Edit Product: Modify product information
  • Get Products: Retrieve product catalog
  • Delete Product: Remove marketplace items

📺 Video (3 Operations)

Video content management:

  • Upload Video: Add video content
  • Get Video Info: Retrieve video details
  • Get Video Comments: Manage video engagement

💡 Usage Examples

Create Engaging Community Post

// Configuration
Resource: "Posts & Wall"
Operation: "Create Post"
Request Body: {
  "owner_id": "-123456789",
  "message": "🎉 Добро пожаловать в наше сообщество!\n\nМы рады видеть новых участников! Присоединяйтесь к обсуждению и делитесь своими идеями.\n\n#сообщество #добропожаловать",
  "attachments": [
    "photo-123456789_456789012"
  ],
  "from_group": 1,
  "signed": 1,
  "publish_date": 1704067200,
  "guid": "post_2024_001"
}

// Output
{
  "resource": "posts",
  "operation": "createPost",
  "success": true,
  "postId": 12345,
  "wallId": -123456789,
  "date": 1704067200,
  "views": 0,
  "likes": 0,
  "creditsUsed": 1,
  "creditsRemaining": 99
}

Manage Group Members

// Configuration
Resource: "Groups & Communities"
Operation: "Invite Members"
Request Body: {
  "group_id": 123456789,
  "user_ids": [
    987654321,
    876543210,
    765432109
  ],
  "message": "Приглашаем вас присоединиться к нашему сообществу! Здесь мы обсуждаем интересные темы и делимся полезной информацией."
}

// Then get group statistics
Resource: "Groups & Communities"
Operation: "Get Group Statistics"
Request Body: {
  "group_id": 123456789,
  "timestamp_from": 1703980800,
  "timestamp_to": 1704067200,
  "intervals": "day"
}

Send Targeted Messages

// Configuration
Resource: "Messages & Conversations"
Operation: "Send Message"
Request Body: {
  "user_ids": [987654321, 876543210],
  "message": "🔥 Специальное предложение только для вас!\n\nСкидка 30% на все товары до конца недели. Используйте промокод: VK2024",
  "attachment": "photo-123456789_456789012,doc-123456789_456789013",
  "keyboard": {
    "one_time": false,
    "buttons": [[{
      "action": {
        "type": "text",
        "label": "Перейти в магазин"
      },
      "color": "primary"
    }]]
  }
}

Create Advertising Campaign

// Configuration
Resource: "Advertising"
Operation: "Create Ad"
Request Body: {
  "account_id": 123456789,
  "campaign_id": 987654321,
  "ad_format": 1,
  "category1_id": 126,
  "category2_id": 10618,
  "name": "Новогодняя распродажа 2024",
  "title": "Скидки до 50%",
  "description": "Новогодняя распродажа в нашем интернет-магазине. Тысячи товаров со скидками до 50%. Спешите!",
  "link_url": "https://example.com/sale",
  "link_domain": "example.com",
  "photo": "photo-123456789_456789012",
  "cost_type": 0,
  "cpc": 15,
  "ad_platform": "all",
  "sex": 0,
  "age_from": 18,
  "age_to": 45,
  "country": 1,
  "cities": "1,2",
  "interests": "интернет-магазины,мода,одежда"
}

Upload and Organize Media

// Configuration
Resource: "Media & Albums"
Operation: "Upload Photo"
Request Body: {
  "album_id": 123456789,
  "group_id": 987654321,
  "caption": "Новая коллекция весна-лето 2024 ✨\n\n#мода #весна2024 #новаяколлекция",
  "latitude": 55.7558,
  "longitude": 37.6173
}

// Then create album
Resource: "Media & Albums"
Operation: "Create Album"
Request Body: {
  "title": "Весна-Лето 2024",
  "description": "Коллекция модной одежды на весенне-летний сезон",
  "group_id": 987654321,
  "privacy_view": "all",
  "privacy_comment": "all"
}

Monitor Community Analytics

// Configuration
Resource: "Analytics & Insights"
Operation: "Get Group Stats"
Request Body: {
  "group_id": 123456789,
  "timestamp_from": 1703980800,
  "timestamp_to": 1704067200,
  "interval": "day",
  "intervals_count": 7,
  "filters": "visitors,reach,activity"
}

// Get audience demographics
Resource: "Analytics & Insights"
Operation: "Get Audience"
Request Body: {
  "group_id": 123456789,
  "period": "week"
}

⚙️ Configuration Options

Environment Settings

  • Access Token: VK application access token
  • API Version: VK API version (default: 5.131)
  • Language: Interface language (ru, en, uk)

Post Options

  • From Group: Post as group (1) or user (0)
  • Signed: Add signature to posts
  • Mark As Ads: Mark promotional content
  • Publish Date: Schedule posts for later

Advanced Features

  • Keyboard Markup: Interactive message keyboards
  • Callback Buttons: Handle button interactions
  • Geo Location: Add location data to posts
  • Poll Creation: Create interactive polls

🛠️ Example Workflows

Community Management

[New Member] → [VK Enhanced: Send Welcome Message] → [Add to Group] → [Track Engagement] → [Personalized Content]

Content Marketing

[Create Content] → [VK Enhanced: Create Post] → [Schedule Publishing] → [Monitor Analytics] → [Optimize Strategy]

Customer Support

[Incoming Message] → [VK Enhanced: Get Message] → [Process Request] → [Send Response] → [Update CRM]

E-commerce Integration

[New Product] → [VK Enhanced: Add Product] → [Create Ad Campaign] → [Track Performance] → [Optimize Targeting]

📊 Comparison with Official VK Node

Feature Category Official Node VK Enhanced Improvement
Posts & Wall 1 operation 8 operations +700%
Groups 0 operations 10 operations ∞ (new)
Messages 0 operations 7 operations ∞ (new)
Friends & Users 1 operation 6 operations +500%
Analytics 0 operations 5 operations ∞ (new)
Advertising 0 operations 8 operations ∞ (new)
Media 0 operations 6 operations ∞ (new)
Notifications 0 operations 3 operations ∞ (new)
Market 0 operations 4 operations ∞ (new)
Video 0 operations 3 operations ∞ (new)
Total Operations 2 operations 60 operations +2900%

🔧 API Endpoints

All operations are routed through N8N Tools API for consistent authentication and usage tracking:

Resource Base Endpoint
Posts & Wall /api/v1/vk/posts/
Groups & Communities /api/v1/vk/groups/
Messages & Conversations /api/v1/vk/messages/
Friends & Users /api/v1/vk/friends/
Analytics & Insights /api/v1/vk/analytics/
Advertising /api/v1/vk/advertising/
Media & Albums /api/v1/vk/media/
Notifications /api/v1/vk/notifications/
Market /api/v1/vk/market/
Video /api/v1/vk/video/

🚨 Error Handling

The node provides comprehensive error handling with detailed messages:

{
  "error": "ACCESS_DENIED",
  "success": false,
  "resource": "groups",
  "operation": "getGroupMembers",
  "details": {
    "issue": "Access to group members is denied",
    "field": "group_id",
    "code": 15,
    "vk_error_code": 15
  }
}

💸 Pricing & Limits

  • Standard Operations: 1 credit per API call
  • Media Upload Operations: 2 credits (photos, videos)
  • Analytics Operations: 1 credit per query
  • Monthly Quotas: Based on your N8N Tools subscription plan
  • Rate Limits: 3 requests/second (based on VK API limits)
  • Usage Tracking: Real-time credit monitoring

🔧 Troubleshooting

Common Issues

Authentication Errors

  • Verify N8N Tools API key is valid and active
  • Check API URL is set to https://api.n8ntools.io
  • Ensure VK access token has required permissions

Permission Denied

  • Check VK application permissions and scopes
  • Verify group admin rights for group operations
  • Ensure user consent for private data access

Media Upload Issues

  • Verify file format and size limits
  • Check image/video hosting is accessible
  • Ensure proper encoding for Cyrillic text

Rate Limiting

  • Implement delays between requests
  • Use batch operations where possible
  • Monitor VK API rate limits

📈 Performance Tips

  1. Batch Operations: Group multiple requests where possible
  2. Content Optimization: Use appropriate media formats and sizes
  3. Targeting: Use precise audience targeting for ads
  4. Analytics: Regular monitoring for optimization opportunities
  5. Cyrillic Support: Proper UTF-8 encoding for Russian text

🆘 Support

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ by N8N Tools

Discussion