memecoin 画像ジェネレーター

上級

これは自動化ワークフローで、17個のノードを含みます。主にSet, Twitter, HttpRequest, ConvertToFile, Agentなどのノードを使用。 Gemini Flash と NanoBanana を使用して Memecoin アートを生成し、Twitter に公開

前提条件
  • Twitter API認証情報
  • ターゲットAPIの認証情報が必要な場合あり
  • Google Gemini API Key

カテゴリー

-
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "8EZdduCs3OULUYrh",
  "meta": {
    "instanceId": "52254486b159b349334953c1738da94e90477c7604aa8db2062d11afc0120739",
    "templateCredsSetupCompleted": true
  },
  "name": "memecoin image generator",
  "tags": [],
  "nodes": [
    {
      "id": "fa67edf0-7ae8-458e-9503-83def964e3f5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2384,
        304
      ],
      "parameters": {
        "color": 7,
        "width": 480,
        "height": 736,
        "content": "# Define memecoin\nPrompt\n```\nmemecoin_name : popcat\nmascot_description : cat with open mouth\nmascot_image : https://i.pinimg.com/736x/9d/05/6b/9d056b5b97c0513a4fc9d9cd93304a05.jpg\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAPI docs https://ai.google.dev/gemini-api/docs/image-generation#gemini-image-editing \nGet API key https://aistudio.google.com/api-keys\n\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "8028d8fd-e5ac-4700-8ae0-31df4eeb64fd",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2880,
        304
      ],
      "parameters": {
        "color": 7,
        "width": 512,
        "height": 736,
        "content": "# Get source memecoin image\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n![mascot_image](https://articles.emp0.com/wp-content/uploads/2025/10/popcat-original.jpg)"
      },
      "typeVersion": 1
    },
    {
      "id": "8838a52e-a2bc-479b-a4cd-7e3951f193e2",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3312,
        144
      ],
      "parameters": {
        "color": 5,
        "width": 528,
        "height": 80,
        "content": "# *MemeCoin Art Generator 🍌*\n"
      },
      "typeVersion": 1
    },
    {
      "id": "451e2dfa-9cfd-47a3-8819-2d2b2367447d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3056,
        144
      ],
      "parameters": {
        "color": 4,
        "width": 726,
        "height": 80,
        "content": "# Emp 0 🦑\n\n\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "0fba0726-a0f9-4cb3-a6e4-9c5fdaf30598",
      "name": "ツイート作成",
      "type": "n8n-nodes-base.twitter",
      "position": [
        4208,
        528
      ],
      "parameters": {
        "text": "={{ $('AI Agent').item.json.output.tweet }}",
        "additionalFields": {
          "attachments": "={{ $json.media_id_string }}"
        }
      },
      "credentials": {
        "twitterOAuth2Api": {
          "id": "aPVLqk6ESHZrmb8X",
          "name": "X - @okmeow"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "10afe998-8120-4c6f-a563-af6e7c66818f",
      "name": "スケジュールトリガー",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2176,
        528
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "7863a52e-db25-4f39-bc85-a47c2cf0a956",
      "name": "AIエージェント",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2608,
        528
      ],
      "parameters": {
        "text": "=You are a twitter generating agent. Your job is to 1. Generate a 100 character tweet in gen z slang indicating this memecoin {{ $('Define Memecoin').item.json.memecoin_name }} will go up. 2. Generate an image generation prompt for my mascot {{ $('Define Memecoin').item.json.mascot_description }} based on current trending topics today.",
        "options": {},
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "0c14f5a8-038b-4b60-a1aa-263d91c5d811",
      "name": "構造化出力パーサー",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2736,
        720
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"tweet\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"imagePrompt\": {\n\t\t\t\"type\": \"string\"\n\t\t}\n\t}\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "d57eb02a-8ac2-49b8-8b0f-a7242b488b0d",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3408,
        304
      ],
      "parameters": {
        "color": 7,
        "width": 512,
        "height": 736,
        "content": "# Generate Image using Nano Banana\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n![mascot_image](https://articles.emp0.com/wp-content/uploads/2025/10/popcat-edit.png)"
      },
      "typeVersion": 1
    },
    {
      "id": "0789f15f-2df5-41bb-8d26-e9180330f156",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3952,
        304
      ],
      "parameters": {
        "color": 7,
        "width": 464,
        "height": 736,
        "content": "# Upload to Twitter\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n![mascot_image](https://articles.emp0.com/wp-content/uploads/2025/10/popcat-edit-twitter-1.png)"
      },
      "typeVersion": 1
    },
    {
      "id": "47967fd9-8e03-443c-803d-a7a34b89bdae",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2480,
        720
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "Glfk0UAMF4rhdmsh",
          "name": "gemini"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "58ec511f-6831-4d77-bca9-e5ccd3460de2",
      "name": "ソース画像取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2976,
        528
      ],
      "parameters": {
        "url": "={{ $('Define Memecoin').item.json.mascot_image }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "ad31059f-5f0c-4699-9598-366e6ef6a426",
      "name": "ソース画像をbase64に変換",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        3184,
        528
      ],
      "parameters": {
        "options": {},
        "operation": "binaryToPropery",
        "destinationKey": "Image"
      },
      "typeVersion": 1
    },
    {
      "id": "2477d8d2-f35b-4863-9abb-0e11ea90e557",
      "name": "NanoBananaで画像生成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3504,
        528
      ],
      "parameters": {
        "url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"contents\": [{\n    \"parts\": [\n      {\"text\": \"{{ $('AI Agent').item.json.output.imagePrompt }}\"},\n{\n              \"inline_data\": {\n              \"mime_type\":\"image/jpeg\",\n                \"data\": \"{{ $json.Image }}\"\n              }\n            }\n    ]\n  }],\n  \"generationConfig\": {\n    \"imageConfig\": {\n      \"aspectRatio\": \"16:9\"\n    }\n  }\n} ",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googlePalmApi"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "dfK6P7CHbH6yb6yn",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "00be3e5d-4797-49d5-a964-4aa58b709fd6",
      "name": "Base64をPngに変換",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        3728,
        528
      ],
      "parameters": {
        "options": {},
        "operation": "toBinary",
        "sourceProperty": "={{ $if($json.candidates[0].content.parts[0].inlineData, 'candidates[0].content.parts[0].inlineData.data', 'candidates[0].content.parts[1].inlineData.data') }}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "38683108-7f09-48a6-952c-0d3794b6a3f6",
      "name": "Twitterにアップロード",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4016,
        528
      ],
      "parameters": {
        "url": "https://upload.twitter.com/1.1/media/upload.json?media_category=TWEET_IMAGE",
        "method": "POST",
        "options": {
          "response": {
            "response": {
              "responseFormat": "json"
            }
          }
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "media",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "data"
            }
          ]
        },
        "nodeCredentialType": "twitterOAuth1Api"
      },
      "credentials": {
        "twitterOAuth1Api": {
          "id": "uf5mMVmxX0ZaypZa",
          "name": "X OAuth - okmeow"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2,
      "waitBetweenTries": 1000
    },
    {
      "id": "59993e4f-7d1f-4d6a-a615-3f4b04466cfb",
      "name": "Memecoinを定義",
      "type": "n8n-nodes-base.set",
      "position": [
        2432,
        528
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "0f3ffc62-d157-40cd-8bf0-d72a67798802",
              "name": "memecoin_name",
              "type": "string",
              "value": "popcat"
            },
            {
              "id": "ba606dc8-5445-495c-a528-b47b438910cf",
              "name": "mascot_description",
              "type": "string",
              "value": "cat with open mouth"
            },
            {
              "id": "9a3660e9-e98f-47bd-9e61-b465bb40e4f5",
              "name": "mascot_image",
              "type": "string",
              "value": "https://i.pinimg.com/736x/9d/05/6b/9d056b5b97c0513a4fc9d9cd93304a05.jpg"
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0e52d371-ca37-417d-b158-78fcb8e24442",
  "connections": {
    "7863a52e-db25-4f39-bc85-a47c2cf0a956": {
      "main": [
        [
          {
            "node": "58ec511f-6831-4d77-bca9-e5ccd3460de2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "59993e4f-7d1f-4d6a-a615-3f4b04466cfb": {
      "main": [
        [
          {
            "node": "7863a52e-db25-4f39-bc85-a47c2cf0a956",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "58ec511f-6831-4d77-bca9-e5ccd3460de2": {
      "main": [
        [
          {
            "node": "ad31059f-5f0c-4699-9598-366e6ef6a426",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "10afe998-8120-4c6f-a563-af6e7c66818f": {
      "main": [
        [
          {
            "node": "59993e4f-7d1f-4d6a-a615-3f4b04466cfb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "38683108-7f09-48a6-952c-0d3794b6a3f6": {
      "main": [
        [
          {
            "node": "0fba0726-a0f9-4cb3-a6e4-9c5fdaf30598",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "00be3e5d-4797-49d5-a964-4aa58b709fd6": {
      "main": [
        [
          {
            "node": "38683108-7f09-48a6-952c-0d3794b6a3f6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "47967fd9-8e03-443c-803d-a7a34b89bdae": {
      "ai_languageModel": [
        [
          {
            "node": "7863a52e-db25-4f39-bc85-a47c2cf0a956",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "0c14f5a8-038b-4b60-a1aa-263d91c5d811": {
      "ai_outputParser": [
        [
          {
            "node": "7863a52e-db25-4f39-bc85-a47c2cf0a956",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "ad31059f-5f0c-4699-9598-366e6ef6a426": {
      "main": [
        [
          {
            "node": "2477d8d2-f35b-4863-9abb-0e11ea90e557",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2477d8d2-f35b-4863-9abb-0e11ea90e557": {
      "main": [
        [
          {
            "node": "00be3e5d-4797-49d5-a964-4aa58b709fd6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数17
カテゴリー-
ノードタイプ10
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
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