LinkedIn自动发布代理

初级

这是一个Multimodal AI领域的自动化工作流,包含 4 个节点。主要使用 OpenAi、LinkedIn、ManualTrigger、ScheduleTrigger 等节点。 使用OpenAI GPT生成AI内容的自动化LinkedIn帖子发布

前置要求
  • OpenAI API Key
  • LinkedIn API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "linkedin-auto-post-agent",
  "meta": {
    "instanceId": "linkedin-auto-post-agent",
    "templateCredsSetupCompleted": false
  },
  "name": "LinkedIn 自动发布代理",
  "tags": [
    {
      "id": "social-media",
      "name": "Social Media",
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z"
    },
    {
      "id": "ai-automation",
      "name": "AI Automation",
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z"
    },
    {
      "id": "linkedin",
      "name": "LinkedIn",
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z"
    }
  ],
  "nodes": [
    {
      "id": "f6b4c8d0-1234-4567-8901-234567890abc",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        240,
        300
      ],
      "webhookId": "",
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "cronExpression": "0 9 * * 1-5"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "a1b2c3d4-5678-9012-3456-789012345678",
      "name": "OpenAI 内容生成",
      "type": "n8n-nodes-base.openAi",
      "position": [
        460,
        300
      ],
      "parameters": {
        "model": "gpt-3.5-turbo",
        "prompt": "You are a professional LinkedIn content creator. Generate an engaging, professional post that is 150-300 characters long with relevant hashtags. Focus on industry insights, professional development, or thought leadership topics.\n\nCreate a LinkedIn post about professional growth and continuous learning in the tech industry. Make it inspiring and include 2-3 relevant hashtags.",
        "options": {
          "topP": 1,
          "maxTokens": 200,
          "temperature": 0.7
        },
        "operation": "complete"
      },
      "credentials": {
        "openAiApi": {
          "id": "openai-credentials",
          "name": "OpenAI API"
        }
      },
      "retryOnFail": {
        "enabled": true,
        "maxRetries": 3,
        "waitBetween": 1000
      },
      "typeVersion": 1,
      "continueOnFail": true
    },
    {
      "id": "e5f6g7h8-9012-3456-7890-123456789012",
      "name": "LinkedIn帖子",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        680,
        300
      ],
      "parameters": {
        "text": "={{ $json.choices[0].text }}",
        "resource": "post",
        "operation": "create",
        "additionalFields": {
          "visibility": "public"
        }
      },
      "credentials": {
        "linkedInOAuth2Api": {
          "id": "linkedin-oauth",
          "name": "LinkedIn OAuth2"
        }
      },
      "retryOnFail": {
        "enabled": true,
        "maxRetries": 3,
        "waitBetween": 1000
      },
      "typeVersion": 1,
      "continueOnFail": true
    },
    {
      "id": "m7n8o9p0-1234-5678-9012-345678901234",
      "name": "手动触发器",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        240,
        180
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": {
      "enabled": false
    },
    "executionOrder": "v1",
    "saveManualExecutions": true
  },
  "versionId": "1.0.0",
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "OpenAI Content Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "OpenAI Content Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Content Generation": {
      "main": [
        [
          {
            "node": "LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个初级难度的工作流,适用于Multimodal AI等场景。适合 n8n 新手,包含 1-5 个节点的简单工作流

需要付费吗?

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

工作流信息
难度等级
初级
节点数量4
分类1
节点类型4
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

外部链接
在 n8n.io 上查看 →

分享此工作流