{
  "name": "Generate & upload images with Leonardo AI, WordPress and Twitter",
  "nodes": [
    {
      "id": "855d3c0d-0a4b-4a6b-a8cd-be67cff0928b",
      "name": "Upload image2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        912,
        -16
      ]
    },
    {
      "id": "67d0cf44-13b2-4cee-a796-8fd021dd4a2b",
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        224,
        -16
      ]
    },
    {
      "id": "0b478d3e-481c-4190-bfea-ea2d13d0c1fc",
      "name": "HTTP Request2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        -16
      ]
    },
    {
      "id": "4a41c6c9-8467-4d49-a758-13cbf7b5c6ce",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        400,
        -16
      ]
    },
    {
      "id": "225e26b5-97b7-4186-9c71-bb2d8bcaa7c6",
      "name": "HTTP Request3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        736,
        -16
      ]
    },
    {
      "id": "d8bab379-3d86-4754-9894-e04596832464",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -112
      ],
      "parameters": {
        "width": 672,
        "height": 272,
        "content": "## Generate image with leonardo"
      }
    },
    {
      "id": "ce8b507c-213c-4288-88d2-356a96ed5956",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -112
      ],
      "parameters": {
        "width": 166,
        "height": 272,
        "content": "## Upload to WordPress"
      }
    },
    {
      "id": "0ed127f7-26bc-4750-8ade-6bd672d95a5f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        176
      ],
      "parameters": {
        "width": 672,
        "height": 432,
        "content": "## Image generated\n![batman-typing-on-a-laptop](https://articles.emp0.com/wp-content/uploads/2025/07/img-batman-typing-on-a-laptop.jpg)"
      }
    },
    {
      "id": "76eafb67-e5b6-4bc2-ac8d-e2661ef10f44",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -144,
        160
      ]
    },
    {
      "id": "c124d2ca-f8a6-4b59-84dd-61181bcc2501",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1456,
        0
      ]
    },
    {
      "id": "239aa1ee-ef8d-41f6-a34c-a0d097e9d849",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -144,
        -16
      ]
    },
    {
      "id": "773eab92-6f49-4b35-bde8-081c86785c9a",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        64,
        -16
      ]
    },
    {
      "id": "f5b60545-3f6e-453c-80de-a76c614a95b1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        192
      ],
      "parameters": {
        "width": 166,
        "height": 272,
        "content": "## Upload to Twitter"
      }
    },
    {
      "id": "1b4cac4d-17b0-44db-84aa-de970fb48ed0",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1120,
        0
      ]
    },
    {
      "id": "f78fca3e-d4b7-4836-ad6c-412d253e805b",
      "name": "Upload Media (X)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        912,
        288
      ]
    },
    {
      "id": "c3ee67e2-9b71-4552-8693-e4c7bb004fc0",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1280,
        0
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Request2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request2": {
      "main": [
        [
          {
            "node": "HTTP Request3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request3": {
      "main": [
        [
          {
            "node": "Upload image2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Media (X)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload image2": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Media (X)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}