{
  "name": "Automatic backup of workflows to GitHub with email/telegram notifications",
  "nodes": [
    {
      "id": "89c33815-0a95-40e5-ae6c-3a53fca73ad1",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1220,
        360
      ]
    },
    {
      "id": "7b770371-ea6e-4388-a91c-6ab290473219",
      "name": "Create_Backup_Package",
      "type": "n8n-nodes-base.code",
      "position": [
        1320,
        -580
      ]
    },
    {
      "id": "1f27b64d-bdec-4701-b2a4-38b1d9cc0e5f",
      "name": "Get_Workflows",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -580
      ]
    },
    {
      "id": "6e44ca90-eb57-40b2-973f-553db43e9316",
      "name": "Check_Repository_Exists",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1540,
        -580
      ]
    },
    {
      "id": "5fc2401f-20ab-4bd1-a340-2d6bca4fffe2",
      "name": "If_Repo_Not_Exists",
      "type": "n8n-nodes-base.if",
      "position": [
        1760,
        -580
      ]
    },
    {
      "id": "aa48b4df-8a1e-404a-8ff5-66c6af85f6b4",
      "name": "Clean_Workflows",
      "type": "n8n-nodes-base.code",
      "position": [
        1100,
        -580
      ]
    },
    {
      "id": "0b59f796-e563-47f5-9c0b-e8b4741ff1f3",
      "name": "Create_Repository",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2060,
        -520
      ]
    },
    {
      "id": "076fad7a-28c3-4090-93cb-3ce167a2bb49",
      "name": "Split_Workflow_Files",
      "type": "n8n-nodes-base.code",
      "position": [
        1240,
        -300
      ]
    },
    {
      "id": "225c9fbb-23a6-4c1b-ba53-3b304a1c6688",
      "name": "Backup_Complete_Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        40
      ]
    },
    {
      "id": "1994f553-a8a0-4137-8130-e33d85782afc",
      "name": "Upload_Workflow_Files",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1660,
        -240
      ]
    },
    {
      "id": "26625ff2-662b-47bb-99f2-9ac9e2394150",
      "name": "Upload_README",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1080,
        -300
      ]
    },
    {
      "id": "f10321d3-ce4b-4a54-b661-3d2cc396822c",
      "name": "Upload_Manifest",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        920,
        -300
      ]
    },
    {
      "id": "99d76a2d-1756-4912-bf67-75c71d1a3900",
      "name": "Loop_Workflow_Uploads",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1460,
        -300
      ]
    },
    {
      "id": "57cd3b4a-0f1a-4f8d-928c-fb2d39a9932c",
      "name": "Send_Backup_Notification",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2080,
        360
      ]
    },
    {
      "id": "a2392c3a-e96d-49c4-a397-97154fd6ff37",
      "name": "Backup_Config",
      "type": "n8n-nodes-base.code",
      "position": [
        200,
        -40
      ]
    },
    {
      "id": "1ede5cc3-6b2e-4eb9-80ba-ff5ea269d7b8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -620
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "637a98e0-1c84-4e58-a0e9-cdc6c6a1e3b2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        260
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "31c3c069-ab0a-45a1-94e6-a9aaa664dfa0",
      "name": "Daily",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1220,
        580
      ]
    },
    {
      "id": "fd4e9a4c-37bc-4cc4-b159-947f7697aea2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1580,
        260
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b65879f5-b95c-4035-a7d3-7dea9892fca8",
      "name": "Gmail - Notification",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2080,
        580
      ]
    },
    {
      "id": "431ebde2-1a24-419a-8e1a-008d6053f43c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -620
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Backup_Config": {
      "main": [
        [
          {
            "node": "Get_Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get_Workflows": {
      "main": [
        [
          {
            "node": "Clean_Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload_README": {
      "main": [
        [
          {
            "node": "Split_Workflow_Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean_Workflows": {
      "main": [
        [
          {
            "node": "Create_Backup_Package",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload_Manifest": {
      "main": [
        [
          {
            "node": "Upload_README",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create_Repository": {
      "main": [
        [
          {
            "node": "Upload_Manifest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If_Repo_Not_Exists": {
      "main": [
        [
          {
            "node": "Create_Repository",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upload_Manifest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split_Workflow_Files": {
      "main": [
        [
          {
            "node": "Loop_Workflow_Uploads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create_Backup_Package": {
      "main": [
        [
          {
            "node": "Check_Repository_Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop_Workflow_Uploads": {
      "main": [
        [
          {
            "node": "Backup_Complete_Summary",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upload_Workflow_Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload_Workflow_Files": {
      "main": [
        [
          {
            "node": "Loop_Workflow_Uploads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Backup_Complete_Summary": {
      "main": [
        [
          {
            "node": "Gmail - Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check_Repository_Exists": {
      "main": [
        [
          {
            "node": "If_Repo_Not_Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Backup_Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}