{
    "name": "Сценарий Мониторинг продаж",
    "nodes": [
        {
            "id": "node-JyO5HE",
            "type": "start_dialogue",
            "position": {
                "x": 2029,
                "y": -164
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "chat_id": "id чата для отправки",
                "license_id": "",
                "messenger": "",
                "save_dialogue": true,
                "message": "Ссылка на сообщение:\nhttps://t.me/c/{{cut_chat_id}}/{{trigger_message_id}}\n\nНазвание чата: {{name_chat}}\nИмя пользователя: {{name}}\nUsername пользователя: {{username}}\nТелефон пользователя: {{phone}}\n\n---\nТекст сообщения:\n{{message}}",
                "files_urls": []
            }
        },
        {
            "id": "node-czQ1ww",
            "type": "start_dialogue",
            "position": {
                "x": 2024,
                "y": 790
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "chat_id": "id чата для отправки",
                "license_id": "",
                "messenger": "",
                "save_dialogue": true,
                "message": "Ссылка на сообщение:\nhttps://t.me/{{username}}/\n\nНазвание чата: {{name_chat}}\nИмя пользователя: {{name}}\nUsername пользователя: {{username}}\nТелефон пользователя: {{phone}}\n\n---\nТекст сообщения:\n{{message}}",
                "files_urls": []
            }
        },
        {
            "id": "node-zt4Xdk",
            "type": "start_dialogue",
            "position": {
                "x": 2035,
                "y": 1743
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "chat_id": "id чата для отправки",
                "license_id": "",
                "messenger": "",
                "save_dialogue": true,
                "message": "Сообщение в канале {{messenger_type}}\n\nНазвание чата: {{name_chat}}\nИмя пользователя: {{name}}\nТелефон пользователя: {{phone}}\n\n---\nТекст сообщения:\n{{message}}",
                "files_urls": []
            }
        },
        {
            "id": "node-AXFGjX",
            "type": "keyreaction",
            "position": {
                "x": 265,
                "y": 1255
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "reaction_to": "incoming",
                "message": "",
                "action": "send_message",
                "search_pattern": "search",
                "key": "куплю;приобрету;хочу взять;интересно;купить;хочу;смотрю;присмотрел;платеж"
            }
        },
        {
            "id": "node-IAfkKp",
            "type": "condition",
            "position": {
                "x": 1229,
                "y": 770
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "operation": "and",
                "conditions": [
                    {
                        "id": "",
                        "variable": 1197,
                        "expression_value": "group",
                        "expression_operator": "contains",
                        "edge": null,
                        "result_name": null
                    }
                ]
            }
        },
        {
            "id": "node-6EKeDL",
            "type": "condition",
            "position": {
                "x": 725,
                "y": 1415
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "operation": "and",
                "conditions": [
                    {
                        "id": "",
                        "variable": 129,
                        "expression_value": "telegram",
                        "expression_operator": "=",
                        "edge": null,
                        "result_name": null
                    }
                ]
            }
        },
        {
            "id": "node-jR282l",
            "type": "code",
            "position": {
                "x": 1641,
                "y": 520
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "code_field": "var text = {{id_chat}};\nvar match = text.match(/^[^-]+-([^h]+)(?:h|$)/);\nvar cut_chat_id = match ? match[1] : ``;\nsave({cut_chat_id});"
            }
        },
        {
            "id": "node-_sv6v4",
            "type": "wait",
            "position": {
                "x": 1493,
                "y": -55
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "wait_for": 0,
                "time_unit": "sec",
                "side": "in"
            }
        },
        {
            "id": "node-Sg6nzg",
            "type": "autoclose",
            "position": {
                "x": 702,
                "y": 38
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "action": "do_nothing",
                "message": "",
                "wait_for": 604800,
                "time_unit": "day"
            }
        },
        {
            "id": "node-aVIBBi",
            "type": "start",
            "position": {
                "x": 1078,
                "y": 35
            },
            "data": {
                "display_title": "",
                "width": 0,
                "height": 0,
                "reaction_to": "incoming"
            }
        }
    ],
    "edges": [
        {
            "id": "reactflow__edge-node-aVIBBi-node-_sv6v4",
            "source": "node-aVIBBi",
            "source_name": "start",
            "target": "node-_sv6v4",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "reactflow__edge-node-IAfkKp-node-czQ1ww",
            "source": "node-IAfkKp",
            "source_name": "condition",
            "target": "node-czQ1ww",
            "data": {
                "edge_data": "false"
            }
        },
        {
            "id": "reactflow__edge-node-IAfkKp-node-jR282l",
            "source": "node-IAfkKp",
            "source_name": "condition",
            "target": "node-jR282l",
            "data": {
                "edge_data": "true"
            }
        },
        {
            "id": "reactflow__edge-node-jR282l-node-JyO5HE",
            "source": "node-jR282l",
            "source_name": "code",
            "target": "node-JyO5HE",
            "data": {
                "edge_data": null
            }
        },
        {
            "id": "xy-edge__node-6EKeDL-node-IAfkKp",
            "source": "node-6EKeDL",
            "source_name": "condition",
            "target": "node-IAfkKp",
            "data": {
                "edge_data": "true"
            }
        },
        {
            "id": "xy-edge__node-6EKeDL-node-zt4Xdk",
            "source": "node-6EKeDL",
            "source_name": "condition",
            "target": "node-zt4Xdk",
            "data": {
                "edge_data": "false"
            }
        },
        {
            "id": "xy-edge__node-AXFGjX-node-6EKeDL",
            "source": "node-AXFGjX",
            "source_name": "keyreaction",
            "target": "node-6EKeDL",
            "data": {
                "edge_data": null
            }
        }
    ],
    "variables": [
        {
            "id": 129,
            "name": "messenger_type",
            "data_type": "str",
            "value": "string",
            "scope": "system",
            "template": 1
        },
        {
            "id": 1197,
            "name": "id_chat",
            "data_type": "str",
            "value": "string",
            "scope": "system",
            "template": 1
        },
        {
            "id": 32918,
            "name": "Name",
            "data_type": "str",
            "value": "",
            "scope": "local",
            "template": null
        },
        {
            "id": 32919,
            "name": "Phone",
            "data_type": "str",
            "value": "",
            "scope": "local",
            "template": null
        },
        {
            "id": 36783,
            "name": "cut_chat_id",
            "data_type": "str",
            "value": "",
            "scope": "local",
            "template": null
        }
    ],
    "tags": null,
    "settings": {
        "fill_blocks": true,
        "fill_variables": true,
        "fill_tags": false,
        "tags_category_id": null,
        "reaction_while_on_pause": false
    },
    "template_type": "dialogue"
}