{
"id": "507f1f77bcf86cd799439011",
"agent_id": "123",
"channel_id": "550e8400-e29b-41d4-a716-446655440000",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"started_at": "2024-01-01T00:00:00.000Z",
"last_event_at": "2024-01-01T00:00:00.000Z",
"ended_at": "2024-01-01T00:00:00.000Z",
"status": "active",
"event_count": 10,
"first_event_timestamp": "2024-01-01T00:00:00.000Z",
"last_event_timestamp": "2024-01-01T00:00:00.000Z",
"time_span_days": 5,
"days_since_last_event": 2,
"entity_types": [
"user",
"order"
],
"entity_ids": [
"user_123",
"order_456"
],
"metadata": {},
"summary": "Помощь с заказом",
"user_timezone_offset_minutes": 180,
"is_test": false,
"is_test_completed": false,
"widget_user_id": "widget_user_123",
"archived_at": "2024-01-01T00:00:00.000Z",
"archived_by": "admin",
"unarchived_at": "2024-01-01T00:00:00.000Z",
"unarchived_by": "admin",
"previous_status": "active",
"created_by_admin": false,
"admin_user_id": "admin_123",
"traffic_channel": "telegram",
"primary_lead_id": "lead_123",
"dialog_type": "web",
"external_dialog_id": "ext_123",
"dc_channel_type": "telegram",
"dc_chat_id": "123456789",
"dc_vk_peer_id": 123456789,
"dc_vk_owner_id": 123456789,
"dc_vk_post_id": 123,
"dc_vk_topic_id": 123,
"dc_tg_thread_id": 123,
"updated_at": "2024-01-01T00:00:00.000Z",
"messages_count": 42,
"operator_unread_count": 5,
"lead_unread_count": 3,
"search": {
"score": 12.5,
"total_matches": 3,
"top_match": {
"event_id": "507f1f77bcf86cd799439011",
"content": "Привет, хочу <em>заказать</em> пиццу",
"timestamp": "2024-01-01T12:00:00.000Z",
"sender_role": "user"
}
},
"muted_until": "2026-01-27T18:00:00.000Z",
"muted_by_scheduled_id": "550e8400-e29b-41d4-a716-446655440000",
"is_sound_muted": false,
"last_message": {
"content": "Привет! Как дела?",
"role": "user",
"timestamp": "2026-01-09T16:25:49.680Z",
"event_type": "message",
"attachments": [
{
"type": "photo",
"count": 2
},
{
"type": "document",
"count": 1
}
]
},
"display_info": {
"name": "Иван Петров",
"avatar_url": "https://vk.com/images/camera_200.png",
"source_type": "lead",
"platform_type": "vk"
},
"lead": {
"id": "507f1f77bcf86cd799439011",
"first_name": "Максим",
"last_name": "Лаптев",
"username": "serious_max",
"avatar_url": "https://vk.com/avatar.jpg",
"external_user_id": "19360931",
"is_subscribed": true
},
"channel": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Моя VK группа",
"type": "vk",
"external_id": "@mychannel",
"avatar_url": "https://vk.com/avatar.jpg",
"is_active": true
},
"agent": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Агент поддержки",
"description": "Помогает клиентам...",
"avatar_url": "https://avatars-ai.senler.ru/agents/550e8400.jpg"
},
"current_typing": [
{
"sender": {
"id": "uuid-123",
"type": "assistant",
"first_name": "Иван",
"last_name": "Петров"
},
"started_at": "2026-01-28T10:00:00Z",
"streaming": true
}
]
}