{
  "openruna_format": "flow-graph-v1",
  "title": "Clone n8n Workflows between Instances using n8n API",
  "slug": "clone-n8n-workflows-between-instances-using-n8n-api",
  "source_filename": "2025_Splitout_Code_Automate_Webhook.json",
  "nodes": [
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "GET - Workflows",
      "name": "GET - Workflows",
      "integration": "n8n",
      "kind": "action"
    },
    {
      "id": "CREATE - Workflow",
      "name": "CREATE - Workflow",
      "integration": "n8n",
      "kind": "action"
    },
    {
      "id": "n8n - GET - Projects",
      "name": "n8n - GET - Projects",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "SET Project ID",
      "name": "SET Project ID",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "PUT - Workflow in Project",
      "name": "PUT - Workflow in Project",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "GET - Destination Workflows",
      "name": "GET - Destination Workflows",
      "integration": "n8n",
      "kind": "action"
    },
    {
      "id": "Code",
      "name": "Code",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Split Out Workflows",
      "name": "Split Out Workflows",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Split Out Workflows1",
      "name": "Split Out Workflows1",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Merge Workflows",
      "name": "Merge Workflows",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Split Out Projects",
      "name": "Split Out Projects",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Filter Project",
      "name": "Filter Project",
      "integration": "filter",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Code",
      "to": "Loop Over Items"
    },
    {
      "from": "Filter Project",
      "to": "SET Project ID"
    },
    {
      "from": "SET Project ID",
      "to": "PUT - Workflow in Project"
    },
    {
      "from": "GET - Workflows",
      "to": "Split Out Workflows"
    },
    {
      "from": "Loop Over Items",
      "to": "CREATE - Workflow"
    },
    {
      "from": "Merge Workflows",
      "to": "Code"
    },
    {
      "from": "CREATE - Workflow",
      "to": "n8n - GET - Projects"
    },
    {
      "from": "Split Out Projects",
      "to": "Filter Project"
    },
    {
      "from": "Split Out Workflows",
      "to": "Merge Workflows"
    },
    {
      "from": "Split Out Workflows1",
      "to": "Merge Workflows"
    },
    {
      "from": "n8n - GET - Projects",
      "to": "Split Out Projects"
    },
    {
      "from": "PUT - Workflow in Project",
      "to": "Loop Over Items"
    },
    {
      "from": "GET - Destination Workflows",
      "to": "Split Out Workflows1"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "GET - Workflows"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "GET - Destination Workflows"
    }
  ]
}