{
  "name": "Design Factory Export",
  "nodes": [
    {
      "id": "1",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        220,
        260
      ],
      "parameters": {}
    },
    {
      "id": "2",
      "name": "Run Context",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        460,
        260
      ],
      "parameters": {
        "mode": "raw",
        "jsonOutput": "{ \"runId\": \"replace-me\" }"
      }
    },
    {
      "id": "3",
      "name": "Get Run",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        700,
        200
      ],
      "notes": "Fetches metadata for the requested run",
      "parameters": {
        "method": "GET",
        "url": "={{ 'http://localhost:4300/runs/' + $json.runId }}"
      }
    },
    {
      "id": "4",
      "name": "Get Previews",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        700,
        340
      ],
      "notes": "Indexes the generated preview HTML URLs",
      "parameters": {
        "method": "GET",
        "url": "={{ 'http://localhost:4300/runs/' + $json.runId + '/previews' }}"
      }
    },
    {
      "id": "5",
      "name": "Merge Output",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3,
      "position": [
        960,
        260
      ],
      "parameters": {
        "mode": "combine"
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Run Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Context": {
      "main": [
        [
          {
            "node": "Get Run",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Previews",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Run": {
      "main": [
        [
          {
            "node": "Merge Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Previews": {
      "main": [
        [
          {
            "node": "Merge Output",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "versionId": "design-factory-export-v1"
}