{
    "name": "Поддержка",
    "nodes": [
        {
            "id": "node-X-muL4",
            "type": "autoclose",
            "position": {
                "x": -1785,
                "y": 519
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "action": "do_nothing",
                "message": "",
                "wait_for": 604800,
                "time_unit": "day"
            }
        },
        {
            "id": "node-PFPwFN",
            "type": "close",
            "position": {
                "x": 723,
                "y": 5
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "action": "do_nothing",
                "message": ""
            }
        },
        {
            "id": "node-IlJaLs",
            "type": "close",
            "position": {
                "x": 711,
                "y": 1411
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "action": "do_nothing",
                "message": ""
            }
        },
        {
            "id": "node-jEvi32",
            "type": "wait",
            "position": {
                "x": 23,
                "y": 5
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "wait_for": 0,
                "time_unit": "sec",
                "side": "in"
            }
        },
        {
            "id": "node-YKkIS6",
            "type": "wait",
            "position": {
                "x": 23,
                "y": 1224
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "wait_for": 0,
                "time_unit": "sec",
                "side": "in"
            }
        },
        {
            "id": "node-w5yr52",
            "type": "message",
            "position": {
                "x": -326,
                "y": 1224
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "message": "Пожалуйста, оцените наш диалог по шкале от 1 до 5 — нажмите кнопку ниже или отправьте в ответ цифру от 1 до 5.\n{{{1}}} {{{2}}} {{{3}}} {{{4}}} {{{5}}}",
                "files_urls": []
            }
        },
        {
            "id": "node-8ygdUu",
            "type": "message",
            "position": {
                "x": -326,
                "y": 5
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "message": "Пожалуйста, оцените наш диалог по шкале от 1 до 5 — нажмите кнопку ниже или отправьте в ответ цифру от 1 до 5.\n{{{1}}} {{{2}}} {{{3}}} {{{4}}} {{{5}}}",
                "files_urls": []
            }
        },
        {
            "id": "node-5E2Utf",
            "type": "start",
            "position": {
                "x": -1778,
                "y": 299
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "reaction_to": "incoming"
            }
        },
        {
            "id": "node-pHLp_p",
            "type": "condition",
            "position": {
                "x": -718,
                "y": -140
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "operation": "or",
                "conditions": [
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "true",
                        "expression_operator": "=",
                        "edge": "reactflow__edge-node-pHLp_p-node-8ygdUu",
                        "result_name": "ai_agent|node-_HyC_Z|data.escalation_reason.dialog_finished"
                    },
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "true",
                        "expression_operator": "=",
                        "edge": "reactflow__edge-node-pHLp_p-node-mF2gl7",
                        "result_name": "ai_agent|node-_HyC_Z|data.escalation_reason.operator_request"
                    },
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "true",
                        "expression_operator": "=",
                        "edge": "reactflow__edge-node-pHLp_p-node-DwHT9g",
                        "result_name": "ai_agent|node-_HyC_Z|data.escalation_reason.low_confidence"
                    },
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "true",
                        "expression_operator": "=",
                        "edge": "reactflow__edge-node-pHLp_p-node-w5yr52",
                        "result_name": "ai_agent|node-_HyC_Z|data.escalation_reason.negative"
                    }
                ]
            }
        },
        {
            "id": "node-rCyAaO",
            "type": "keyreaction",
            "position": {
                "x": -1455,
                "y": -558
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "reaction_to": "outgoing",
                "message": "",
                "action": "send_message",
                "search_pattern": "full_match",
                "key": "Здравствуйте! В данный момент мы не работаем, с вами продолжит общение бот и ответит на все интересующие вас вопросы!"
            }
        },
        {
            "id": "node-DwHT9g",
            "type": "assignment",
            "position": {
                "x": 723,
                "y": 894
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "",
                "employee_id": "89733",
                "assignment_type": "distributionStrictlyTurn",
                "reassignment": false,
                "reassignment_time": 60
            }
        },
        {
            "id": "node-mF2gl7",
            "type": "assignment",
            "position": {
                "x": 723,
                "y": 564
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "",
                "employee_id": "89733",
                "assignment_type": "distributionStrictlyTurn",
                "reassignment": false,
                "reassignment_time": 60
            }
        },
        {
            "id": "node-PoeBKs",
            "type": "rating",
            "position": {
                "x": 373,
                "y": 5
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "rating_field": "{{message}}"
            }
        },
        {
            "id": "node-0NUSu3",
            "type": "rating",
            "position": {
                "x": 373,
                "y": 1224
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "rating_field": "{{message}}"
            }
        },
        {
            "id": "node-GHR1OQ",
            "type": "offhours",
            "position": {
                "x": -1852,
                "y": -649
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "Здравствуйте! В данный момент мы не работаем, с вами продолжит общение бот и ответит на все интересующие вас вопросы!",
                "action": "send_message"
            }
        },
        {
            "id": "node-_HyC_Z",
            "type": "ai_agent",
            "position": {
                "x": -1230,
                "y": 327
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "type_of_work": "dialog",
                "name": "AI-бот поддержки",
                "user_prompt": "{{message}}",
                "system_prompt": "Ты - бот IT-компании `Пример`. Твоя задача - квалифицировать тип обащения и уточнить у клента детали проблемы (не сообщай об этом). Задавай вопросы по одному, не оценивай ответы клиента.",
                "role": "support",
                "prompt_for_custom_role": "",
                "custom_instructions": "",
                "send_result_to_chat": false,
                "delay_before_response_enabled": false,
                "delay_before_response_time": 10,
                "delay_before_response_time_type": "second",
                "finish_dialogue_if_reached_all_goals": true,
                "finish_dialogue_if_not_response_enabled": false,
                "finish_dialogue_if_not_response_time": 0,
                "finish_dialogue_if_not_response_time_type": "second",
                "finish_dialogue_if_over_n_messages": false,
                "finish_dialogue_n_messages_limit": 1,
                "finish_dialogue_if_low_answer_confidence": true,
                "finish_dialogue_if_user_call_operator": true,
                "finish_dialogue_if_user_is_negative": true,
                "finish_dialogue_if_custom_condition": "",
                "finish_dialogue_if_internal_user_wrote": false,
                "process_img_files": true,
                "process_audio_files": true,
                "process_text_files": true,
                "integration_type": "chatapp_ai",
                "model": "gpt-5",
                "temperature": 1.0,
                "top_p": 1.0,
                "verbosity": "low",
                "reasoning_effort": "",
                "is_history_enabled": false,
                "history_limit_mode": "messages",
                "history_limit_value": "1",
                "history_limit_time_type": "second",
                "knowledge_enabled": true,
                "knowledge_files": [
                    "aba97ff2-a639-4f08-9dd2-aca4683da1b0",
                    "64b60d8d-c951-40b1-8b2e-c282f7749780",
                    "0b5bf4e2-1157-44a4-9c8e-c58668c141f9"
                ],
                "knowledge_sites": [
                    "a0a5c930-5e7d-422f-83b6-d64bb743615c",
                    "da1ba16f-4f93-4065-98c6-1e7099d50cc1"
                ],
                "knowledge_quick_replies": [
                    "13188",
                    "5072",
                    "4946",
                    "4745"
                ],
                "custom_ui_settings": {
                    "model_enabled": true,
                    "channels": [],
                    "request_a_rating": true,
                    "conditions": [
                        {
                            "if": "dialog_finished",
                            "action": {
                                "type": "end",
                                "config": {}
                            }
                        },
                        {
                            "if": "operator_request",
                            "action": {
                                "type": "pass_to_employee",
                                "config": {
                                    "employee_id": 89733
                                }
                            }
                        },
                        {
                            "if": "answer_confidence",
                            "action": {
                                "type": "pass_to_employee",
                                "config": {
                                    "employee_id": 89733
                                }
                            }
                        },
                        {
                            "if": "negative",
                            "action": {
                                "type": "end",
                                "config": {}
                            }
                        }
                    ]
                },
                "ai_goals": [
                    {
                        "id": "",
                        "goal": "Привет! Я виртуальный помощник компании  `Пример`. 👋\nЧтобы я мог быстро проверить ваш тариф и статус аккаунта, напишите, пожалуйста, номер лицевого счета или привязанный телефон.",
                        "is_save_answer_in_variable": false,
                        "sort": 0,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": [
                            "966"
                        ]
                    },
                    {
                        "id": "",
                        "goal": "Принято. Подскажите, с чем вы столкнулись?",
                        "is_save_answer_in_variable": false,
                        "sort": 1,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": [
                            "comment"
                        ]
                    },
                    {
                        "id": "",
                        "goal": "Ответь на все вопросы клиента, бери инфомацию из базы знаний",
                        "is_save_answer_in_variable": false,
                        "sort": 2,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": []
                    }
                ],
                "custom_escalations": []
            }
        }
    ],
    "edges": [
        {
            "id": "reactflow__edge-node-0NUSu3-node-IlJaLs",
            "source": "node-0NUSu3",
            "source_name": "rating",
            "target": "node-IlJaLs",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-5E2Utf-node-_HyC_Z",
            "source": "node-5E2Utf",
            "source_name": "start",
            "target": "node-_HyC_Z",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-8ygdUu-node-jEvi32",
            "source": "node-8ygdUu",
            "source_name": "message",
            "target": "node-jEvi32",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-jEvi32-node-PoeBKs",
            "source": "node-jEvi32",
            "source_name": "wait",
            "target": "node-PoeBKs",
            "data": {
                "edge_data": "did_receive"
            }
        },
        {
            "id": "reactflow__edge-node-pHLp_p-node-8ygdUu",
            "source": "node-pHLp_p",
            "source_name": "condition",
            "target": "node-8ygdUu",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "reactflow__edge-node-pHLp_p-node-DwHT9g",
            "source": "node-pHLp_p",
            "source_name": "condition",
            "target": "node-DwHT9g",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "reactflow__edge-node-pHLp_p-node-mF2gl7",
            "source": "node-pHLp_p",
            "source_name": "condition",
            "target": "node-mF2gl7",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "reactflow__edge-node-pHLp_p-node-w5yr52",
            "source": "node-pHLp_p",
            "source_name": "condition",
            "target": "node-w5yr52",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "reactflow__edge-node-PoeBKs-node-PFPwFN",
            "source": "node-PoeBKs",
            "source_name": "rating",
            "target": "node-PFPwFN",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-w5yr52-node-YKkIS6",
            "source": "node-w5yr52",
            "source_name": "message",
            "target": "node-YKkIS6",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-YKkIS6-node-0NUSu3",
            "source": "node-YKkIS6",
            "source_name": "wait",
            "target": "node-0NUSu3",
            "data": {
                "edge_data": "did_receive"
            }
        },
        {
            "id": "reactflow__edge-node-_HyC_Z-node-pHLp_p",
            "source": "node-_HyC_Z",
            "source_name": "ai_agent",
            "target": "node-pHLp_p",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "xy-edge__node-rCyAaO123214332-node-_HyC_Zai-agent-target",
            "source": "node-rCyAaO",
            "source_name": "keyreaction",
            "target": "node-_HyC_Z",
            "data": {
                "edge_data": null
            }
        }
    ],
    "variables": [],
    "tags": [],
    "settings": {
        "fill_blocks": true,
        "fill_variables": false,
        "fill_tags": true,
        "tags_category_id": null,
        "reaction_while_on_pause": false
    },
    "template_type": "dialogue",
    "groups": [
        {
            "id": null,
            "createdAt": "2026-07-24T12:45:05.361000",
            "updatedAt": "2026-07-28T06:30:32.250000",
            "template_id": 23685,
            "name": "AI-бот поддержки",
            "nodes": [
                "node-X-muL4",
                "node-PFPwFN",
                "node-IlJaLs",
                "node-jEvi32",
                "node-YKkIS6",
                "node-w5yr52",
                "node-8ygdUu",
                "node-5E2Utf",
                "node-pHLp_p",
                "node-DwHT9g",
                "node-mF2gl7",
                "node-PoeBKs",
                "node-0NUSu3",
                "node-_HyC_Z"
            ],
            "x": -1866,
            "y": -220,
            "width": 3109,
            "height": 1865,
            "colour": "#8D89EB1A",
            "is_locked": false
        }
    ]
}