8
n8n 한국어amn8n.com

Leonardo AI와 WordPress를 사용하여 블로그 이미지 생성 및 업로드

중급

이것은Content Creation, Multimodal AI분야의자동화 워크플로우로, 12개의 노드를 포함합니다.주로 Code, Wait, HttpRequest, ManualTrigger, ExecuteWorkflowTrigger 등의 노드를 사용하며. Leonardo AI와 WordPress를 사용하여 블로그 이미지를 생성 및 업로드

사전 요구사항
  • 대상 API의 인증 정보가 필요할 수 있음
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "instanceId": "52254486b159b349334953c1738da94e90477c7604aa8db2062d11afc0120739"
  },
  "nodes": [
    {
      "id": "855d3c0d-0a4b-4a6b-a8cd-be67cff0928b",
      "name": "이미지 업로드2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        896,
        -16
      ],
      "parameters": {
        "url": "https://your.wordpress.com/wp-json/wp/v2/media",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "binaryData",
        "sendHeaders": true,
        "authentication": "predefinedCredentialType",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Disposition",
              "value": "=attachment; filename=\"img-{{ $('Code1').item.json.slug }}.jpg\""
            }
          ]
        },
        "inputDataFieldName": "data",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "G1G8jDdEoWAVytQb",
          "name": "Wordpress  - author@email.com"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2,
      "waitBetweenTries": 5000
    },
    {
      "id": "67d0cf44-13b2-4cee-a796-8fd021dd4a2b",
      "name": "HTTP 요청1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        224,
        -16
      ],
      "parameters": {
        "url": "https://cloud.leonardo.ai/api/rest/v1/generations",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"modelId\": \"b2614463-296c-462a-9586-aafdb8f00e36\",\n  \"contrast\": 3.5,\n  \"prompt\": \"{{$json.prompt }}\",\n  \"num_images\": 1,\n  \"width\": 1472,\n  \"height\": 832,\n  \"styleUUID\": \"111dc692-d470-4eec-b791-3475abac4c46\",\n  \"enhancePrompt\": true\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "content-type",
              "value": "application/json"
            },
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "JvhQAEa4Frw0CDoq",
          "name": "Leonardo AI"
        },
        "httpHeaderAuth": {
          "id": "rGBKnDk3FO1WfA4z",
          "name": "Header Auth - leonardo ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0b478d3e-481c-4190-bfea-ea2d13d0c1fc",
      "name": "HTTP 요청2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        -16
      ],
      "parameters": {
        "url": "=https://cloud.leonardo.ai/api/rest/v1/generations/{{ $json.sdGenerationJob.generationId }}",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "JvhQAEa4Frw0CDoq",
          "name": "Leonardo AI"
        },
        "httpHeaderAuth": {
          "id": "rGBKnDk3FO1WfA4z",
          "name": "Header Auth - leonardo ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "4a41c6c9-8467-4d49-a758-13cbf7b5c6ce",
      "name": "대기",
      "type": "n8n-nodes-base.wait",
      "position": [
        400,
        -16
      ],
      "webhookId": "8dc48f5a-163b-495e-a477-5b09b444c413",
      "parameters": {
        "unit": "minutes",
        "amount": 1
      },
      "typeVersion": 1.1
    },
    {
      "id": "225e26b5-97b7-4186-9c71-bb2d8bcaa7c6",
      "name": "HTTP 요청3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        736,
        -16
      ],
      "parameters": {
        "url": "={{ $json.generations_by_pk.generated_images[0].url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "d8bab379-3d86-4754-9894-e04596832464",
      "name": "스티커 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -112
      ],
      "parameters": {
        "color": 5,
        "width": 672,
        "height": 272,
        "content": "## Generate image with leonardo"
      },
      "typeVersion": 1
    },
    {
      "id": "ce8b507c-213c-4288-88d2-356a96ed5956",
      "name": "스티커 노트1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        874,
        -112
      ],
      "parameters": {
        "color": 6,
        "width": 150,
        "height": 272,
        "content": "## Upload to WordPress"
      },
      "typeVersion": 1
    },
    {
      "id": "0ed127f7-26bc-4750-8ade-6bd672d95a5f",
      "name": "스티커 노트2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        176
      ],
      "parameters": {
        "color": 7,
        "width": 672,
        "height": 448,
        "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)"
      },
      "typeVersion": 1
    },
    {
      "id": "76eafb67-e5b6-4bc2-ac8d-e2661ef10f44",
      "name": "'워크플로 실행' 클릭 시",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -144,
        160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c124d2ca-f8a6-4b59-84dd-61181bcc2501",
      "name": "코드",
      "type": "n8n-nodes-base.code",
      "position": [
        1056,
        -16
      ],
      "parameters": {
        "jsCode": "return {\"image_url\" : $input.first().json.guid.raw}"
      },
      "typeVersion": 2
    },
    {
      "id": "239aa1ee-ef8d-41f6-a34c-a0d097e9d849",
      "name": "다른 워크플로에 의해 실행될 때",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -144,
        -16
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "prompt"
            },
            {
              "name": "slug"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "773eab92-6f49-4b35-bde8-081c86785c9a",
      "name": "코드1",
      "type": "n8n-nodes-base.code",
      "position": [
        64,
        -16
      ],
      "parameters": {
        "jsCode": "return $input.all();"
      },
      "typeVersion": 2
    }
  ],
  "pinData": {
    "When clicking ‘Execute workflow’": [
      {
        "slug": "batman-typing-on-a-laptop",
        "prompt": "Generate an image of batman typing on a laptop"
      }
    ]
  },
  "connections": {
    "4a41c6c9-8467-4d49-a758-13cbf7b5c6ce": {
      "main": [
        [
          {
            "node": "0b478d3e-481c-4190-bfea-ea2d13d0c1fc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "773eab92-6f49-4b35-bde8-081c86785c9a": {
      "main": [
        [
          {
            "node": "67d0cf44-13b2-4cee-a796-8fd021dd4a2b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "67d0cf44-13b2-4cee-a796-8fd021dd4a2b": {
      "main": [
        [
          {
            "node": "4a41c6c9-8467-4d49-a758-13cbf7b5c6ce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0b478d3e-481c-4190-bfea-ea2d13d0c1fc": {
      "main": [
        [
          {
            "node": "225e26b5-97b7-4186-9c71-bb2d8bcaa7c6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "225e26b5-97b7-4186-9c71-bb2d8bcaa7c6": {
      "main": [
        [
          {
            "node": "855d3c0d-0a4b-4a6b-a8cd-be67cff0928b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "855d3c0d-0a4b-4a6b-a8cd-be67cff0928b": {
      "main": [
        [
          {
            "node": "c124d2ca-f8a6-4b59-84dd-61181bcc2501",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "239aa1ee-ef8d-41f6-a34c-a0d097e9d849": {
      "main": [
        [
          {
            "node": "773eab92-6f49-4b35-bde8-081c86785c9a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "76eafb67-e5b6-4bc2-ac8d-e2661ef10f44": {
      "main": [
        [
          {
            "node": "773eab92-6f49-4b35-bde8-081c86785c9a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 콘텐츠 제작, 멀티모달 AI

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수12
카테고리2
노드 유형6
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

저자
Jay Emp0

Jay Emp0

@jay-emp0

AI and Automation developer. Im implementing n8n and ai tools to automate marketing and sales in companies

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34