n8n 每日 LinkedIn 自动发帖:OpenAI 品牌反馈循环工作流
定时触发 → 获取内容创意 → AI 生成帖子 → 评分反馈循环 → 自动发布 LinkedIn
- 给谁
- 个人品牌运营者、社交媒体经理、希望自动化 LinkedIn 内容创作的小型营销团队
- 你会得到
- 按设定时间每日自动生成符合品牌调性的 LinkedIn 帖子,经 AI 评分反馈循环优化后直接发布
硬约束
需要 n8n 实例;配置 OpenAI API 密钥、LinkedIn OAuth2 凭证、Notion API 凭证。模板引用两个子工作流(Get Brand Brief / Get Content Ideas / Get Content Feedback),需自行准备或替换为实际数据源。默认每日 21:00(9 PM)触发,可调整 Schedule Trigger。
他们做了什么
模板作者创建了一个 n8n 工作流,通过 Schedule Trigger 每日定时触发,调用子工作流获取内容创意,利用 AI Agent(OpenAI Chat Model + Simple Memory + 两个 Tool Workflow)生成符合品牌调性的 LinkedIn 帖子,并通过评分反馈循环(阈值 0.8)迭代优化,最终由 LinkedIn 节点自动发布。工作流包含两个可选触发入口:Daily Scheduler(定时)和 When Executed by Another Workflow(被其他工作流调用)。
效果如何
作者报告该模板可自动生成并发布高质量 LinkedIn 帖子,减少手动创作与复制粘贴(author_report)。未提供具体 engagement 数据或 ROI。
值得知道
1) 提示词中硬编码作者名 'Nabin Bhandari',使用者必须替换;2) 子工作流(Get Brand Brief / Get Content Ideas / Get Content Feedback)仅提供 workflowId 引用,内部实现未公开,需自行准备或替换;3) 默认使用 gpt-4.1-mini 作为 AI Agent 模型,gpt-4o-mini 用于内容创意生成;4) 反馈评分阈值固定为 0.8,如需调整需修改 AI Agent 提示词;5) LinkedIn 发布需有效 OAuth2 凭证且受平台 API 限制;6) 作者建议用 50+ 条已批准帖子微调 OpenAI 模型以提升品牌一致性,但此为可选建议,非模板必需。
n8n 工作流模板
结构已检查 · 未实际运行下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。
配置与测试清单
需要绑定的凭证
- lmChatOpenAi 节点:绑定OpenAI API 凭证。
- openAi 节点:绑定OpenAI API 凭证。
- linkedIn 节点:绑定LinkedIn OAuth2 凭证。
需要替换的配置
- 源模板来自 n8n 公开库 #6979(约 28 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
- Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。
测试输入与预期结果
- 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
- 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。
模板处理说明
- 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
- 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。
模板获取日期: 2026-10-24
步骤
设置定时触发与获取内容创意
在 n8n 中配置 Schedule Trigger 节点,设置每日触发时间(默认 21:00)。连接 Execute Workflow 节点调用子工作流获取内容创意(workflowId: N5PyYK0EClSQRWNK)。确保子工作流返回包含 suggestions 数组的数据。
拆分创意并格式化 AI 输入
使用 Split Out 节点将 suggestions 数组拆分为单条创意,通过 Split In Batches 逐条处理。每条创意经 Set 节点(Format For AI Input)格式化为 JSON:{"sessionId": "{{ $itemIndex }}", "action": "sendMessage", "chatInput": "{{ $('Split Ideas').item.json.suggestions }}"},输入到 AI Agent。
基于品牌简介生成内容创意(可选子工作流)
模板包含独立的 Get _Content _Ideas 分支:调用子工作流获取 Brand Brief(workflowId: UbKh62LfKoMDeyUo),送入 OpenAI 节点(gpt-4o-mini)生成 10 条与品牌调性一致的创意建议。输出 JSON 格式:{"suggestions": [...]}。如需使用此功能,确保 Brand Brief 子工作流可用。
运行提示词 · 来源原文。Get _Content _Ideas 节点的 messages.values[0].content 字段
=You are a professional content writer. Create 10 topic suggestions that align with the provided brand brief. JSON output format: { "suggestions": [ "Create a post about [...]", ... ] } Brand brief:{{ $json.content }}AI Agent 生成帖子与反馈循环
核心 AI Agent 节点(Generate LinkedIn Post with AI)使用 OpenAI Chat Model(默认 gpt-4.1-mini)与 Simple Memory。Agent 通过两个 Tool Workflow 节点调用外部工具:Get_Brand_Brief 获取品牌简介,Get_Content_Feedback 获取内容评分反馈。系统提示词定义 5 步循环:获取品牌简介 → 创建帖子 → 获取评分 → 低于 0.8 则迭代优化 → 输出最终帖子。
运行提示词 · 来源原文。Generate LinkedIn Post with AI 节点的 options.systemMessage 字段
= You are a helpful content creator for Nabin Bhandari's personal brand. Use the below steps to create content. Steps: Always start by getting the brand brief using the Get_Brand_Brief tool. Create a post on the requested topic that aligns with the brand brief. Get feedback and a score on the post you created in step 2 by using the Get_Content_Feedback tool. If the score is below 0.8, use the feedback from step 3 to refine the post, then repeat steps 3 and 4. The final output should be the approved post.
运行提示词 · 来源原文。Get Content Feedback 节点的 messages.values[0].content(system role)字段
=You are tasked with evaluating a piece of content written for Nabin Bhandari. Your role is to assess how well the post aligns with Nabin's personal brand, using the below brief as your guide. Please analyze the post based on the following criteria: Does the post have unwanted artifacts like "Let's try again" or "Here's a new post"? Does the content reflect Nabin's core values, voice, and style as described in the brief? Does it engage Nabin's target audience as described in the brief? Does it emphasize Nabin's expertise and domain authority as described in the brief? Is the tone, messaging, and approach consistent with the brief's objectives and positioning? After evaluation, output a score between 0 and 1, representing the alignment between the post and the brand brief. The score should be output in the following JSON format: { "description": "[short description here]", "score": [insert score here] } #Brand Brief:{{ $json.content }}发布到 LinkedIn
最终帖子通过 LinkedIn 节点(Publish to Linkedin)发布。节点参数:text = {{ $json.output }},person = Nabin Bhandari。需提前在 n8n 凭证管理器中配置 linkedInOAuth2Api 凭证。
调整与注意事项
模板 sticky note 提示:可在 AI Agent 中自定义提示词以调整语气、长度或风格;确保 LinkedIn 凭证正确配置;触发时间可在 Schedule Trigger 中修改。作者建议将品牌简介保存在 Notion 页面并保持清晰具体,可收集至少 50 条已批准帖子用于 OpenAI 微调。
可复制提示词
搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限,再按步骤导入与验证
这一段是提示词,页面不会在这里插入广告。
你正在搭建一个 n8n 工作流,用于每日自动生成并发布 LinkedIn 帖子。请先确认以下准备项: 1) n8n 实例访问权限;2) OpenAI API 密钥;3) LinkedIn OAuth2 凭证;4) Notion API 凭证(或替代存储的品牌简介);5) 子工作流 Get Brand Brief / Get Content Ideas / Get Content Feedback 的可用性或替换方案。确认后按步骤导入模板、替换凭证 ID、修改硬编码的作者名(Nabin Bhandari)为你的品牌信息,并在执行前用测试数据验证 AI Agent 的反馈循环。
替换提示词中的作者名与品牌信息;测试时先关闭 LinkedIn 发布节点,验证输出质量后再启用。
来源
AI-powered daily LinkedIn post creator with OpenAI feedback loop and Notion · knabinbhandari · n8n.io · 2025-08-04
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。