8
n8n 한국어amn8n.com

Gemini 및 Pollinations AI를 사용한 AI 이미지 자동 생성 및 Facebook 게시

중급

이것은Content Creation, Multimodal AI분야의자동화 워크플로우로, 10개의 노드를 포함합니다.주로 Code, HttpRequest, ScheduleTrigger, FacebookGraphApi, ChainLlm 등의 노드를 사용하며. Gemini와 Pollinations AI로 AI 이미지 자동 생성 및 Facebook 게시

사전 요구사항
  • 대상 API의 인증 정보가 필요할 수 있음
  • Facebook Graph API 인증 정보
  • Google Gemini API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "instanceId": "ba73835d772fb31a8c93dbcda773c1ef34e21227b9c152c1ee6fdf0eab995f28",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "6dca36b9-725d-4a55-922d-dba546f6770c",
      "name": "메모 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -660
      ],
      "parameters": {
        "color": 2,
        "width": 400,
        "height": 560,
        "content": "🌟 Automated AI Image Creation with Gemini and Facebook Page Integration\n\nThis workflow automatically generates random AI art prompts (cinematic, steampunk, surreal, or retro-futuristic) using Google Gemini via LangChain. It then creates an image from that prompt using Pollinations AI and posts it to your Facebook Page with hashtags.\n\nTrigger times: 7 AM, 11 AM, 5 PM (every day)\n\nWhat you need:\n\n  - Google Gemini API Key\n  - Facebook Page token with pages_manage_posts permission\n  - No API key needed for Pollinations\n\n\n⚙️ Includes:\n\n   - Prompt generation\n   - Image creation\n   - Facebook auto-post\n\n\n🛠 Customize prompt, model, or post styling as needed."
      },
      "typeVersion": 1
    },
    {
      "id": "6bed68e2-f333-4aa1-9002-5af796b829b1",
      "name": "일정 설정",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -180,
        -40
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 7
            },
            {
              "triggerAtHour": 11
            },
            {
              "triggerAtHour": 17
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b5d17183-278b-48a9-a5c8-44dcb9a1c651",
      "name": "Google Gemini 채팅 모델",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        240,
        160
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.5-flash-lite-preview-06-17"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "y5KI7bWJDr54AEy4",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c56e9f2d-997c-4eb8-be69-ed46d178c5f5",
      "name": "메모 노트1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -660
      ],
      "parameters": {
        "color": 3,
        "width": 400,
        "height": 400,
        "content": "🧱 Recommended Node Renaming (for clarity)\n\nOld Name\n  - Set The Schedule\n  - Check If Schedule Aktif\n  - Basic LLM Chain\n  - Set The Generator Image\n  - Generate Image\n  - Post to acebook\n\n\nSuggested Name\n  - Schedule Trigger (3x daily)\n  - Log Schedule Time\n  - Generate Image Prompt (Gemini)\n  - Create Pollinations URL\n  - Fetch AI Image\n  - Post Image to Facebook"
      },
      "typeVersion": 1
    },
    {
      "id": "d37d6188-6b56-464d-9139-46e6c3b1e317",
      "name": "메모 노트2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -660
      ],
      "parameters": {
        "color": 4,
        "width": 400,
        "height": 260,
        "content": "🛠 Tips for Publishing\n\n  - 💡 Add a workflow image at the top (especially if you plan to submit this to the n8n templates directory).\n\n  - 🎥 If possible, record a Loom video for visual walkthrough (not required, but recommended).\n\n  - 🚫 Remove any sensitive info like your real Facebook Page ID or actual API keys from exported .json."
      },
      "typeVersion": 1
    },
    {
      "id": "23209c8c-ed9d-492d-9b2b-50b79b814e07",
      "name": "일정 시간 기록",
      "type": "n8n-nodes-base.code",
      "position": [
        40,
        -40
      ],
      "parameters": {
        "jsCode": "return [\n  {\n    json: {\n      message: \"Schedule Trigger aktif.\",\n      triggeredAt: new Date().toISOString(),\n      time: $json.time || \"Not Found\"\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "81b1a688-f7ec-4f7d-8ab3-106eb7a45df4",
      "name": "이미지 프롬프트 생성 (Gemini)",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        240,
        -40
      ],
      "parameters": {
        "text": "=Create 1 random AI image prompt in the style of [cinematic / surreal / steampunk / retro futuristic]. The prompt should be unique, fantastic, and full of imagination. the prompt should be in good and correct English.\n\nOutput Without any additional explanation",
        "promptType": "define"
      },
      "typeVersion": 1.6
    },
    {
      "id": "dc076be6-7f76-4904-99ce-67d44009eba4",
      "name": "Pollinations URL 생성",
      "type": "n8n-nodes-base.code",
      "position": [
        600,
        -40
      ],
      "parameters": {
        "jsCode": "const width = 1024;\nconst height = 1024;\nconst randomSeed = Math.floor(Math.random() * 100000);\n\nconst finalPrompt = $json.text;\nconst imageUrl = `https://image.pollinations.ai/prompt/${encodeURIComponent(finalPrompt)}.jpg?width=${width}&height=${height}&seed=${randomSeed}&model=flux&nologo=true`;\n\nreturn [\n  {\n    json: {\n      text: finalPrompt,\n      imageUrl\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "10ab3f57-9088-4b47-86a9-88681174d392",
      "name": "AI 이미지 가져오기",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        -40
      ],
      "parameters": {
        "url": "={{ $json.imageUrl }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "e57ca15b-5d39-4a03-8ba7-5830ebdf773e",
      "name": "이미지를 Facebook에 게시하기",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1040,
        -40
      ],
      "parameters": {
        "edge": "photos",
        "node": "me",
        "options": {
          "queryParameters": {
            "parameter": [
              {
                "name": "prompt",
                "value": "={{ $json.text }}"
              },
              {
                "name": "caption",
                "value": "={{ $json.text }}\n\n\n#FreeImage #AIGeneratedArt #CreativeFreedom #FreeToUse #freeimagegenerator"
              }
            ]
          }
        },
        "sendBinaryData": true,
        "graphApiVersion": "v22.0",
        "httpRequestMethod": "POST",
        "binaryPropertyName": "data"
      },
      "credentials": {
        "facebookGraphApi": {
          "id": "np3V4HlSQIPqGUSS",
          "name": "Facebook Graph account 6"
        }
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "10ab3f57-9088-4b47-86a9-88681174d392": {
      "main": [
        [
          {
            "node": "e57ca15b-5d39-4a03-8ba7-5830ebdf773e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6bed68e2-f333-4aa1-9002-5af796b829b1": {
      "main": [
        [
          {
            "node": "23209c8c-ed9d-492d-9b2b-50b79b814e07",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "23209c8c-ed9d-492d-9b2b-50b79b814e07": {
      "main": [
        [
          {
            "node": "81b1a688-f7ec-4f7d-8ab3-106eb7a45df4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "dc076be6-7f76-4904-99ce-67d44009eba4": {
      "main": [
        [
          {
            "node": "10ab3f57-9088-4b47-86a9-88681174d392",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b5d17183-278b-48a9-a5c8-44dcb9a1c651": {
      "ai_languageModel": [
        [
          {
            "node": "81b1a688-f7ec-4f7d-8ab3-106eb7a45df4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "81b1a688-f7ec-4f7d-8ab3-106eb7a45df4": {
      "main": [
        [
          {
            "node": "dc076be6-7f76-4904-99ce-67d44009eba4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

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

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

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

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

유료인가요?

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

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

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

저자
Fahmi Oktafian

Fahmi Oktafian

@fahmi3322

Hi! I’m Fahmi Oktafian, a developer and automation enthusiast with expertise in n8n, Node.js, and API integrations. I specialize in building smart, scalable workflows — from auto-publishing content to WordPress, sending automated Telegram notifications, to processing AI-based summaries and paraphrase. I’m passionate about helping businesses save time, increase efficiency, and automate their digital processes with clean and user-friendly solutions.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34