WayToClawEarn
Beginner30 min readMay 6, 2026

AI Agent-Driven Content Automation: n8n MCP Building Guide from Scratch

Use n8n + AI Agent to build an automated pipeline from collection to release in 30 minutes

Beginner · 30 min · May 6, 2026

Tutorial Objectives

In 30 minutes, use n8n and AI Agent to build a complete content automation pipeline: from RSS subscription collection → AI rewriting → multi-platform publishing. This article is aimed at users with no basic knowledge and provides step-by-step instructions without writing code.

What will you build?

  • Automatic collector: grab new articles from specified RSS sources regularly every day
  • AI Rewriting Engine: Use OpenAI/Claude to rewrite the original text into content adapted to the target platform
  • Automatic Publisher: Automatically push the rewritten content to blogs and social media

Preparation list

  • n8n (Register n8n.cloud or self-deploy, the free version is enough to get started)
  • OpenAI API Key or Claude API Key (for AI rewriting)
  • Target platform API access (e.g. WordPress REST API, Twitter API)

Overall architecture

The content automation pipeline is disassembled into 3 core modules, which are executed in series in sequence.

ModuleInputOutputEstimated time
RSS CollectorRSS Feed URLNew Article List (JSON)5 minutes
AI rewritingOriginal content + rewriting instructionsRewritten content (Markdown)15 minutes
Auto-publishMarkdown contentPublish to target platform10 minutes

RSS feed to AI processing

Step 1: Build RSS collector

First, create a new workflow (Workflow) in n8n. Add an RSS Feed Read node as a trigger:

  1. Click on the node panel on the left and search for "RSS"
  2. Drag in the RSS Feed Read node
  3. Enter the RSS address you wish to track in the URL field, such as the RSS for a technology blog
  4. Set the polling interval (it is recommended to check every 4 hours)

Tip: n8n supports multiple triggers. RSS collection is suitable for scheduled polling; if you want to respond in real time, you can use Webhook nodes instead.

After the configuration is completed, click "Execute Node" to test whether the article list can be obtained. You'll see structured JSON output with title, link, summary, and publication time.

json
[
  {
    "title": "示例文章标题",
    "link": "https://example.com/article",
    "content": "文章内容摘要...",
    "pubDate": "2026-05-06T00:00:00Z"
  }
]

第 2 步:配置 AI 改写引擎

这是整个管线最核心的部分。添加一个 OpenAI 节点(或 Anthropic Claude 节点,取决于你使用的模型)。

节点配置

配置项说明
Modelgpt-4oclaude-opus-4-5推荐最新稳定版本
Temperature0.7保证创造性改写与事实准确性的平衡
Max Tokens2000根据改写后目标长度调整

Prompt 设计

连接 RSS 节点的输出到 OpenAI 节点。在 Messages 中设置 System 和 User 消息:

System Message(改写规则):

code
你是一个专业内容改写助手。将输入的文章改写成中文社交媒体风格:
1. 保留原文核心观点和数据
2. 开头用吸引眼球的摘要句
3. 正文分段清晰,每段不超过 3 句话
4. 结尾附上原文链接
5. 总字数控制在 500-800 字

User Message(引用输入):

code
请改写以下文章:「{{ $json["content"] }}」
原文标题:{{ $json["title"] }}
原文链接:{{ $json["link"] }}

推荐使用 OpenAIClaude 来完成这一步,它们的 API 稳定性和质量是目前最好的。

AI content rewriting

第 3 步:构建多平台发布器

改写完成后,需要将内容发布到目标平台。n8n 提供数十种平台的集成节点:

WordPress 发布

添加一个 WordPress 节点,配置:

  • 填写博客的 REST API 地址(https://你的域名/wp-json/wp/v2
  • Enter your WordPress application password
  • Map the rewritten content to title and content fields -Set article status to publish or draft

Social media sync

If you need to synchronize to Twitter or LinkedIn, add the corresponding HTTP Request node:

  • Twitter API v2: POST /2/tweets Send tweet summary + original text link
  • n8n's built-in Twitter node has encapsulated the OAuth process

Error handling

It is recommended to add an IF node after each publishing node for error checking:

  • If published successfully → log to database or Google Sheets
  • If publishing fails → Send Telegram/email notification to avoid content loss

Step 4: Concatenation and automated execution

Connect the three modules in the order of RSS → OpenAI → WordPress to form a complete pipeline.

Final workflow structure

code

## RSS Feed Read] → [OpenAI (改写)] → [IF (检查内容)
                                         │
                    ┌────────────────────┘
                    ▼

## WordPress] → [Telegram (通知)

启用工作流后,每当 RSS 有新文章,系统会自动:

  1. 采集原文
  2. 用 AI 改写成中文社交媒体格式
  3. 发布到 WordPress 博客
  4. 发送 Telegram 通知告知你发布完成

提示:n8n 所有节点支持 Error Workflow 设置,可在工作流开头配置全局报错处理。

常见问题排查(FAQ)

Q1:RSS 节点取不到数据?

检查 RSS URL 是否可访问。有些站点需要额外的 User-Agent 头,在 n8n 的 HTTP Request 节点中手动设置。

Q2:AI 改写结果不理想?

调整 System Message 中的改写指令,增加具体约束。建议先用 n8n 的 "Execute Workflow" 模式单次测试,满意后再启用定时执行。

Q3:发布到 WordPress 返回 403?

WordPress 应用密码需要先在后台生成:用户 → 应用密码 → 创建新密码。API 需要用 Basic Auth 方式传递。

SEO+GEO:FAQ 结构满足 AI 回答引擎的提取偏好,同时覆盖长尾搜索词

工具词条

本文中自然出现的工具名,平台会自动匹配已维护的 tools 库生成悬浮信息卡:n8nOpenAIChatGPTClaudeClaude CodeHermes Agent

Reference video/material

Internal link guidance

Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.

Related tutorials