Social Media Sales Automation Setup for 1C-Bitrix
Every day managers spend hours copying orders from VK, Telegram, and Instagram into the system: open a chat, copy, paste into the admin panel, send a confirmation. This isn't a process—it's chaos that leads to losses and errors. We automate this flow: set up a single entry point via Bitrix24 Open Lines, create autohandlers, and attribute each order. Our engineers are 1C-Bitrix certified with 5+ years of experience in social media integrations.
Why Manual Order Processing from Social Media Is a Problem
Imagine: 50 orders per day from different messengers. A manager must reply quickly, not forget, not mix up items. One mistake—a lost customer. One of our clients lost 15% of orders because managers forgot to reply on Instagram. After setting up Open Lines and auto-creation of leads, losses dropped to 2%. — Client case study Open Lines solves this: all messages are collected into a single CRM queue, and a handler automatically creates an order in b_sale_order. We write such handlers for your scenario.
How Open Lines Works
The imopenlines module aggregates messages from all connected channels into a single Bitrix24 chat queue. An incoming request from VK or Telegram creates a new chat in CRM, which can be assigned to a free manager or via queue rules. Routing settings are stored in b_imopenlines_config. We configure the setup for your load and SLA—guaranteeing stability even at peaks of 1000 messages per minute. According to the Open Lines documentation, the system handles 1000 messages per minute on a typical configuration. — 1C-Bitrix Developer Documentation
Integrating VK with Your Store
VK Shopping is a catalog synchronized via YML feed. When a user places an order in VK, data comes as an incoming message to Open Lines. To automatically create an order, you need an OnOpenLineMessageAdd handler. Example:
AddEventHandler('imopenlines', 'OnOpenLineMessageAdd', function(\Bitrix\Main\Event $event) { $message = $event->getParameter('message'); $channelType = $message['CHANNEL_TYPE'] ?? ''; if ($channelType !== 'vk') return; // Extract product data from structured VK message $orderData = parseVkOrderMessage($message['MESSAGE']); if (!$orderData) return; // Create a lead in CRM $crmLead = new \CCrmLead(false); $crmLead->Add([ 'TITLE' => 'Order from VK: ' . $orderData['product'], 'STATUS_ID' => 'NEW', 'SOURCE_ID' => 'VK', 'PHONE' => [['VALUE' => $orderData['phone'], 'VALUE_TYPE' => 'WORK']], 'UF_CRM_1_VK_ORDER_ID' => $orderData['order_id'], ]); }); We adapt this code to your catalog and VK message structure.
Telegram: Custom Bot or Open Lines?
Open Lines is 3x faster to set up than a custom bot (1–2 days vs. 3–5 days). However, a custom bot offers 5x more flexibility in order management. Comparison:
| Criteria | Open Lines | Custom Bot |
|---|---|---|
| Setup time | 1–2 days | 3–5 days |
| Order management flexibility | Medium | Full |
| Catalog capability | No | Yes (inline buttons) |
| Load up to 1000 msg/min | Yes | Depends on server |
| Development cost | Included in basic integration | Additional |
We recommend Open Lines as a base, and a bot for large stores with a big assortment. Bot example:
// /local/ajax/telegram-webhook.php $update = json_decode(file_get_contents('php://input'), true); if (isset($update['callback_query'])) { $data = $update['callback_query']['data']; $chatId = $update['callback_query']['message']['chat']['id']; if (str_starts_with($data, 'order_product_')) { $productId = (int)str_replace('order_product_', '', $data); // Create order via Bitrix REST or directly via sale API $orderId = createOrderFromTelegram($chatId, $productId); sendTelegramMessage($chatId, "Order #{$orderId} created. A manager will contact you."); } } How to Keep the Catalog Up-to-Date in VK and Telegram?
VK updates the catalog once every 24 hours with automatic sync. We set up an agent that updates the YML feed every 2 hours and forces an update via VK API. For Telegram, the catalog is always current—the bot queries prices and stock via Bitrix API in real time. So you won't sell an item that's out of stock.
Passing UTM Tags for Analytics
Order attribution is critical. When creating an order via the handler, we add UTM tags to a custom order field:
$order->setField('USER_DESCRIPTION', 'source=vk&medium=social&campaign=openlines'); Or use a separate field UF_ORDER_UTM_SOURCE for b_sale_order. In reports, you see which channel brought the order and can optimize your ad budget.
How to Set Up Social Media Sales in 1C-Bitrix (Step by Step)
- Audit current channels and Bitrix configuration – We analyze your existing setup, message load, and sales processes. Typically, 80% of orders come from VK and Telegram.
- Configure Open Lines channels – Authorize VK, Telegram, Instagram, etc. in Bitrix24 settings. Set up routing rules and SLA.
-
Develop event handlers – Write
OnOpenLineMessageAddhandler to parse incoming messages and create leads/orders automatically. This reduces processing time by 70%. - Set up YML feed for VK Shopping – Generate and synchronize product catalog with VK. Include automatic updates every 2 hours.
- Test all scenarios – Simulate orders from each channel, verify order creation, UTM passing, and notifications.
- Train managers – Show how to use unified chat queue and reports.
What's Included in Social Media Sales Setup
- Audit of current channels and Bitrix configuration
- Open Lines setup for VK, Telegram, Instagram with routing rules
- Development of an
OnOpenLineMessageAddhandler for your catalog - YML feed setup and update agent for VK Shopping
- Optional: Telegram bot with catalog and inline buttons
- Installation of custom fields for UTM and source
- Testing of all scenarios
- Manager training on chats and reports
- 30-day warranty support
Why Choose Us?
Our engineers hold 1C-Bitrix certificates and have experience with trade catalogs of 10,000+ items. Over 5 years, we've completed more than 50 social media integrations with Bitrix. We provide a warranty on all work and post-warranty support. Your managers will no longer copy orders manually—we automate the process turnkey.
Timeline and Cost
Basic integration (Open Lines + VK) starts at $500 (€450) and takes from 5 business days. Comprehensive solution with Telegram bot starts at $1,200 (€1,080) and takes up to 14 days. Cost is calculated individually, depending on the number of channels, catalog complexity, and need for bot development. For a store with 100 orders/day, automation typically saves $2,000 monthly in labor costs.
Request a Consultation
We'll evaluate your project: analyze current channels, load, and scenarios. Propose the optimal solution and exact cost. Contact us—start automating your sales today.







