{
  "format": "podpislon-workflow",
  "version": 1,
  "exported_at": "2026-10-15T12:51:36+00:00",
  "workflow": {
    "name": "Документ на подпись из сделки: отправка",
    "definition": {
      "nodes": [
        {
          "id": "trigger",
          "type": "workflow-node",
          "dimensions": {
            "width": 220,
            "height": 88
          },
          "computedPosition": {
            "x": 0,
            "y": 0,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "trigger",
                "position": "right",
                "x": 213,
                "y": 38.1484375,
                "width": 12,
                "height": 12
              }
            ],
            "target": null
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 0,
            "y": 0
          },
          "data": {
            "nodeType": "webhook",
            "label": "Смена стадии сделки",
            "config": {
              "method": "POST"
            }
          },
          "events": []
        },
        {
          "id": "deal",
          "type": "workflow-node",
          "dimensions": {
            "width": 260,
            "height": 88
          },
          "computedPosition": {
            "x": 300,
            "y": 0,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "deal",
                "position": "right",
                "x": 252.6328125,
                "y": 38.1484375,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "deal",
                "position": "left",
                "x": -5,
                "y": 38.1484375,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 300,
            "y": 0
          },
          "data": {
            "nodeType": "bitrix24_get_deal_by_id",
            "label": "Данные сделки",
            "config": {
              "connection_id": "",
              "deal_id": "{{ trigger.query.deal_id }}"
            }
          },
          "events": []
        },
        {
          "id": "contact",
          "type": "workflow-node",
          "dimensions": {
            "width": 260,
            "height": 105
          },
          "computedPosition": {
            "x": 600,
            "y": 0,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "contact",
                "position": "right",
                "x": 253,
                "y": 46.546875,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "contact",
                "position": "left",
                "x": -5,
                "y": 46.546875,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 600,
            "y": 0
          },
          "data": {
            "nodeType": "bitrix24_get_contact_by_id",
            "label": "Контакт клиента",
            "config": {
              "connection_id": "",
              "contact_id": "{{ deal.deal.CONTACT_ID }}"
            }
          },
          "events": []
        },
        {
          "id": "file",
          "type": "workflow-node",
          "dimensions": {
            "width": 260,
            "height": 139
          },
          "computedPosition": {
            "x": 900,
            "y": 0,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "file",
                "position": "right",
                "x": 253,
                "y": 63.34375,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "file",
                "position": "left",
                "x": -5,
                "y": 63.34375,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 900,
            "y": 0
          },
          "data": {
            "nodeType": "bitrix24_get_entity_file",
            "label": "PDF из поля сделки",
            "config": {
              "connection_id": "",
              "download_url": "{{ deal.deal.UF_CRM_CONTRACT_FILE.downloadUrl }}",
              "entity_type_id": "",
              "entity_id": "{{ deal.deal.ID }}",
              "field_name": "UF_CRM_CONTRACT_FILE",
              "file_id": "{{ deal.deal.UF_CRM_CONTRACT_FILE.id }}"
            }
          },
          "events": []
        },
        {
          "id": "send",
          "type": "workflow-node",
          "dimensions": {
            "width": 260,
            "height": 109
          },
          "computedPosition": {
            "x": 1200,
            "y": 0,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "send",
                "position": "right",
                "x": 253,
                "y": 48.6484375,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "send",
                "position": "left",
                "x": -5,
                "y": 48.6484375,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 1200,
            "y": 0
          },
          "data": {
            "nodeType": "podpislon_add_document",
            "label": "Подпислон: отправить на подпись",
            "config": {
              "connection_id": "",
              "first_name": "{{ contact.contact.NAME }}",
              "last_name": "{{ contact.contact.LAST_NAME }}",
              "second_name": "{{ contact.contact.SECOND_NAME }}",
              "phone": "{{ contact.contact.PHONE.0.VALUE }}",
              "file_base64": "{{ file.file_base64 }}",
              "file_name": "{{ deal.deal.TITLE }}.pdf",
              "no_sms": null,
              "redirect_url": ""
            }
          },
          "events": []
        },
        {
          "id": "sent_doc",
          "type": "workflow-node",
          "dimensions": {
            "width": 260,
            "height": 126
          },
          "computedPosition": {
            "x": 1800,
            "y": 0,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "sent_doc",
                "position": "right",
                "x": 253,
                "y": 57.046875,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "sent_doc",
                "position": "left",
                "x": -5,
                "y": 57.046875,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 1800,
            "y": 0
          },
          "data": {
            "nodeType": "podpislon_get_docs",
            "label": "Подпислон: ссылка на документ",
            "config": {
              "connection_id": "",
              "filter_fio": null,
              "filter_status": null,
              "filter_phone": "",
              "filter_date_from": null,
              "filter_date_to": null,
              "ids": "{{ send.document_id }}"
            }
          },
          "events": []
        },
        {
          "id": "mark_sent",
          "type": "workflow-node",
          "dimensions": {
            "width": 220,
            "height": 88
          },
          "computedPosition": {
            "x": 1500,
            "y": 0,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "mark_sent",
                "position": "right",
                "x": 213,
                "y": 38.1484375,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "mark_sent",
                "position": "left",
                "x": -5,
                "y": 38.1484375,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 1500,
            "y": 0
          },
          "data": {
            "nodeType": "bitrix24_update_deal",
            "label": "Запись в сделку",
            "config": {
              "connection_id": "",
              "deal_id": "{{ deal.deal.ID }}",
              "title": null,
              "stage_id": "",
              "category_id": "",
              "opportunity": null,
              "assigned_by_id": "",
              "contact_id": "",
              "company_id": "",
              "extra_fields": "{\n  \"UF_CRM_PODPISLON_DOC_ID\": \"{{ send.document_id }}\",\n  \"UF_CRM_SIGN_STATUS\": \"отправлен\"\n}"
            }
          },
          "events": []
        },
        {
          "id": "mark_link",
          "type": "workflow-node",
          "dimensions": {
            "width": 220,
            "height": 88
          },
          "computedPosition": {
            "x": 2122,
            "y": 0,
            "z": 1000
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "mark_link",
                "position": "right",
                "x": 213,
                "y": 38.1484375,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "mark_link",
                "position": "left",
                "x": -5,
                "y": 38.1484375,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": true,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 2122,
            "y": 0
          },
          "data": {
            "nodeType": "bitrix24_update_deal",
            "label": "Ссылка в сделку",
            "config": {
              "connection_id": "",
              "deal_id": "{{ deal.deal.ID }}",
              "title": null,
              "stage_id": "",
              "category_id": "",
              "opportunity": null,
              "assigned_by_id": "",
              "contact_id": "",
              "company_id": "",
              "extra_fields": "{\n  \"UF_CRM_SIGN_LINK\": \"{{ sent_doc.docs.0.contacts.0.link }}\"\n}"
            }
          },
          "events": []
        },
        {
          "id": "node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99b",
          "type": "workflow-node",
          "dimensions": {
            "width": 260,
            "height": 105
          },
          "computedPosition": {
            "x": 2418,
            "y": -6,
            "z": 0
          },
          "handleBounds": {
            "source": [
              {
                "id": "out",
                "type": "source",
                "nodeId": "node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99b",
                "position": "right",
                "x": 253,
                "y": 46.546875,
                "width": 12,
                "height": 12
              }
            ],
            "target": [
              {
                "id": "in-1",
                "type": "target",
                "nodeId": "node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99b",
                "position": "left",
                "x": -5,
                "y": 46.546875,
                "width": 12,
                "height": 12
              }
            ]
          },
          "selected": false,
          "dragging": false,
          "resizing": false,
          "initialized": false,
          "isParent": false,
          "position": {
            "x": 2418,
            "y": -6
          },
          "data": {
            "nodeType": "wazzup_send_message",
            "label": "Wazzup: отправить сообщение",
            "config": {
              "connection_id": "",
              "channel_id": "",
              "chat_type": "telegram",
              "chat_id": "{{ variables.MANAGER_CHAT_ID }}",
              "text": "Документ по сделке «{{ deal.deal.TITLE }}» (ID {{ deal.deal.ID }}) отправлен клиенту {{ contact.contact.LAST_NAME }} {{ contact.contact.NAME }} на подпись.\nСсылка: {{ sent_doc.docs.0.contacts.0.link }}",
              "content_uri": null
            }
          },
          "events": []
        }
      ],
      "edges": [
        {
          "id": "e-trigger-out-deal",
          "type": "default",
          "source": "trigger",
          "target": "deal",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "trigger",
            "type": "workflow-node",
            "dimensions": {
              "width": 220,
              "height": 88
            },
            "computedPosition": {
              "x": 0,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "trigger",
                  "position": "right",
                  "x": 213,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": null
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 0,
              "y": 0
            },
            "data": {
              "nodeType": "webhook",
              "label": "Смена стадии сделки",
              "config": {
                "method": "POST"
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "deal",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 88
            },
            "computedPosition": {
              "x": 300,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "deal",
                  "position": "right",
                  "x": 252.6328125,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "deal",
                  "position": "left",
                  "x": -5,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 300,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_get_deal_by_id",
              "label": "Данные сделки",
              "config": {
                "connection_id": "",
                "deal_id": "{{ trigger.query.deal_id }}"
              }
            },
            "events": []
          },
          "sourceX": 225,
          "sourceY": 44.1484375,
          "targetX": 295,
          "targetY": 44.1484375
        },
        {
          "id": "e-deal-out-contact",
          "type": "default",
          "source": "deal",
          "target": "contact",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "deal",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 88
            },
            "computedPosition": {
              "x": 300,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "deal",
                  "position": "right",
                  "x": 252.6328125,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "deal",
                  "position": "left",
                  "x": -5,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 300,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_get_deal_by_id",
              "label": "Данные сделки",
              "config": {
                "connection_id": "",
                "deal_id": "{{ trigger.query.deal_id }}"
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "contact",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 105
            },
            "computedPosition": {
              "x": 600,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "contact",
                  "position": "right",
                  "x": 253,
                  "y": 46.546875,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "contact",
                  "position": "left",
                  "x": -5,
                  "y": 46.546875,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 600,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_get_contact_by_id",
              "label": "Контакт клиента",
              "config": {
                "connection_id": "",
                "contact_id": "{{ deal.deal.CONTACT_ID }}"
              }
            },
            "events": []
          },
          "sourceX": 564.6328125,
          "sourceY": 44.1484375,
          "targetX": 595,
          "targetY": 52.546875
        },
        {
          "id": "e-contact-out-file",
          "type": "default",
          "source": "contact",
          "target": "file",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "contact",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 105
            },
            "computedPosition": {
              "x": 600,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "contact",
                  "position": "right",
                  "x": 253,
                  "y": 46.546875,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "contact",
                  "position": "left",
                  "x": -5,
                  "y": 46.546875,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 600,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_get_contact_by_id",
              "label": "Контакт клиента",
              "config": {
                "connection_id": "",
                "contact_id": "{{ deal.deal.CONTACT_ID }}"
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "file",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 139
            },
            "computedPosition": {
              "x": 900,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "file",
                  "position": "right",
                  "x": 253,
                  "y": 63.34375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "file",
                  "position": "left",
                  "x": -5,
                  "y": 63.34375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 900,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_get_entity_file",
              "label": "PDF из поля сделки",
              "config": {
                "connection_id": "",
                "download_url": "{{ deal.deal.UF_CRM_CONTRACT_FILE.downloadUrl }}",
                "entity_type_id": "2",
                "entity_id": "{{ deal.deal.ID }}",
                "field_name": "UF_CRM_CONTRACT_FILE",
                "file_id": "{{ deal.deal.UF_CRM_CONTRACT_FILE.id }}"
              }
            },
            "events": []
          },
          "sourceX": 865,
          "sourceY": 52.546875,
          "targetX": 895,
          "targetY": 69.34375
        },
        {
          "id": "e-file-out-send",
          "type": "default",
          "source": "file",
          "target": "send",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "file",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 139
            },
            "computedPosition": {
              "x": 900,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "file",
                  "position": "right",
                  "x": 253,
                  "y": 63.34375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "file",
                  "position": "left",
                  "x": -5,
                  "y": 63.34375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 900,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_get_entity_file",
              "label": "PDF из поля сделки",
              "config": {
                "connection_id": "",
                "download_url": "{{ deal.deal.UF_CRM_CONTRACT_FILE.downloadUrl }}",
                "entity_type_id": "2",
                "entity_id": "{{ deal.deal.ID }}",
                "field_name": "UF_CRM_CONTRACT_FILE",
                "file_id": "{{ deal.deal.UF_CRM_CONTRACT_FILE.id }}"
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "send",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 109
            },
            "computedPosition": {
              "x": 1200,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "send",
                  "position": "right",
                  "x": 253,
                  "y": 48.6484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "send",
                  "position": "left",
                  "x": -5,
                  "y": 48.6484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 1200,
              "y": 0
            },
            "data": {
              "nodeType": "podpislon_add_document",
              "label": "Подпислон: отправить на подпись",
              "config": {
                "connection_id": "",
                "first_name": "{{ contact.contact.NAME }}",
                "last_name": "{{ contact.contact.LAST_NAME }}",
                "second_name": "{{ contact.contact.SECOND_NAME }}",
                "phone": "{{ contact.contact.PHONE.0.VALUE }}",
                "file_base64": "{{ file.file_base64 }}",
                "file_name": "{{ deal.deal.TITLE }}.pdf",
                "no_sms": null,
                "redirect_url": null
              }
            },
            "events": []
          },
          "sourceX": 1165,
          "sourceY": 69.34375,
          "targetX": 1195,
          "targetY": 54.6484375
        },
        {
          "id": "e-send-out-mark_sent",
          "type": "default",
          "source": "send",
          "target": "mark_sent",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "send",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 109
            },
            "computedPosition": {
              "x": 1200,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "send",
                  "position": "right",
                  "x": 253,
                  "y": 48.6484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "send",
                  "position": "left",
                  "x": -5,
                  "y": 48.6484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 1200,
              "y": 0
            },
            "data": {
              "nodeType": "podpislon_add_document",
              "label": "Подпислон: отправить на подпись",
              "config": {
                "connection_id": "",
                "first_name": "{{ contact.contact.NAME }}",
                "last_name": "{{ contact.contact.LAST_NAME }}",
                "second_name": "{{ contact.contact.SECOND_NAME }}",
                "phone": "{{ contact.contact.PHONE.0.VALUE }}",
                "file_base64": "{{ file.file_base64 }}",
                "file_name": "{{ deal.deal.TITLE }}.pdf",
                "no_sms": null,
                "redirect_url": null
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "mark_sent",
            "type": "workflow-node",
            "dimensions": {
              "width": 220,
              "height": 88
            },
            "computedPosition": {
              "x": 1500,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "mark_sent",
                  "position": "right",
                  "x": 213,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "mark_sent",
                  "position": "left",
                  "x": -5,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 1500,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_update_deal",
              "label": "Запись в сделку",
              "config": {
                "connection_id": "",
                "deal_id": "{{ deal.deal.ID }}",
                "title": null,
                "stage_id": null,
                "category_id": null,
                "opportunity": null,
                "assigned_by_id": null,
                "contact_id": null,
                "company_id": null,
                "extra_fields": "{\n  \"UF_CRM_PODPISLON_DOC_ID\": \"{{ send.document_id }}\",\n  \"UF_CRM_SIGN_STATUS\": \"отправлен\"\n}"
              }
            },
            "events": []
          },
          "sourceX": 1465,
          "sourceY": 54.6484375,
          "targetX": 1495,
          "targetY": 44.1484375
        },
        {
          "id": "e-mark_sent-out-sent_doc",
          "type": "default",
          "source": "mark_sent",
          "target": "sent_doc",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "mark_sent",
            "type": "workflow-node",
            "dimensions": {
              "width": 220,
              "height": 88
            },
            "computedPosition": {
              "x": 1500,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "mark_sent",
                  "position": "right",
                  "x": 213,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "mark_sent",
                  "position": "left",
                  "x": -5,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 1500,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_update_deal",
              "label": "Запись в сделку",
              "config": {
                "connection_id": "",
                "deal_id": "{{ deal.deal.ID }}",
                "title": null,
                "stage_id": null,
                "category_id": null,
                "opportunity": null,
                "assigned_by_id": null,
                "contact_id": null,
                "company_id": null,
                "extra_fields": "{\n  \"UF_CRM_PODPISLON_DOC_ID\": \"{{ send.document_id }}\",\n  \"UF_CRM_SIGN_STATUS\": \"отправлен\"\n}"
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "sent_doc",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 126
            },
            "computedPosition": {
              "x": 1800,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "sent_doc",
                  "position": "right",
                  "x": 253,
                  "y": 57.046875,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "sent_doc",
                  "position": "left",
                  "x": -5,
                  "y": 57.046875,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 1800,
              "y": 0
            },
            "data": {
              "nodeType": "podpislon_get_docs",
              "label": "Подпислон: ссылка на документ",
              "config": {
                "connection_id": "",
                "filter_fio": null,
                "filter_status": null,
                "filter_phone": null,
                "filter_date_from": null,
                "filter_date_to": null,
                "ids": "{{ send.document_id }}"
              }
            },
            "events": []
          },
          "sourceX": 1725,
          "sourceY": 44.1484375,
          "targetX": 1795,
          "targetY": 63.046875
        },
        {
          "id": "e-sent_doc-out-mark_link",
          "type": "default",
          "source": "sent_doc",
          "target": "mark_link",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "sent_doc",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 126
            },
            "computedPosition": {
              "x": 1800,
              "y": 0,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "sent_doc",
                  "position": "right",
                  "x": 253,
                  "y": 57.046875,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "sent_doc",
                  "position": "left",
                  "x": -5,
                  "y": 57.046875,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 1800,
              "y": 0
            },
            "data": {
              "nodeType": "podpislon_get_docs",
              "label": "Подпислон: ссылка на документ",
              "config": {
                "connection_id": "",
                "filter_fio": null,
                "filter_status": null,
                "filter_phone": null,
                "filter_date_from": null,
                "filter_date_to": null,
                "ids": "{{ send.document_id }}"
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "mark_link",
            "type": "workflow-node",
            "dimensions": {
              "width": 220,
              "height": 88
            },
            "computedPosition": {
              "x": 2122,
              "y": 0,
              "z": 1000
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "mark_link",
                  "position": "right",
                  "x": 213,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "mark_link",
                  "position": "left",
                  "x": -5,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": true,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 2122,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_update_deal",
              "label": "Ссылка в сделку",
              "config": {
                "connection_id": "",
                "deal_id": "{{ deal.deal.ID }}",
                "title": null,
                "stage_id": null,
                "category_id": null,
                "opportunity": null,
                "assigned_by_id": null,
                "contact_id": null,
                "company_id": null,
                "extra_fields": "{\n  \"UF_CRM_SIGN_LINK\": \"{{ sent_doc.docs.0.contacts.0.link }}\"\n}"
              }
            },
            "events": []
          },
          "sourceX": 2065,
          "sourceY": 63.046875,
          "targetX": 2117,
          "targetY": 44.1484375
        },
        {
          "id": "vueflow__edge-mark_linkout-node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99bin-1",
          "type": "default",
          "source": "mark_link",
          "target": "node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99b",
          "sourceHandle": "out",
          "targetHandle": "in-1",
          "data": [],
          "events": [],
          "label": null,
          "style": {
            "strokeWidth": 2.5,
            "stroke": "#9ca3af"
          },
          "sourceNode": {
            "id": "mark_link",
            "type": "workflow-node",
            "dimensions": {
              "width": 220,
              "height": 88
            },
            "computedPosition": {
              "x": 2122,
              "y": 0,
              "z": 1000
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "mark_link",
                  "position": "right",
                  "x": 213,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "mark_link",
                  "position": "left",
                  "x": -5,
                  "y": 38.1484375,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": true,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 2122,
              "y": 0
            },
            "data": {
              "nodeType": "bitrix24_update_deal",
              "label": "Ссылка в сделку",
              "config": {
                "connection_id": "",
                "deal_id": "{{ deal.deal.ID }}",
                "title": null,
                "stage_id": null,
                "category_id": null,
                "opportunity": null,
                "assigned_by_id": null,
                "contact_id": null,
                "company_id": null,
                "extra_fields": "{\n  \"UF_CRM_SIGN_LINK\": \"{{ sent_doc.docs.0.contacts.0.link }}\"\n}"
              }
            },
            "events": []
          },
          "targetNode": {
            "id": "node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99b",
            "type": "workflow-node",
            "dimensions": {
              "width": 260,
              "height": 105
            },
            "computedPosition": {
              "x": 2418,
              "y": -6,
              "z": 0
            },
            "handleBounds": {
              "source": [
                {
                  "id": "out",
                  "type": "source",
                  "nodeId": "node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99b",
                  "position": "right",
                  "x": 253,
                  "y": 46.546875,
                  "width": 12,
                  "height": 12
                }
              ],
              "target": [
                {
                  "id": "in-1",
                  "type": "target",
                  "nodeId": "node-4b5c9bfb-63bf-48fc-a928-ad0a89cee99b",
                  "position": "left",
                  "x": -5,
                  "y": 46.546875,
                  "width": 12,
                  "height": 12
                }
              ]
            },
            "selected": false,
            "dragging": false,
            "resizing": false,
            "initialized": false,
            "isParent": false,
            "position": {
              "x": 2418,
              "y": -6
            },
            "data": {
              "nodeType": "wazzup_send_message",
              "label": "Wazzup: отправить сообщение",
              "config": {
                "connection_id": "",
                "channel_id": "",
                "chat_type": "telegram",
                "chat_id": "{{ variables.MANAGER_CHAT_ID }}",
                "text": "Документ по сделке «{{ deal.deal.TITLE }}» (ID {{ deal.deal.ID }}) отправлен клиенту {{ contact.contact.LAST_NAME }} {{ contact.contact.NAME }} на подпись.\nСсылка: {{ sent_doc.docs.0.contacts.0.link }}",
                "content_uri": null
              }
            },
            "events": []
          },
          "sourceX": 2347,
          "sourceY": 44.1484375,
          "targetX": 2413,
          "targetY": 46.546875
        }
      ],
      "viewport": {
        "x": 0,
        "y": 0,
        "zoom": 1
      }
    }
  },
  "variables": [
    {
      "type": "variable",
      "key": "MANAGER_CHAT_ID",
      "value": ""
    }
  ]
}
