Виджет / Справочник
Справочник полей cfg
Все настройки виджета одной плоской страницей с дефолтами. Удобно скопировать «полный JSON» в Postman или внутрь init().
brand
json
{
"accent_color": "#6366f1",
"theme": "auto",
"logo_url": null,
"logo_shape": "rounded",
"logo_transparent_bg": false,
"header_title": "Поддержка",
"project_name": "",
"header_subtitle": null,
"position": "right",
"border_radius": 16,
"display_mode": "widget",
"show_branding": true,
"cover_image_url": null,
"about_description": null,
"background": { "type": "solid", "value": null },
"icon_pack_url": null,
"emoji_pack_id": null,
"team_avatars": []
}welcome
json
{
"title": "Hi there 👋",
"subtitle": "Чем помочь?",
"message": null,
"button_text": "Написать",
"response_time": "Обычно отвечаем за 5 мин",
"auto_open_delay": null,
"schedule": null,
"bot_menu": [],
"pinned_banner": {
"enabled": false,
"text": null,
"image_url": null,
"dismissable": true,
"show_on": ["home", "conversation"]
}
}tabs
json
{
"help_enabled": true,
"news_enabled": true,
"help_external_channel_url": null,
"miniapp_enabled": false
}forms
json
{
"require_name": false,
"require_email": false,
"require_phone": false,
"pre_chat_message": null,
"topics": []
}conversation
json
{
"show_operator_name": true,
"show_operator_avatar": true,
"show_history": true,
"history_label": "Прошлые обращения",
"history_max_count": 10,
"rating": { "enabled": false, "prompt": "Как мы справились?" },
"privacy": {
"typing_enabled": true,
"read_receipts_enabled": true,
"operator_seen_enabled": true
},
"inline_keyboard_enabled": true,
"reactions_enabled": true
}hours
json
{
"show_work_hours": false,
"offline_message": "Мы оффлайн, ответим утром",
"outside_hours_message": "Сейчас вне рабочих часов",
"delayed_response_seconds": null,
"close_button_text": "Закрыть тикет",
"working_hours": [],
"away_segments": [],
"greeting_segments": []
}system_messages
json
{
"ticket_confirmation_text": "Тикет создан",
"assigned": { "enabled": true, "text": "Оператор {operator} с вами" },
"department_transfer": { "enabled": true, "text": "Передаём в {department}" },
"operator_transfer_text": "Передаём другому оператору",
"snoozed": { "enabled": true, "text": "Откладываем до {time}" },
"resumed": { "enabled": true, "text": "Возвращаемся к вашему вопросу" },
"reopened": { "enabled": true, "text": "Тикет переоткрыт" },
"auto_reply_closed_text": null,
"blocked_reply": { "enabled": false, "text": null }
}email_bridge
json
{
"enabled": false,
"required_offline_hours": 4,
"label": "Email для ответа",
"hint": "Пришлём ответ на почту",
"bridge_channel_id": null,
"auto_ack": { "enabled": false, "subject": null, "body": null }
}advanced
json
{
"keyword_rules": [],
"cookie_domain": null,
"sound": { "enabled": false, "url": null },
"custom_css": null,
"slow_mode": { "enabled": false, "seconds_per_message": 3, "anonymous_only": true },
"banned_patterns": [],
"slash_commands": [],
"translate": {
"enabled": false,
"auto_detect_source": true,
"operator_target_locale": "ru",
"visitor_target_locale": null,
"monthly_token_budget": 1000000
},
"feature_flags": {}
}Top-level (SP-4b)
json
{
"miniapp": {
"url": null,
"title": "App",
"icon": null,
"height_px": 480,
"auth_token_passthrough": false
},
"stories": {
"enabled": false,
"max_visible": 6
}
}Полный merged-конфиг
Если вам нужен один JSON со всеми полями (например, для моков/Postman), соберите все секции выше в один объект под ключами их секций — это и есть DEFAULT_WIDGET_CONFIG.
Была ли страница полезной?