How to use OpenClaw + ChatGPT to build an AI automatic content rewriting system: from long articles to multi-platform adaptation in 30 minutes
Build an AI automatic content rewriting pipeline from scratch, and automatically generate adapted versions for three platforms from a long article
Tutorial Objectives
In 30 minutes, use OpenClaw and ChatGPT to build an automatic content rewriting pipeline - enter a long article and automatically generate rewritten versions suitable for different platforms. This article is a complete step-by-step tutorial, and you can get started with zero coding knowledge.
What will you build?
- Content Collection Module: Use OpenClaw to capture target articles or RSS updates
- AI rewriting engine: ChatGPT automatically rewrites long articles into three versions: Twitter, LinkedIn, and Newsletter
- Output Management: The rewriting results are automatically saved locally or synchronized to Notion
Preparation list
- OpenClaw Install and run (download from official website, free version available)
- ChatGPT / OpenAI API Key (obtained from platform.openai.com)
- Python 3.9+ operating environment (macOS/Linux is acceptable)
Overall architecture
The system is divided into 3 modules, from capture to rewriting to output, all orchestrated by OpenClaw's workflow engine.
| Module | Input | Output | Estimated time |
|---|---|---|---|
| OpenClaw content scraping | Article URL or RSS feed | Cleaned plain text | 10 minutes |
| ChatGPT smart rewriting | Original article text | Adapted versions for 3 platforms | 10 minutes |
| Result storage and notification | Adapt content | Local Markdown + Telegram notification | 10 minutes |
Step 1: Configure OpenClaw content scraping workflow
The core advantage of OpenClaw is its visual workflow editor - no need to write code, drag and drop modules to complete complex capture and data processing logic.
1.1 Create workflow
Open the OpenClaw console, click "New Workflow" and select "Blank".
1.2 Configure HTTP input node
In the workflow editor, find the Input node (located under the "Trigger" category on the left panel) and drag it into the canvas. Configuration:
| Configuration item | Value | Description |
|---|---|---|
| Input type | HTTP Request | Start workflow via HTTP call |
| Method | POST | Receive JSON request body |
| Body Schema | {"url": "string", "platforms": ["string"]} | Specify the target URL and platform to be rewritten |
1.3 Add content crawling node
Drag the HTTP Fetcher node from the left panel and connect it to the Input node. This node is responsible for downloading the content of the target article.
| Configuration item | Value | Description |
|---|---|---|
| URL | {{$.input.url}} | Reference from input |
| Method | GET | Download HTML |
| Headers | User-Agent: Mozilla/5.0 | Simulate browser requests to avoid being intercepted |
1.4 Add content extraction node
Drag in the HTML Parser node and configure the CSS selector to extract the text content:
{
"title": "h1.entry-title, article h1, .post-title",
"content": "article .entry-content, .post-content, .article-body",
"author": ".author-name, .byline"
}****,(F12) CSS 。
{Tool: OpenClaw} , HTML Parser CSS XPath , Readability 。
2 ChatGPT
—— AI 。
2.1 OpenAI
OpenClaw , AI / LLM , OpenAI GPT-4o-mini 。
API Key( OpenClaw "")
# OpenClaw
OPENAI_API_KEY=sk-your-key-here。 3
1. Twitter/X ≤280 ,, 2
2. LinkedIn 200-300 ,,,
3. Newsletter 500-800 , + 3 +
---
{{$input.content}}
---
JSON
{
"twitter": "...",
"linkedin": "...",
"newsletter": "..."
}2.2 JSON
JSON Parser , OpenAI JSON (twitter_text、linkedin_text、newsletter_text),。
3
。
3.1
File Writer , Markdown
{{$input.title}}-{{timestamp}}.md | ||
~/conte nt-rewrites/ | ||
{{$json_parser.output}} |
3.2 Telegram ()
Telegram Bot ,
| Bot Token | {{telegram_bot_token}} | OpenClaw |
| Chat ID | {{your_chat_id}} | Telegram ID |
✅ Rewriting completed: {{$input.title}} |
Indie Developer: n8n + OpenClaw Automation Workflow Earning $5,000/mo。, n8n OpenClaw 。
3.3
,, POST
curl -X POST http://localhost:8080/workflow/content-rewriter \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/article", "platforms": ["twitter", "linkedin", "newsletter"]}'30 ,、。
(FAQ)
Q1OpenClaw ?
。 HTTP Fetcher Headers(Referer、Cookie), OpenClaw Playwright JavaScript 。
Q2?
。 LinkedIn ""、" emoji"。 Temperature 0.7 0.3,。
Q3 50 ,API ?
3000 tokens + 1000 tokens 。 GPT-4o-mini($0.15/1M ,$0.60/1M ), 0.001 。50 / ≈ 0.05 , 1.5 /。, GPT-4o, 20 。
{Tool: DeepSeek / Qwen} ——DeepSeek V4 API GPT-4o 1/32,。
SEO+GEOFAQ GEO ,
()
, tools hover-cardOpenClaw、ChatGPT、OpenAI、n8n、DeepSeek、Telegram
Reference video/material
Internal link guidance
- Someone has successfully practiced it: Indie Developer: n8n + OpenClaw Automation Workflow Earning $5,000/mo
- Recommended tools: OpenClaw · DeepSeek / Qwen · n8n Cloud
Related tutorials
How to Write .cursorrules: Cursor Prompt Engineering Guide (2026)
If Cursor's AI keeps generating code you have to fix every time, the problem is not the model: it is your rules file. A good .cursorrules can cut your edit-to-accept ratio from 3:1 to near 1:1. After eight months of iterating on Cursor rules across React, Python, and Go projects, this guide walks through what works, what breaks, and the templates I actually use.
Claude Code Pricing Guide: Plans, Credits, and Cost Optimization (2026)
I spend $80-150/month on Claude Code and use it 6-7 days a week. This guide breaks down exactly how Claude Code pricing works: per-token API billing, Anthropic credits, Max mode costs, the June 2026 billing change, and real monthly budgets from three developer profiles. I also share the six cost optimization techniques that cut my bill from $340 to $80 without reducing how much I ship.
Topic hub
YouTube AI Content Policy Hub
Answer-style evergreen hub for AI labels, auto detection, and disclosure—not just breaking news.
Explore YouTube AI Content Policy Hub →Monetization angle
How can you make money from this trend?
WayToClawEarn focuses on verified earn playbooks—not just news. Start from these cases.
ChatGPT ads + content distribution
Sell compliance checklists and automated distribution
OpenClaw Agent short-video growth
Lean into hybrid workflows as labels get stricter