8
n8n 中文网amn8n.com

Segmind:自动社交媒体产品图片生成器和发布器

高级

这是一个AI, Marketing领域的自动化工作流,包含 34 个节点。主要使用 If, Set, Code, Wait, Telegram 等节点,结合人工智能技术实现智能自动化。 自动化AI产品摄影和Instagram帖子生成器(Deepseek/Segmind)

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "lcRVbTA0LI7lxvsH",
  "meta": {
    "instanceId": "f638a47e4e563f91fde8b98ed9f5fa6a9faa41a207143e9ce05d85200c905524",
    "templateId": "2950",
    "templateCredsSetupCompleted": true
  },
  "name": "Segmind:自动社交媒体产品图片生成器和发布器",
  "tags": [
    {
      "id": "dNuSmJmhSOBNp9lV",
      "name": "Social Media",
      "createdAt": "2025-01-26T15:22:52.143Z",
      "updatedAt": "2025-01-26T15:22:52.143Z"
    },
    {
      "id": "kgTngqg4Ayt55Kif",
      "name": "ONGOING",
      "createdAt": "2025-03-19T20:47:01.023Z",
      "updatedAt": "2025-03-19T20:47:01.023Z"
    },
    {
      "id": "pOsSeIqilB7U0GL5",
      "name": "Star",
      "createdAt": "2025-03-15T20:56:13.443Z",
      "updatedAt": "2025-03-15T20:56:13.443Z"
    }
  ],
  "nodes": [
    {
      "id": "c0d615a8-0932-4140-8bb5-6018c6d61154",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -760,
        1320
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6c5352be-a9a3-4c0d-8d0a-cb67c205e3ca",
      "name": "输入您的图片 URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        1320
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "6bbc183e-86f3-400f-972c-55e389839c95",
      "name": "结构化输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1420,
        1460
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "402186b3-c6ab-447f-af7d-11eae3246393",
      "name": "图片指令",
      "type": "n8n-nodes-base.set",
      "position": [
        -340,
        1320
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "250532f4-ac14-4daf-aad0-32c574856a6d",
      "name": "带人物模型",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        1240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4abc910c-c149-45d5-9c22-c856eada6f4a",
      "name": "无人物模型",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        1440
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "651e01a3-8eee-43fe-b820-eb5cc26a6149",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        1460
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ae5346d3-3029-49f5-8f7a-b7a47ac3b4d8",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1200,
        1240
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "bfc4afe4-3fea-489a-a3ea-1ed979d6823c",
      "name": "Segmind API 密钥",
      "type": "n8n-nodes-base.set",
      "position": [
        -520,
        1320
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fe0826b1-80e0-416f-b4d5-6edbe80c10e4",
      "name": "检索生成的图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2760,
        1240
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "56784087-bc91-4f9b-b72b-c076eb2785e7",
      "name": "检索图片 URL",
      "type": "n8n-nodes-base.set",
      "position": [
        2960,
        1240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e0dfd38b-8fc2-4752-aaf7-5b6ccbc53530",
      "name": "下载图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3180,
        1240
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9646251f-e427-4a27-98f8-fd0d4779ab44",
      "name": "发送产品摄影",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3440,
        1240
      ],
      "webhookId": "1748ad90-641e-48dc-8464-437d57959dad",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "041ab07d-ac24-406c-a971-b5bb175d338b",
      "name": "发送 Instagram 帖子",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3660,
        1240
      ],
      "webhookId": "518a7c05-0e5f-49d1-9a17-ac1fa10d18d1",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7cbb4f66-f7c3-448b-a55b-a5600dbd8fb1",
      "name": "生成随机种子数",
      "type": "n8n-nodes-base.code",
      "position": [
        1620,
        1240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "66ada10b-baa3-4bfd-a126-404f0fffd75d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        1160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a43a0459-6499-4cef-a537-db84d05a6360",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        1160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "78ad7870-26c2-408e-9c8b-de214b7db24a",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        1160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c84665a2-1dae-4462-903e-bcea1ae72df4",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        1160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b0022473-3282-499e-9a90-323cb7ce35c2",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8d944459-65da-4679-b22b-b2a7a1be7eb2",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0b552b17-7dff-49b1-84f2-097ed65f6a53",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1560,
        1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f29b578e-57bf-4e85-9eea-6f7e8a4c5dff",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b85d7557-9dd1-450c-9fe8-e48ddef8ab6b",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2420,
        1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d1854c84-6a66-4c0b-89be-54490237dd2a",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2700,
        1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "09991a12-2ae1-4df7-951b-dfa30d171c70",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3120,
        1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "578de79d-b67c-4003-965b-3fa246cece2f",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3360,
        1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "95ece10a-2524-4bc4-be6d-4381cdca3238",
      "name": "发送图片 URL",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3860,
        1240
      ],
      "webhookId": "f378a91b-8dc1-48d2-b170-e85ca35ed815",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e9e49882-b094-4877-99ee-851b718f4bff",
      "name": "获取图片_Segmind",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2120,
        1240
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "538b43cd-51ab-438a-9be7-9fe98d478f82",
      "name": "等待 5 分钟",
      "type": "n8n-nodes-base.wait",
      "position": [
        2500,
        1240
      ],
      "webhookId": "1779e4fb-8983-439c-a715-a908d55df86c",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "4571ecef-87ee-4a8a-9c31-eafd55a4748d",
      "name": "获取图片描述",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        320,
        1320
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "601aa5b2-0b19-4367-973e-2af327421741",
      "name": "设置种子字段",
      "type": "n8n-nodes-base.set",
      "position": [
        1820,
        1240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "92354b40-5318-4b9f-b4bb-968375854e8d",
      "name": "检查是否需要人物模型",
      "type": "n8n-nodes-base.if",
      "position": [
        640,
        1320
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "bbe201f5-a9a5-42d0-8b6f-b96978365567",
      "name": "Telegram 聊天 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        20,
        1320
      ],
      "parameters": {},
      "typeVersion": 3.4
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {},
  "versionId": "0c8faac3-1d9d-4f19-b695-7bb6535f958b",
  "connections": {
    "AI Agent1": {
      "main": [
        [
          {
            "node": "GenerateRandomSeedNumber",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NoHumanModel": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DownloadImage": {
      "main": [
        [
          {
            "node": "SendProductPhotography",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SegmindAPIKey": {
      "main": [
        [
          {
            "node": "ImageInstruction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set seed field": {
      "main": [
        [
          {
            "node": "GetImage_Segmind",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 minutes": {
      "main": [
        [
          {
            "node": "RetrieveGeneratedImage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WithHumanModel": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram ChatID": {
      "main": [
        [
          {
            "node": "Get image description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GetImage_Segmind": {
      "main": [
        [
          {
            "node": "Wait 5 minutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ImageInstruction": {
      "main": [
        [
          {
            "node": "InputYourImageURL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RetrieveImageURL": {
      "main": [
        [
          {
            "node": "DownloadImage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "SegmindAPIKey",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "InputYourImageURL": {
      "main": [
        [
          {
            "node": "Telegram ChatID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SendInstagramPost": {
      "main": [
        [
          {
            "node": "SendImageURL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get image description": {
      "main": [
        [
          {
            "node": "Check if an Human Model is required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RetrieveGeneratedImage": {
      "main": [
        [
          {
            "node": "RetrieveImageURL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SendProductPhotography": {
      "main": [
        [
          {
            "node": "SendInstagramPost",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GenerateRandomSeedNumber": {
      "main": [
        [
          {
            "node": "Set seed field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check if an Human Model is required": {
      "main": [
        [
          {
            "node": "WithHumanModel",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NoHumanModel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

作者
Tianyi

Tianyi

@muzi

Ph.D. in Machine Learning from the University of Toulouse. Experienced automation consultant specializing in optimizing workflows for Content creation and Marketing teams.

外部链接
在 n8n.io 查看

分享此工作流