Générateur d'images memecoin

Avancé

Ceci est uncontenant 17 nœuds.Utilise principalement des nœuds comme Set, Twitter, HttpRequest, ConvertToFile, Agent. Générer de l'art Memecoin et publier sur Twitter avec Gemini Flash et NanoBanana

Prérequis
  • Informations d'identification Twitter API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Clé API Google Gemini

Catégorie

-
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "8EZdduCs3OULUYrh",
  "meta": {
    "instanceId": "52254486b159b349334953c1738da94e90477c7604aa8db2062d11afc0120739",
    "templateCredsSetupCompleted": true
  },
  "name": "memecoin image generator",
  "tags": [],
  "nodes": [
    {
      "id": "fa67edf0-7ae8-458e-9503-83def964e3f5",
      "name": "Note adhésive5",
      "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": "Note adhésive4",
      "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": "Note adhésive12",
      "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": "Note adhésive6",
      "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": "Créer un Tweet",
      "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": "Déclencheur programmé",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2176,
        528
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "7863a52e-db25-4f39-bc85-a47c2cf0a956",
      "name": "Agent IA",
      "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": "Analyseur de sortie structurée",
      "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": "Note adhésive7",
      "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": "Note adhésive8",
      "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": "Obtenir l'image source",
      "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": "Convertir l'image source en base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        3184,
        528
      ],
      "parameters": {
        "options": {},
        "operation": "binaryToPropery",
        "destinationKey": "Image"
      },
      "typeVersion": 1
    },
    {
      "id": "2477d8d2-f35b-4863-9abb-0e11ea90e557",
      "name": "Générer une image avec 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": "Convertir Base64 en 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": "Téléverser vers 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": "Définir 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
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Avancé

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Avancé
Nombre de nœuds17
Catégorie-
Types de nœuds10
Description de la difficulté

Adapté aux utilisateurs avancés, avec des workflows complexes contenant 16+ nœuds

Auteur
Jay Emp0

Jay Emp0

@jay-emp0

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

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34