8
n8n 中文网amn8n.com

自动博客推广器 - 社交媒体帖子发布器

高级

这是一个AI, Marketing领域的自动化工作流,包含 44 个节点。主要使用 If, Set, Code, Gmail, Merge 等节点,结合人工智能技术实现智能自动化。 基于GPT的AI驱动博客文章推广器,用于Instagram、Facebook和X平台

前置要求
  • Google 账号和 Gmail API 凭证
  • Twitter API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • Facebook Graph API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Ah3bLIV1zrazYiN5",
  "meta": {
    "instanceId": "740c1df6d3b1b6ea8a9d2223701f6904173f9e3cf7381cd181644b043420ba09",
    "templateCredsSetupCompleted": true
  },
  "name": "自动博客推广器 - 社交媒体帖子发布器(含 GPT 图片)-1",
  "tags": [],
  "nodes": [
    {
      "id": "beab42b6-17ce-493c-978f-0b72ad9340a8",
      "name": "社交媒体内容",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        560,
        360
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "bc532c7c-05a3-4e7d-a123-6f1a2195a0d4",
      "name": "RSS 源触发器",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -960,
        40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c5012524-edd2-4646-852b-c1fd155425de",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        20
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d9af8bc6-33e1-438b-a190-b7a1de86d5b3",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -160,
        500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "dbb7ef0d-e2cd-4b9b-864a-11a4424b5f4e",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        -400,
        500
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2b657b2a-3772-4e62-8efe-e699cb288711",
      "name": "聚合1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -180,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8df250d1-a24d-4360-8ad6-9df0d40d6ac8",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "768a3e8e-2f1f-4902-ba9f-609c053a96a9",
      "name": "gpt-4.1 mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        340,
        360
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5da9b347-12ab-4ae7-b9d5-293af56934f2",
      "name": "社交媒体内容创建器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        360,
        100
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.7
    },
    {
      "id": "572d4982-4151-4059-b195-e6e0d40debe3",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5e7e6bba-97e8-4add-b5f8-6ad2260ce4db",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5309c2c2-7f05-44a0-8696-8af546c63920",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ee7c23ec-8299-4349-acc5-7b4121cca9ed",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "12930c63-68af-449b-99dc-7d64766211a5",
      "name": "创建图片 open ai2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1080,
        60
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "00998c39-e88b-4dec-98a1-59caf6b7d745",
      "name": "保存图片到 imgbb.com3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        60
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4bf67b02-7a6c-4605-acd2-60d1424acb82",
      "name": "从 imgbb 获取图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1520,
        60
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "692b1790-8d93-4823-928d-27ed2e792216",
      "name": "发布图片到 Cloudinary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1740,
        60
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f5c58277-5c3b-43d7-be04-7fda4b422a49",
      "name": "上传媒体到Instagram",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -200,
        1140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e6028462-6449-44c0-9b98-f5d1c2758a6d",
      "name": "在IG发布帖子",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        40,
        1140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9c8486e6-8ed9-4a27-b187-d5db783bf394",
      "name": "创建图片 open ai",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1080,
        440
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0501ddf3-309d-4381-8252-c9b58718bc65",
      "name": "保存图片到 imgbb.com",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        440
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e9d07487-d183-4c83-b0ef-63c8f640de41",
      "name": "从 imgbb 获取图片1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1520,
        440
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d9030ca1-1db2-4b42-b79b-e6b48106fe37",
      "name": "发布图片到 Cloudinary1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1780,
        440
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "590d0b98-15fe-475f-8039-5233a324f0f8",
      "name": "Facebook帖子1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "onError": "continueRegularOutput",
      "position": [
        -100,
        1540
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "5786c243-2d70-453b-b4a2-be738c5ab642",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -460,
        940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c94cc52f-2deb-4cf7-b9f2-fffbb88d857f",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        1420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "85efcc31-2ab1-4b0a-a60b-b06abcdca033",
      "name": "便利贴11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        1060
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "34dca7a1-73b9-45d9-83b0-bfb741cf044c",
      "name": "编辑字段 1",
      "type": "n8n-nodes-base.set",
      "position": [
        2040,
        -120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "541d392a-a848-4bb9-8b89-3226d3549eaf",
      "name": "合并3",
      "type": "n8n-nodes-base.merge",
      "position": [
        2220,
        80
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "daef9a6e-84b5-442f-9226-25bb9705ccce",
      "name": "合并4",
      "type": "n8n-nodes-base.merge",
      "position": [
        2140,
        460
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "e48a47df-874a-49e9-a1b2-1a112151d762",
      "name": "编辑字段2",
      "type": "n8n-nodes-base.set",
      "position": [
        1980,
        300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1af874da-3541-4298-9edf-6bc42a68a042",
      "name": "X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        -100,
        1920
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9c8fce81-3d9d-4d23-aeee-56ca97aa0465",
      "name": "便签18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        1780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "400ffe67-7b5c-4d1b-bea6-84c6e08f6d02",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        640,
        1380
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "98e976a3-d3a1-4c6d-ba4b-94900bba11be",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1840,
        1380
      ],
      "webhookId": "531c4f73-015d-4ef7-8436-36c333ecdd71",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "bed66aa0-d121-4aad-b9b3-4719cd91f6d8",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9819f5e7-5505-460f-9860-ded3ecf67b13",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        860,
        1380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "408a2477-a588-4bd1-b46c-675b54da857b",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ee3a29f8-32a5-474a-8bdc-587035553efa",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fa3e1c4f-636e-4606-9809-9cf38360ce52",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ab3f5d3e-716d-4724-944e-02d3b2eb10ae",
      "name": "博客历史",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -400,
        240
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "2e6b0c84-8317-4672-8299-3819fc2a92d9",
      "name": "更新博客历史",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1080,
        1380
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "11be6e8d-783a-4362-917a-c32f846bab21",
      "name": "添加到数据库",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1280,
        1380
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "ca27b2b7-89d9-4d9a-a905-db5234a5fd8e",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2520,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "fdfc6fe0-bf2c-4cf8-889e-701248f37d2e",
  "connections": {
    "X": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Social Media Content Creator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge3": {
      "main": [
        [
          {
            "node": "Upload media to Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge4": {
      "main": [
        [
          {
            "node": "Facebook Post1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Update Blog History",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "History BLOG",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "History BLOG": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4.1 mini": {
      "ai_languageModel": [
        [
          {
            "node": "Social Media Content Creator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Post1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "RSS Feed Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add too Data Bank": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish Post on IG": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Blog History": {
      "main": [
        [
          {
            "node": "Add too Data Bank",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create image open ai": {
      "main": [
        [
          {
            "node": "Save Image to imgbb.com",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get image from imgbb": {
      "main": [
        [
          {
            "node": "Post image Cloudianry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Social Media Content": {
      "ai_outputParser": [
        [
          {
            "node": "Social Media Content Creator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Create image open ai2": {
      "main": [
        [
          {
            "node": "Save Image to imgbb.com3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get image from imgbb1": {
      "main": [
        [
          {
            "node": "Post image Cloudianry1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post image Cloudianry": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post image Cloudianry1": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Image to imgbb.com": {
      "main": [
        [
          {
            "node": "Get image from imgbb1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Image to imgbb.com3": {
      "main": [
        [
          {
            "node": "Get image from imgbb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload media to Instagram": {
      "main": [
        [
          {
            "node": "Publish Post on IG",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Social Media Content Creator": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create image open ai2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create image open ai",
            "type": "main",
            "index": 0
          },
          {
            "node": "X",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

适合高级用户,包含 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 查看

分享此工作流