{
  "name": "Daily workflow backup to GitLab with Slack notifications",
  "nodes": [
    {
      "id": "05ee377d-5402-46ee-81b4-c56e6115ecd4",
      "name": "Get All Workflows",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -496,
        16
      ]
    },
    {
      "id": "f107d96b-26cf-47ad-97fc-83f64c7b621e",
      "name": "Discard Archived Workflows",
      "type": "n8n-nodes-base.filter",
      "position": [
        -336,
        16
      ]
    },
    {
      "id": "67333676-710a-4721-82a4-f9288366c6d0",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        240,
        112
      ]
    },
    {
      "id": "2d508a48-be41-40cd-be68-2aad83038cce",
      "name": "If File Exists",
      "type": "n8n-nodes-base.if",
      "position": [
        400,
        112
      ]
    },
    {
      "id": "b816f0b9-26b1-438d-877a-d1d4ad86fe89",
      "name": "Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -992,
        16
      ]
    },
    {
      "id": "517ef436-5323-4ffc-8ead-5c303930987e",
      "name": "List of Names",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -656,
        16
      ]
    },
    {
      "id": "5befe173-4171-4107-be94-4c5ad235ca76",
      "name": "Create New File - GitLab",
      "type": "n8n-nodes-base.gitlab",
      "position": [
        560,
        192
      ]
    },
    {
      "id": "20270a8c-ac47-4449-a506-618fe2362e17",
      "name": "Update File - GitLab",
      "type": "n8n-nodes-base.gitlab",
      "position": [
        560,
        0
      ]
    },
    {
      "id": "62bc4120-f641-456d-ae3c-2d450941ebe6",
      "name": "List All Files - GitLab",
      "type": "n8n-nodes-base.gitlab",
      "position": [
        -832,
        16
      ]
    },
    {
      "id": "2e8a6259-5530-4e15-babf-febbad2095ac",
      "name": "Daily Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1136,
        16
      ]
    },
    {
      "id": "de6637b3-1a90-4683-b785-ee168de26cbe",
      "name": "Process Each File",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -144,
        16
      ]
    },
    {
      "id": "17b4693e-d52c-4f1a-97fa-2c42da170df3",
      "name": "Remove Unwanted Fields",
      "type": "n8n-nodes-base.code",
      "position": [
        64,
        112
      ]
    },
    {
      "id": "d96386b2-75df-49c1-9645-f50a96c92d23",
      "name": "Send Message to Channel",
      "type": "n8n-nodes-base.slack",
      "position": [
        64,
        -80
      ]
    },
    {
      "id": "25cc4169-c68e-4ed8-a85c-43e432cf5dbf",
      "name": "New File - Failed",
      "type": "n8n-nodes-base.slack",
      "position": [
        752,
        208
      ]
    },
    {
      "id": "2a2bad0d-af10-494b-aa21-48c2b1f277c3",
      "name": "Update File - Failed",
      "type": "n8n-nodes-base.slack",
      "position": [
        752,
        16
      ]
    },
    {
      "id": "48ea9738-ef97-452b-b6ce-10db70d0920c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1856,
        -240
      ],
      "parameters": {
        "width": 400,
        "height": 704,
        "content": "# Welcome\n\n## Summary of Nodes\n\n- Daily Trigger (Customizable)\n- Conf. (GitLab)\n- List All Files (Necessary for comparison)\n- List of Names (Turns all names into an array of single field)\n- Get All Wo"
      }
    },
    {
      "id": "bbaad52a-b34c-4b43-aad2-cf187bf7c6be",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1440,
        -240
      ],
      "parameters": {
        "width": 2608,
        "height": 704,
        "content": ""
      }
    },
    {
      "id": "a5eabdaa-c744-4272-868a-7a60740278b9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1856,
        480
      ],
      "parameters": {
        "width": 3024,
        "height": 336,
        "content": "# CREDENTIALS"
      }
    },
    {
      "id": "cdcf207f-0efd-4124-95b3-3d6a329e14c2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        576
      ],
      "parameters": {
        "width": 496,
        "height": 176,
        "content": "## Configuration Node\n\n- Create a project in GitLab.\n- Type the owner of the project as 'project_owner'.\n- Type the name of the project as 'project_name'.\n- Type the branch name. Will create a branch "
      }
    },
    {
      "id": "45f50d44-40c7-4e04-9e7f-36ee2cc075d4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        576
      ],
      "parameters": {
        "width": 480,
        "height": 176,
        "content": "## GitLab - [Docs](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.gitlab/)\n\n- Enter your project settings on GitLab Dashboard.\n- Go to access tokens page and create a new token.\n- P"
      }
    },
    {
      "id": "819a6463-8222-47e9-aca2-36e4f20e0489",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        576
      ],
      "parameters": {
        "width": 496,
        "height": 176,
        "content": "## n8n Internal - [Docs](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.n8n/)\n\n- From left menu and bottom go to your user settings.\n- Go to API Keys page and create a new key.\n- P"
      }
    },
    {
      "id": "ef82a762-7d0c-4928-a404-5a1f691aed71",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        576
      ],
      "parameters": {
        "width": 1440,
        "height": 176,
        "content": "## Slack - [Docs](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.slack/)\n\n- Go to 'api.slack.com/apps' and create an account if you haven't already.\n- Create a new app in your works"
      }
    }
  ],
  "connections": {
    "Configuration": {
      "main": [
        [
          {
            "node": "List All Files - GitLab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Trigger": {
      "main": [
        [
          {
            "node": "Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List of Names": {
      "main": [
        [
          {
            "node": "Get All Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If File Exists": {
      "main": [
        [
          {
            "node": "Update File - GitLab",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create New File - GitLab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "If File Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get All Workflows": {
      "main": [
        [
          {
            "node": "Discard Archived Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New File - Failed": {
      "main": [
        [
          {
            "node": "Process Each File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Each File": {
      "main": [
        [
          {
            "node": "Send Message to Channel",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Remove Unwanted Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update File - Failed": {
      "main": [
        [
          {
            "node": "Process Each File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update File - GitLab": {
      "main": [
        [
          {
            "node": "Process Each File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update File - Failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Unwanted Fields": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List All Files - GitLab": {
      "main": [
        [
          {
            "node": "List of Names",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create New File - GitLab": {
      "main": [
        [
          {
            "node": "Process Each File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "New File - Failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Discard Archived Workflows": {
      "main": [
        [
          {
            "node": "Process Each File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}