8
n8n 中文网amn8n.com

使用GPT-4o从图像生成多个T恤设计提示

中级

这是一个Design, AI领域的自动化工作流,包含 9 个节点。主要使用 Code, ConvertToFile, ReadWriteFile, Agent, OpenAi 等节点,结合人工智能技术实现智能自动化。 使用GPT-4o从图像生成多个T恤设计提示

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "FtnVTVBkFjSPqxYA",
  "meta": {
    "instanceId": "d92ae4b43988b888be9e59a711908a679453e558f86530d2ed2c1c3491f22bf5",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 GPT-4o 从图像生成多个 T 恤设计提示",
  "tags": [],
  "nodes": [
    {
      "id": "54a0d7cf-91a9-4530-ad0e-de7ff7e6c5e6",
      "name": "本地文件触发器",
      "type": "n8n-nodes-base.localFileTrigger",
      "position": [
        -80,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5233e827-824e-4753-91bd-2e7c8eb99871",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        140
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "095cb29a-edf6-4151-9df3-180d242fee1d",
      "name": "转换器",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f3b6b4b7-46f2-464a-b93b-fbe0156ab483",
      "name": "从文件获取图像",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        280,
        0
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "b148cc23-7872-498f-96d0-40693e839073",
      "name": "分析图像",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        460,
        0
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "0c16ca29-37ba-4b33-abe0-3fe6a7872029",
      "name": "提示/文本生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        640,
        0
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "659286b5-66f4-4be6-8162-b4152b89e296",
      "name": "转换为文本",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1000,
        0
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f72e667e-64ba-491d-bf78-fb86ef76af85",
      "name": "保存到文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1220,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "34c512ad-4a59-4707-9cda-21083f8b508e",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b6dc98e7-25aa-4610-be01-56539e728c7c",
  "connections": {
    "Converter": {
      "main": [
        [
          {
            "node": "Get Image From File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Image": {
      "main": [
        [
          {
            "node": "Prompt/Text Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert To Text": {
      "main": [
        [
          {
            "node": "Save To File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Prompt/Text Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Local File Trigger": {
      "main": [
        [
          {
            "node": "Converter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image From File": {
      "main": [
        [
          {
            "node": "Analyze Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt/Text Generator": {
      "main": [
        [
          {
            "node": "Convert To Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 设计, 人工智能

需要付费吗?

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

工作流信息
难度等级
中级
节点数量9
分类2
节点类型8
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
AiAgent

AiAgent

@lifehacks

As a self-taught entrepreneur, I’m passionate about automating everyday tasks to simplify life. Every system I create is designed to enhance efficiency and free up valuable time. Once I perfect an automation that transforms my own routine, I’m excited to share it with you—so you can experience the same benefits.

外部链接
在 n8n.io 查看

分享此工作流