{
    "name": "Салон красоты",
    "nodes": [
        {
            "id": "node-xG9580",
            "type": "autoclose",
            "position": {
                "x": -168,
                "y": 227
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "action": "do_nothing",
                "message": "",
                "wait_for": 604800,
                "time_unit": "day"
            }
        },
        {
            "id": "node--MvNFW",
            "type": "wait",
            "position": {
                "x": 913,
                "y": 563
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "wait_for": 0,
                "time_unit": "sec",
                "side": "in"
            }
        },
        {
            "id": "node-2RooXu",
            "type": "message",
            "position": {
                "x": 1298,
                "y": 284
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "message": "К сожалению, не поняли вас. Выберите, пожалуйста, один из вариантов ответа!",
                "files_urls": []
            }
        },
        {
            "id": "node-eHGezZ",
            "type": "start",
            "position": {
                "x": -174,
                "y": -19
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "reaction_to": "incoming"
            }
        },
        {
            "id": "node-vdaGcY",
            "type": "condition",
            "position": {
                "x": 784,
                "y": -228
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "operation": "or",
                "conditions": [
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "1️⃣ Женская стрижка;2️⃣ Окрашивание",
                        "expression_operator": "=",
                        "edge": "xy-edge__node-vdaGcY1232132-node-0CQBqP1232132",
                        "result_name": null
                    },
                    {
                        "id": "",
                        "variable": "",
                        "expression_value": "3️⃣ Маникюр;4️⃣ Педикюр",
                        "expression_operator": "=",
                        "edge": "xy-edge__node-vdaGcY1232132-node-L21-NZ1232132",
                        "result_name": null
                    }
                ]
            }
        },
        {
            "id": "node-1zMGs4",
            "type": "keyreaction",
            "position": {
                "x": 193,
                "y": -742
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "reaction_to": "outgoing",
                "message": "",
                "action": "send_message",
                "search_pattern": "full_match",
                "key": "Здравствуйте! В данный момент мы не работаем, с вами продолжит общение бот и ответит на все интересующие вас вопросы!"
            }
        },
        {
            "id": "node-0CQBqP",
            "type": "assignment",
            "position": {
                "x": 1284,
                "y": -1001
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "Добрый день! Меня зовут Мария, я занимаюсь стрижками и окрашиваниями. Расскажите, пожалуйста, подробнее, что вас интересует? :)\nЗаписаться можно по этой ссылке: https://lotos.bitrix24.ru/111",
                "employee_id": "31674",
                "assignment_type": "distributionStrictlyTurn",
                "reassignment": false,
                "reassignment_time": 60
            }
        },
        {
            "id": "node-L21-NZ",
            "type": "assignment",
            "position": {
                "x": 1296,
                "y": -344
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "Добрый день! Меня зовут Дарья, я занимаюсь маникюом и педикюром. Расскажите, пожалуйста, подробнее, что вас интересует? :)\nЗаписаться можно по этой ссылке: https://lotos.bitrix24.ru/222",
                "employee_id": "89733",
                "assignment_type": "distributionStrictlyTurn",
                "reassignment": false,
                "reassignment_time": 60
            }
        },
        {
            "id": "node-DWAgDy",
            "type": "crm_edit_deal",
            "position": {
                "x": 1671,
                "y": -293
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "name": "{{1}}, {{2}}",
                "stage": "",
                "amount": "",
                "currency": "",
                "responsible": "",
                "contact": "",
                "company": "",
                "pipeline": "",
                "deal_id": "{{crm_create_deal|node-JBnr-E|crm_id}}",
                "custom_fields": []
            }
        },
        {
            "id": "node-ntMn3R",
            "type": "offhours",
            "position": {
                "x": -175,
                "y": -461
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "message": "Здравствуйте! В данный момент мы не работаем, с вами продолжит общение бот и ответит на все интересующие вас вопросы!",
                "action": "send_message"
            }
        },
        {
            "id": "node-XGFuEX",
            "type": "ai_agent",
            "position": {
                "x": 475,
                "y": -19
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "as_reply": false,
                "type_of_work": "dialog",
                "name": "Алексей",
                "user_prompt": "{{message}}",
                "system_prompt": "Ты - бот-администратор салона красоты `Лотос`. Твоя задача - задать несколько вопросов клиенту перед записью (не сообщай об этом). Задавай вопросы по одному, не оценивай ответы клиента.",
                "role": "ai_operator_custom",
                "prompt_for_custom_role": "Ты - бот-администратор салона красоты `Лотос`",
                "custom_instructions": "",
                "send_result_to_chat": false,
                "delay_before_response_enabled": false,
                "delay_before_response_time": 0,
                "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": 0,
                "finish_dialogue_if_low_answer_confidence": false,
                "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": false,
                "process_audio_files": false,
                "process_text_files": false,
                "integration_type": "chatapp_ai",
                "model": "gpt-5",
                "verbosity": "",
                "reasoning_effort": "",
                "is_history_enabled": false,
                "history_limit_mode": "time",
                "history_limit_value": "",
                "history_limit_time_type": "hour",
                "knowledge_enabled": false,
                "knowledge_files": [],
                "knowledge_sites": [],
                "knowledge_quick_replies": [],
                "custom_ui_settings": {
                    "model_enabled": false
                },
                "ai_goals": [
                    {
                        "id": "",
                        "goal": "Чтобы я мог подобрать для вас лучшее время, давайте познакомимся. Как мне к вам обращаться?",
                        "is_save_answer_in_variable": true,
                        "sort": 0,
                        "variable": "",
                        "variable_list_ids": [
                            37350
                        ],
                        "dialogs_field_keys": []
                    },
                    {
                        "id": "",
                        "goal": "Отлично! 😊\nНа всякий случай, если я потеряю связь с вами в процессе записи, продублируйте, пожалуйста, ваш номер телефона.",
                        "is_save_answer_in_variable": true,
                        "sort": 1,
                        "variable": "",
                        "variable_list_ids": [
                            37351
                        ],
                        "dialogs_field_keys": []
                    },
                    {
                        "id": "",
                        "goal": "Спасибо. Какую именно процедуру вы хотите выполнить? Выберите из списка:\n1️⃣ Женская стрижка\n2️⃣ Окрашивание\n3️⃣ Маникюр\n4️⃣ Педикюр",
                        "is_save_answer_in_variable": true,
                        "sort": 2,
                        "variable": "",
                        "variable_list_ids": [
                            37352
                        ],
                        "dialogs_field_keys": []
                    },
                    {
                        "id": "",
                        "goal": "Поблагодари за ответы и передай администратору",
                        "is_save_answer_in_variable": false,
                        "sort": 3,
                        "variable": "",
                        "variable_list_ids": [],
                        "dialogs_field_keys": []
                    }
                ],
                "custom_escalations": []
            }
        }
    ],
    "edges": [
        {
            "id": "xy-edge__node--MvNFW2-node-vdaGcY1232132",
            "source": "node--MvNFW",
            "source_name": "wait",
            "target": "node-vdaGcY",
            "data": {
                "edge_data": "did_receive"
            }
        },
        {
            "id": "xy-edge__node-0CQBqP123214332-node-DWAgDy1232132",
            "source": "node-0CQBqP",
            "source_name": "assignment",
            "target": "node-DWAgDy",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "xy-edge__node-1zMGs4123214332-node-XGFuEXai-agent-target",
            "source": "node-1zMGs4",
            "source_name": "keyreaction",
            "target": "node-XGFuEX",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "xy-edge__node-2RooXunode-2RooXu-node--MvNFW2",
            "source": "node-2RooXu",
            "source_name": "message",
            "target": "node--MvNFW",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "xy-edge__node-eHGezZ2-node-XGFuEXai-agent-target",
            "source": "node-eHGezZ",
            "source_name": "start",
            "target": "node-XGFuEX",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "xy-edge__node-L21-NZ123214332-node-DWAgDy1232132",
            "source": "node-L21-NZ",
            "source_name": "assignment",
            "target": "node-DWAgDy",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "xy-edge__node-vdaGcY1232132-node-0CQBqP1232132",
            "source": "node-vdaGcY",
            "source_name": "condition",
            "target": "node-0CQBqP",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "xy-edge__node-vdaGcY1232132-node-2RooXunode-2RooXu",
            "source": "node-vdaGcY",
            "source_name": "condition",
            "target": "node-2RooXu",
            "data": {
                "edge_data": "false"
            }
        },
        {
            "id": "xy-edge__node-vdaGcY1232132-node-L21-NZ1232132",
            "source": "node-vdaGcY",
            "source_name": "condition",
            "target": "node-L21-NZ",
            "data": {
                "edge_data": "condition"
            }
        },
        {
            "id": "xy-edge__node-XGFuEXai-agent-source-node-vdaGcY1232132",
            "source": "node-XGFuEX",
            "source_name": "ai_agent",
            "target": "node-vdaGcY",
            "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": []
}