8
n8n 中文网amn8n.com

使用GPT-4和GPT Image 1自动生成并发布LinkedIn内容

高级

这是一个Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 Gmail, LinkedIn, FormTrigger, GoogleDrive, Agent 等节点。 使用GPT-4和GPT Image 1自动生成并发布LinkedIn内容

前置要求
  • Google 账号和 Gmail API 凭证
  • LinkedIn API 凭证
  • Google Drive API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "VYfNOz0agvhX4kcA",
  "meta": {
    "instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 GPT-4 和 GPT Image 1 自动生成并发布 LinkedIn 内容",
  "tags": [],
  "nodes": [
    {
      "id": "7b2d1731-957b-47af-9abb-a16be9a579cc",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1216,
        -96
      ],
      "webhookId": "ad658c16-d1ee-4716-99fe-d841692a0d76",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "ac13ee60-e8b3-497a-b7c9-2edcbea48619",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -800,
        128
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a5baff02-88a1-420a-9968-320a89be3c0e",
      "name": "AI Agent 内容生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -992,
        -96
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "aa54c9c9-265b-48d2-a21f-c17ba6e3b350",
      "name": "AI Agent 提示图像生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -640,
        -96
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "2ce60a25-f692-49f5-bb42-c5a7927bd151",
      "name": "发送消息",
      "type": "n8n-nodes-base.gmail",
      "position": [
        160,
        -96
      ],
      "webhookId": "d5ceb3a2-3f65-44f4-9dd4-1c3e05daa9c9",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "b3307f18-13bd-47b1-b481-892569f411f3",
      "name": "上传文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -64,
        -96
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "ee365c7e-0de2-4584-a992-a1fd1b0f20ed",
      "name": "创建帖子",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        608,
        -96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8a489482-c2f0-490d-a2ed-1e868cabe2c7",
      "name": "下载文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        384,
        -96
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "e0743a3a-75a2-41c6-820a-c603c16e815b",
      "name": "图像-1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -288,
        -96
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "177d7dff-d694-4607-beb2-eae682d26d2b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9ea0d4fc-350f-4774-9746-ac3b00a22f5a",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cb53ab59-f032-4f21-8a20-2b4d6381fc09",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fda3adbd-6423-4c5b-a2e6-77daa16b6cc7",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "79012684-ac59-4e84-8c04-62fe8ad1d137",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2096,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "11a24363-3ee0-4324-870e-4af39eb4fa2f",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1296,
        352
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3e70332c-1f40-4db8-b5d2-ab74210fbc28",
      "name": "研究来源",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        -624,
        128
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "48c8adf3-e710-44ff-a4aa-9e3f84c8fdb6",
  "connections": {
    "Image-1": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Sources": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Content Generator",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Content Generator",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Ai Agent Prompt Image generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "AI Agent Content Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Content Generator": {
      "main": [
        [
          {
            "node": "Ai Agent Prompt Image generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ai Agent Prompt Image generator": {
      "main": [
        [
          {
            "node": "Image-1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 多模态 AI

需要付费吗?

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

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

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

作者
Marth

Marth

@marth

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

外部链接
在 n8n.io 查看

分享此工作流