{
"dialogs": [
{
"id": "507f1f77bcf86cd799439011",
"agent_id": "550e8400-e29b-41d4-a716-446655440002",
"channel_id": "550e8400-e29b-41d4-a716-446655440000",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "active",
"dialog_type": "web",
"external_dialog_id": "vk_private_channel-uuid_12345",
"tags": [
"возврат",
"товар"
],
"category": "support",
"topic": "Возврат товара",
"priority": "low",
"quality_score": 0.85,
"user_satisfaction": "satisfied",
"resolution_type": "solved",
"needs_review": false,
"is_escalated": false,
"has_errors": false,
"traffic_source": "widget",
"traffic_medium": "organic",
"device_type": "mobile",
"utm_source": "vk",
"utm_medium": "cpc",
"utm_campaign": "promo2025",
"utm_term": "возврат товара",
"utm_content": "banner_blue",
"duration_seconds": 300,
"first_response_time_seconds": 45,
"started_at": "2025-12-25T10:00:00Z",
"completed_at": "2025-12-25T12:30:00Z",
"last_event_at": "2025-12-25T12:30:00Z",
"created_at": "2025-12-25T10:00:00Z",
"updated_at": "2025-12-25T12:30:00Z",
"metadata": {
"platform": "vk",
"utm_source": "google",
"utm_campaign": "promo2025",
"traffic_source": "widget",
"traffic_channel": "organic",
"device_type": "mobile",
"utm_medium": "cpc",
"utm_term": "возврат товара",
"utm_content": "banner_blue",
"user_agent": "Mozilla/5.0...",
"ip_address": "192.168.1.1",
"geo_location": "Moscow, Russia",
"language": "ru-RU",
"timezone_offset": 180,
"platform_type": "social",
"bot_id": "123456",
"bot_name": "SupportAgent",
"integration": {
"source": "webhook",
"data": {}
},
"custom": {
"custom_field": "value"
},
"created_by_admin": true,
"admin_user_id": "admin-uuid",
"admin_note": "Тестовый диалог для проверки интеграции"
},
"is_test": false,
"total_events": 42,
"messages_count": 30,
"operator_unread_count": 5,
"lead_unread_count": 3,
"primary_lead_id": "550e8400-e29b-41d4-a716-446655440004",
"context": {
"channel_type": "vk",
"chat_id": "83159543",
"peer_id": 2000000001,
"owner_id": -123456,
"post_id": 789,
"topic_id": 12345,
"thread_id": 42,
"user_id": "user-123",
"dialog_type": "private"
},
"display_info": {
"name": "Иван Петров",
"avatar_url": "https://vk.com/images/camera_200.png",
"source_type": "lead",
"platform": "vk",
"platform_type": "vk"
},
"first_message": {
"content": "Hello",
"role": "user",
"timestamp": "2025-12-25T10:00:00Z"
},
"last_message": {
"content": "Thanks",
"role": "user",
"timestamp": "2025-12-25T12:30:00Z",
"event_type": "message"
},
"dc_channel_type": "vk",
"dc_chat_id": "83159543",
"dc_vk_peer_id": 2000000001,
"dc_vk_owner_id": -123456,
"dc_vk_post_id": 789,
"dc_vk_topic_id": 12345,
"dc_tg_thread_id": 42,
"dc_email_from": "support@company.com",
"dc_email_to": "client@example.com",
"dc_email_subject": "Re: Вопрос по заказу",
"dc_email_message_id": "<abc123@mail.yandex.com>",
"dc_email_thread_id": "<first123@mail.yandex.com>",
"dc_email_references": [
"<a@mail.com>",
"<b@mail.com>"
],
"agent": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Агент поддержки",
"description": "Помогает клиентам...",
"avatar_url": "https://avatars-ai.senler.ru/agents/550e8400.jpg"
},
"is_sound_muted": false
}
],
"created": true,
"can_create_more": true
}