{
    "name": "HR-скрининг",
    "nodes": [
        {
            "id": "node-sk4l8w",
            "type": "autoclose",
            "position": {
                "x": -186,
                "y": 651
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "action": "do_nothing",
                "message": "",
                "wait_for": 604800,
                "time_unit": "day"
            }
        },
        {
            "id": "node-BnvCT8",
            "type": "close",
            "position": {
                "x": 2322,
                "y": 466
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "action": "do_nothing",
                "message": ""
            }
        },
        {
            "id": "node-wGhFru",
            "type": "wait",
            "position": {
                "x": 1622,
                "y": 466
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "wait_for": 0,
                "time_unit": "sec",
                "side": "in"
            }
        },
        {
            "id": "node-gAEAup",
            "type": "message",
            "position": {
                "x": 1272,
                "y": 466
            },
            "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-KSS1eJ",
            "type": "start",
            "position": {
                "x": -179,
                "y": 431
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "reaction_to": "incoming"
            }
        },
        {
            "id": "node-8Tr3Ln",
            "type": "condition",
            "position": {
                "x": 880,
                "y": -8
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "operation": "or",
                "conditions": [
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "true",
                        "expression_operator": "=",
                        "edge": "reactflow__edge-node-8Tr3Ln-node-UD8jPC",
                        "result_name": "ai_agent|node-9ML5mr|data.escalation_reason.dialog_finished"
                    },
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "true",
                        "expression_operator": "=",
                        "edge": "reactflow__edge-node-8Tr3Ln-node-gAEAup",
                        "result_name": "ai_agent|node-9ML5mr|data.escalation_reason.custom_escalations"
                    }
                ]
            }
        },
        {
            "id": "node-sYavPI",
            "type": "keyreaction",
            "position": {
                "x": 250,
                "y": -389
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "reaction_to": "outgoing",
                "message": "",
                "action": "send_message",
                "search_pattern": "full_match",
                "key": "Здравствуйте! В данный момент мы не работаем, с вами продолжит общение бот и ответит на все интересующие вас вопросы!"
            }
        },
        {
            "id": "node-UD8jPC",
            "type": "assignment",
            "position": {
                "x": 2139,
                "y": -51
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "",
                "employee_id": "89733",
                "assignment_type": "distributionUniform",
                "reassignment": false,
                "reassignment_time": 60
            }
        },
        {
            "id": "node-T-HtrC",
            "type": "rating",
            "position": {
                "x": 1972,
                "y": 466
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "rating_field": "{{message}}"
            }
        },
        {
            "id": "node-JaJfES",
            "type": "offhours",
            "position": {
                "x": -123,
                "y": -123
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "Здравствуйте! В данный момент мы не работаем, с вами продолжит общение бот и ответит на все интересующие вас вопросы!",
                "action": "send_message"
            }
        },
        {
            "id": "node-9ML5mr",
            "type": "ai_agent",
            "position": {
                "x": 368,
                "y": 459
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "type_of_work": "dialog",
                "name": "HR-скрининг",
                "user_prompt": "{{message}}",
                "system_prompt": "Ты - виртуальный ассистент отдела кадров компании `Пример`. Твоя задача - задать несколько вопросов соискателю и квалифицировать его (не сообщай об этом)",
                "role": "hr",
                "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": false,
                "finish_dialogue_if_user_call_operator": false,
                "finish_dialogue_if_user_is_negative": false,
                "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": "pass_to_employee",
                                "config": {
                                    "employee_id": 89733
                                }
                            }
                        },
                        {
                            "if": "custom_escalations",
                            "action": {
                                "type": "end",
                                "config": {}
                            }
                        }
                    ]
                },
                "ai_goals": [
                    {
                        "id": "",
                        "goal": " Здравствуйте! Я виртуальный ассистент отдела кадров \"Пример\".\n\nРад, что вы откликнулись на вакансию «Менеджер по продажам B2B».\n\n📌 Важно: Этот разговор займет пару минут. Ваши ответы будут проанализированы автоматически, а в случае успеха переданы живому рекрутеру.\n\nПродолжая, вы даете согласие на обработку персональных данных.",
                        "is_save_answer_in_variable": false,
                        "sort": 0,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": []
                    },
                    {
                        "id": "",
                        "goal": "Вакансия предполагает гибридный формат (3 дня в офисе в центре Москвы).\n\nВопрос 1: Готовы ли вы добираться до офиса на метро «Деловой центр» 3 раза в неделю?\n\n✅ Да, готов(а) / ❌ Нет, только удаленка]",
                        "is_save_answer_in_variable": false,
                        "sort": 1,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": [
                            "967"
                        ]
                    },
                    {
                        "id": "",
                        "goal": "Каковы ваши финансовые ожидания на период испытательного срока (3 месяца) и после него?",
                        "is_save_answer_in_variable": false,
                        "sort": 2,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": [
                            "968"
                        ]
                    },
                    {
                        "id": "",
                        "goal": "Расскажите о вашем последнем месте работы.\n\nВопрос 3: Какой у вас был средний чек (в рублях) и процент выполнения плана за последние 6 месяцев?",
                        "is_save_answer_in_variable": false,
                        "sort": 3,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": [
                            "969"
                        ]
                    }
                ],
                "custom_escalations": [
                    {
                        "id": "",
                        "escalation_text": "если клиент выбрал только удалёнку, вежливо отказать, так как гибрид - обязательное условие",
                        "escalation_name": ""
                    }
                ]
            }
        }
    ],
    "edges": [
        {
            "id": "reactflow__edge-node-8Tr3Ln-node-gAEAup",
            "source": "node-8Tr3Ln",
            "source_name": "condition",
            "target": "node-gAEAup",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "reactflow__edge-node-8Tr3Ln-node-UD8jPC",
            "source": "node-8Tr3Ln",
            "source_name": "condition",
            "target": "node-UD8jPC",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "reactflow__edge-node-9ML5mr-node-8Tr3Ln",
            "source": "node-9ML5mr",
            "source_name": "ai_agent",
            "target": "node-8Tr3Ln",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-gAEAup-node-wGhFru",
            "source": "node-gAEAup",
            "source_name": "message",
            "target": "node-wGhFru",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-KSS1eJ-node-9ML5mr",
            "source": "node-KSS1eJ",
            "source_name": "start",
            "target": "node-9ML5mr",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-T-HtrC-node-BnvCT8",
            "source": "node-T-HtrC",
            "source_name": "rating",
            "target": "node-BnvCT8",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-wGhFru-node-T-HtrC",
            "source": "node-wGhFru",
            "source_name": "wait",
            "target": "node-T-HtrC",
            "data": {
                "edge_data": "did_receive"
            }
        },
        {
            "id": "xy-edge__node-sYavPI123214332-node-9ML5mrai-agent-target",
            "source": "node-sYavPI",
            "source_name": "keyreaction",
            "target": "node-9ML5mr",
            "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": []
}