8
n8n 中文网amn8n.com

使用OpenAI-Gemini创建Dev.to文章 - AI生成带图片内容

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 30 个节点。主要使用 Set, Limit, SplitOut, Aggregate, HttpRequest 等节点。 使用OpenAI/Gemini创建Dev.to文章 - AI生成带图片内容

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "c66762406062d6f96baac676fbcb1ad043cf6c0875d0fc4a63da087ec2d9f92e",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "b4b0d6be-9142-427d-82bf-77a08cb81bd9",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        640,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9e0079e0-e875-4822-9aed-4746249b9a62",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1664,
        240
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "24c241e9-3d5d-476d-b7b4-0d58a6f15d22",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1472,
        512
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "89e24193-2e68-4fc6-afea-2c7523cae63d",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2000,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e318a8e5-1f8e-44e2-90d2-73faaff66fdc",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2336,
        240
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "e046e8a3-0cc5-43f3-b188-abeea0b3638a",
      "name": "Post image Cloudinary2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2528,
        512
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2248af03-d7c8-43a7-b840-35ba34226082",
      "name": "Set Input Image",
      "type": "n8n-nodes-base.set",
      "position": [
        2496,
        304
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "369c3830-6d3e-4aa2-8a3c-dc931728a4ee",
      "name": "Set Output Image",
      "type": "n8n-nodes-base.set",
      "position": [
        2736,
        512
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "89e9c21e-adb5-4f67-818f-85d465281dfb",
      "name": "Post article on dev.to",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4672,
        224
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a999c74c-62ba-4658-bbac-e09438e5cf37",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1808,
        496
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "0714b7bb-3ca8-47d1-ab9d-cd49b215b768",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1728,
        624
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e76e6474-7865-43b0-b3d1-ca93c6f58917",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        3264,
        224
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0a57c810-c82c-4f38-b1da-4c9f17a1cedd",
      "name": "Article wrtiter",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3904,
        224
      ],
      "parameters": {},
      "retryOnFail": false,
      "typeVersion": 1.7
    },
    {
      "id": "c9579ede-8305-4f04-9d31-0c68f695513f",
      "name": "Generate an image1",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        2704,
        304
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3dfeb899-50d0-4cb1-9959-edd76c2edf15",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        4000,
        640
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "15845289-24b0-4b93-8828-bc06cac9bfa3",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3840,
        432
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6c2255f3-82bf-4d08-88e2-3357606dfac3",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        4048,
        448
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "377e9dc4-5f70-4052-bacb-b8373196df1b",
      "name": "Set input data/credintenials",
      "type": "n8n-nodes-base.set",
      "position": [
        1184,
        240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "371ca127-dcc5-43a4-b3ab-282c1a9b80eb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        -656
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b2e1e465-c369-4196-bcaf-613bff5c3072",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        -368
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "faa77088-2bb3-494b-be0d-88c2434ac280",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2192,
        -368
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3b72446d-7ae3-493a-b971-43f49115ef4e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3024,
        -368
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9a0565a2-8639-4a87-bc3a-eccb6e08462f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3648,
        -368
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2dfd29ab-db23-4749-8895-0eb1c035415c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4432,
        -368
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c564735c-cc8c-4be0-9a5a-c48dc8df4dc2",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2384,
        800
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4285f355-afd2-4d19-b6c2-adfd5f55bf41",
      "name": "Generate an image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "disabled": true,
      "position": [
        2576,
        976
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "c756aff3-cde5-4727-bfb0-53b7d8153d43",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3136,
        784
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e8b8b3b0-c01f-4131-9551-fcb35ee07a8e",
      "name": "Get data form sheet",
      "type": "n8n-nodes-base.googleSheets",
      "disabled": true,
      "position": [
        848,
        480
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "d121cb07-33ff-4f2c-91a4-95aebf78afca",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "disabled": true,
      "position": [
        1024,
        480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9c92d91c-5b80-4dc7-8554-47561157307f",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "disabled": true,
      "position": [
        672,
        480
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "pinData": {},
  "connections": {
    "d121cb07-33ff-4f2c-91a4-95aebf78afca": {
      "main": [
        [
          {
            "node": "377e9dc4-5f70-4052-bacb-b8373196df1b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9e0079e0-e875-4822-9aed-4746249b9a62": {
      "main": [
        [
          {
            "node": "89e24193-2e68-4fc6-afea-2c7523cae63d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e76e6474-7865-43b0-b3d1-ca93c6f58917": {
      "main": [
        [
          {
            "node": "0a57c810-c82c-4f38-b1da-4c9f17a1cedd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "89e24193-2e68-4fc6-afea-2c7523cae63d": {
      "main": [
        [
          {
            "node": "e318a8e5-1f8e-44e2-90d2-73faaff66fdc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0a57c810-c82c-4f38-b1da-4c9f17a1cedd": {
      "main": [
        [
          {
            "node": "89e9c21e-adb5-4f67-818f-85d465281dfb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e318a8e5-1f8e-44e2-90d2-73faaff66fdc": {
      "main": [
        [
          {
            "node": "e76e6474-7865-43b0-b3d1-ca93c6f58917",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "2248af03-d7c8-43a7-b840-35ba34226082",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2248af03-d7c8-43a7-b840-35ba34226082": {
      "main": [
        [
          {
            "node": "c9579ede-8305-4f04-9d31-0c68f695513f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9c92d91c-5b80-4dc7-8554-47561157307f": {
      "main": [
        [
          {
            "node": "e8b8b3b0-c01f-4131-9551-fcb35ee07a8e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "369c3830-6d3e-4aa2-8a3c-dc931728a4ee": {
      "main": [
        [
          {
            "node": "e318a8e5-1f8e-44e2-90d2-73faaff66fdc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "24c241e9-3d5d-476d-b7b4-0d58a6f15d22": {
      "ai_languageModel": [
        [
          {
            "node": "9e0079e0-e875-4822-9aed-4746249b9a62",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "c9579ede-8305-4f04-9d31-0c68f695513f": {
      "main": [
        [
          {
            "node": "e046e8a3-0cc5-43f3-b188-abeea0b3638a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "15845289-24b0-4b93-8828-bc06cac9bfa3": {
      "ai_languageModel": [
        [
          {
            "node": "0a57c810-c82c-4f38-b1da-4c9f17a1cedd",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "3dfeb899-50d0-4cb1-9959-edd76c2edf15": {
      "ai_languageModel": [
        [
          {
            "node": "6c2255f3-82bf-4d08-88e2-3357606dfac3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "0714b7bb-3ca8-47d1-ab9d-cd49b215b768": {
      "ai_languageModel": [
        [
          {
            "node": "a999c74c-62ba-4658-bbac-e09438e5cf37",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "e8b8b3b0-c01f-4131-9551-fcb35ee07a8e": {
      "main": [
        [
          {
            "node": "d121cb07-33ff-4f2c-91a4-95aebf78afca",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e046e8a3-0cc5-43f3-b188-abeea0b3638a": {
      "main": [
        [
          {
            "node": "369c3830-6d3e-4aa2-8a3c-dc931728a4ee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a999c74c-62ba-4658-bbac-e09438e5cf37": {
      "ai_outputParser": [
        [
          {
            "node": "9e0079e0-e875-4822-9aed-4746249b9a62",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "6c2255f3-82bf-4d08-88e2-3357606dfac3": {
      "ai_outputParser": [
        [
          {
            "node": "0a57c810-c82c-4f38-b1da-4c9f17a1cedd",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "377e9dc4-5f70-4052-bacb-b8373196df1b": {
      "main": [
        [
          {
            "node": "9e0079e0-e875-4822-9aed-4746249b9a62",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b4b0d6be-9142-427d-82bf-77a08cb81bd9": {
      "main": [
        [
          {
            "node": "377e9dc4-5f70-4052-bacb-b8373196df1b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量30
分类2
节点类型16
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
LukaszB

LukaszB

@lukaszb

AI Automation Expert | Web & Mobile App Integrator With 2+ years of experience, I build smart automations, web & mobile app workflows, and scalable platforms using tools like n8n, Make, and more. I help businesses reduce operational costs, save time, and scale faster with AI-powered solutions. For business enquiries, send me an email at kontakt@lumizone.pl

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34