{
  "openruna_format": "flow-graph-v1",
  "title": "Backup n8n Workflows to Bitbucket",
  "slug": "backup-n8n-workflows-to-bitbucket",
  "source_filename": "0567_Wait_Code_Export_Webhook.json",
  "nodes": [
    {
      "id": "Calculate Wait Time",
      "name": "Calculate Wait Time",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Run Daily at 2 AM",
      "name": "Run Daily at 2 AM",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "Get All Workflows",
      "name": "Get All Workflows",
      "integration": "n8n",
      "kind": "action"
    },
    {
      "id": "Loop Workflows",
      "name": "Loop Workflows",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Get Existing Worfklow from Bitbucket",
      "name": "Get Existing Worfklow from Bitbucket",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "New or Changed?",
      "name": "New or Changed?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Upload Workflow to Bitbucket",
      "name": "Upload Workflow to Bitbucket",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Wait to Avoid Rate Limiting",
      "name": "Wait to Avoid Rate Limiting",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Set Bitbucket Workspace & Repository",
      "name": "Set Bitbucket Workspace & Repository",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Loop Workflows",
      "to": "Get Existing Worfklow from Bitbucket"
    },
    {
      "from": "New or Changed?",
      "to": "Upload Workflow to Bitbucket"
    },
    {
      "from": "New or Changed?",
      "to": "Wait to Avoid Rate Limiting"
    },
    {
      "from": "Get All Workflows",
      "to": "Loop Workflows"
    },
    {
      "from": "Run Daily at 2 AM",
      "to": "Set Bitbucket Workspace & Repository"
    },
    {
      "from": "Calculate Wait Time",
      "to": "Wait to Avoid Rate Limiting"
    },
    {
      "from": "Wait to Avoid Rate Limiting",
      "to": "Loop Workflows"
    },
    {
      "from": "Upload Workflow to Bitbucket",
      "to": "Calculate Wait Time"
    },
    {
      "from": "Get Existing Worfklow from Bitbucket",
      "to": "New or Changed?"
    },
    {
      "from": "Set Bitbucket Workspace & Repository",
      "to": "Get All Workflows"
    }
  ]
}