8
n8n 中文网amn8n.com

使用 n8n、OpenAI 和 Notion 将一个想法重新利用为一周的社交媒体帖子

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 22 个节点。主要使用 If, Set, Wait, Merge, Notion 等节点。 使用 Notion 和 GPT-4o 将一个想法重新利用为一周的社交媒体内容

前置要求
  • Notion API Key
  • OpenAI API Key
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "name": "使用 n8n、OpenAI 和 Notion 将一个想法重新利用为一周的社交媒体帖子",
  "nodes": [
    {
      "id": "9c1b68ed-9cdb-4b22-adb5-ba838cc7c1af",
      "name": "便签:概述与设置",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4abe0ac9-cd23-49fc-9430-7b869c6f0a43",
      "name": "便签:步骤 1 – 触发器",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c8689525-a4a1-4435-85b9-080765309c15",
      "name": "便签:步骤 2 – AI 与存储",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "72bd68bc-1624-47b5-b5c6-17f67357368c",
      "name": "Webhook:接收想法/URL",
      "type": "n8n-nodes-base.webhook",
      "position": [
        240,
        180
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "90210297-95e0-49af-a328-199880926478",
      "name": "Notion 触发器:就绪状态时触发",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        240,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f58b4bf1-c95a-469e-bfc3-24e7116c85e2",
      "name": "合并:两个触发器",
      "type": "n8n-nodes-base.merge",
      "position": [
        480,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "dbe9c25a-f7e5-4fad-b672-f89e26dae8d7",
      "name": "等待:随机延迟 7-22 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        660,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cce8bee3-6f2d-4acb-9066-21cdec677f15",
      "name": "设置:收集输入",
      "type": "n8n-nodes-base.set",
      "position": [
        840,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "37c27b20-9b27-442b-b68e-bd4a4af0f9a0",
      "name": "条件判断:是否有来源 URL?",
      "type": "n8n-nodes-base.if",
      "position": [
        1020,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "24b93fd5-e4c6-4062-9dcd-c3eba6f5c1b5",
      "name": "HTTP:获取来源页面",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1200,
        200
      ],
      "parameters": {},
      "typeVersion": 4
    },
    {
      "id": "83f26631-069e-4e28-b150-a72664087e07",
      "name": "代码:从 HTML 提取文本",
      "type": "n8n-nodes-base.function",
      "position": [
        1380,
        200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c8e44a12-3d42-43a0-8428-eb8ec4b0cece",
      "name": "设置:使用原始想法",
      "type": "n8n-nodes-base.set",
      "position": [
        1200,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "590fb664-da79-47b3-8949-f3b239ca7118",
      "name": "合并:选择来源",
      "type": "n8n-nodes-base.merge",
      "position": [
        1560,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b947146a-49f8-4729-ba86-6cff40dea301",
      "name": "设置:用户配置(编辑我!)",
      "type": "n8n-nodes-base.set",
      "position": [
        1740,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ea78bd26-74ca-49d6-b460-711d9aa76e6a",
      "name": "OpenAI:重新利用 → JSON",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1920,
        300
      ],
      "parameters": {},
      "typeVersion": 4
    },
    {
      "id": "25ff45b8-af1f-422c-a4d7-74f4c52ea5ca",
      "name": "代码:解析 AI 输出",
      "type": "n8n-nodes-base.function",
      "position": [
        2100,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "695cdca1-d4c4-415a-96dc-0878907d2c15",
      "name": "Notion:保存内容页面",
      "type": "n8n-nodes-base.notion",
      "position": [
        2280,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f54e1226-a106-4fc5-a20b-f73824ea37f0",
      "name": "条件判断:是否安排到 Tailwind?",
      "type": "n8n-nodes-base.if",
      "position": [
        2460,
        220
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e1f9d3a5-1ad0-468e-a413-62152de0161f",
      "name": "HTTP:发布到 Tailwind",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2640,
        220
      ],
      "parameters": {},
      "typeVersion": 4
    },
    {
      "id": "2f311e7e-145b-4357-8d32-68e819ed7baa",
      "name": "条件判断:是否发布到 Pinterest?",
      "type": "n8n-nodes-base.if",
      "position": [
        2460,
        380
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ee969e37-60ca-4e88-9b40-193630789ebd",
      "name": "HTTP:创建 Pinterest Pin",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2640,
        380
      ],
      "parameters": {},
      "typeVersion": 4
    },
    {
      "id": "9e72c909-389f-40cb-a62b-544521672a5f",
      "name": "便签:故障排除与可观测性",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "version": 2,
  "settings": {},
  "staticData": null,
  "connections": {
    "Set: Use Raw Idea": {
      "main": [
        [
          {
            "node": "Merge: Choose Source",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Set: Gather Inputs": {
      "main": [
        [
          {
            "node": "IF: Has Source URL?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF: Has Source URL?": {
      "main": [
        [
          {
            "node": "HTTP: Fetch Source Page",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set: Use Raw Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge: Both Triggers": {
      "main": [
        [
          {
            "node": "Wait: Jitter 7–22s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge: Choose Source": {
      "main": [
        [
          {
            "node": "Set: User Config (Edit Me!)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait: Jitter 7–22s": {
      "main": [
        [
          {
            "node": "Set: Gather Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Parse AI Output": {
      "main": [
        [
          {
            "node": "Notion: Save Content Page",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "IF: Schedule to Tailwind?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "IF: Post to Pinterest?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF: Post to Pinterest?": {
      "main": [
        [
          {
            "node": "HTTP: Create Pinterest Pin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP: Fetch Source Page": {
      "main": [
        [
          {
            "node": "Code: Strip HTML to Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Strip HTML to Text": {
      "main": [
        [
          {
            "node": "Merge: Choose Source",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF: Schedule to Tailwind?": {
      "main": [
        [
          {
            "node": "HTTP: Post to Tailwind",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook: Receive Idea/URL": {
      "main": [
        [
          {
            "node": "Merge: Both Triggers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI: Repurpose → JSON": {
      "main": [
        [
          {
            "node": "Code: Parse AI Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set: User Config (Edit Me!)": {
      "main": [
        [
          {
            "node": "OpenAI: Repurpose → JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion Trigger: On Ready Status": {
      "main": [
        [
          {
            "node": "Merge: Both Triggers",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作, 多模态 AI

需要付费吗?

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

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

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

作者
Shelly-Ann Davy

Shelly-Ann Davy

@shecodesflo

Founder of The Workflow Muse & @SheCodesFlow. I design elegant, feminine automations for content creators and entrepreneurs. “Automate with grace. Scale with power.”

外部链接
在 n8n.io 查看

分享此工作流