Automate On-Brand Blog Article Creation with n8n and OpenAI

Struggling to maintain consistent brand voice across your blog? This n8n workflow uses OpenAI to analyze your existing articles and generate new, on-brand article drafts automatically, saving hours of manual editing and ensuring brand consistency.
manualTrigger
httpRequest
lmChatOpenAi
+9
Workflow Identifier: 1252
NODES in Use: Manual Trigger, HTTP Request, HTML Extract, Split Out, Limit, Markdown, Aggregate, OpenAI Chat Model, Information Extractor, Merge, Set, WordPress
Automate blog articles with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does ⚙️

This workflow fetches the latest blog articles and learns your brand voice and style automatically.
It then uses AI to write new blog drafts matching your style.
The result is on-brand content saving time and keeping your blog consistent.

The workflow grabs article URLs, reads each article, and changes the HTML to Markdown for better AI use.
Then, it analyzes structure and tone with OpenAI, and uses that info to create a fresh draft.


Who Should Use This Workflow

People managing company blogs who want to keep a consistent tone.
Anyone who finds editing old content and keeping messages uniform hard.

It helps content teams save hours of manual review.
Non-technical marketers can get quick blog drafts without deep writing skills.


Tools and Services Used

  • n8n: Workflow automation platform.
  • OpenAI API: AI text analysis and generation.
  • WordPress REST API: Saves drafts to WordPress.
  • HTTP and HTML Extract nodes: Fetch and parse web pages.
  • Markdown node: Converts HTML to Markdown for AI.

Inputs → Processing Steps → Output

Inputs

  • URL of your blog homepage to fetch latest articles.
  • WordPress site credentials for posting drafts.
  • OpenAI API key for text analysis and content generation.

Processing Steps

  • Download homepage HTML with HTTP Request.
  • Extract article links using HTML Extract.
  • Split the URLs into individual items.
  • Limit processing to five newest articles.
  • Fetch each article HTML content.
  • Extract article body with HTML selectors.
  • Convert HTML article to Markdown for better AI input.
  • Aggregate Markdown articles into one set.
  • Analyze article structure and style using OpenAI chat nodes.
  • Extract brand voice details from articles.
  • Combine structure and voice features for content instructions.
  • Set instructions for new article creation.
  • Use AI to generate a new blog draft matching brand style.
  • Create a draft post automatically in WordPress.

Output

A draft blog post saved in WordPress matching brand voice and style.
This can be reviewed and published by content teams.


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import Workflow

  1. Download the full workflow file using the Download button on this page.
  2. Open the n8n editor where you create workflows.
  3. Click “Import from File” and select the downloaded workflow file.

Step 2: Configure Credentials and Settings

  1. Add your OpenAI API Key in the n8n credential manager.
  2. Enter WordPress site credentials with API access in the WordPress node.
  3. Check the HTTP Request node URLs to match your blog homepage.
  4. Edit the Set node with new article instructions to your preferred blog topic.

Step 3: Test and Run

  1. Click “Test workflow” to run the entire process manually.
  2. Look at node outputs to ensure article URLs and content are fetched correctly.
  3. Verify the AI generates a draft post saved as a WordPress draft.

Step 4: Activate Workflow for Production

  1. Once testing is successful, click “Activate” in n8n.
  2. Optionally, add a scheduled trigger to run this weekly.
  3. Use the workflow as a reliable content draft generator.

For users running self-host n8n, load this workflow the same way inside your system.


Customization Ideas

  • Change the blog URL in the Get Blog node to your blog site.
  • Use the Limit node to process more or fewer articles.
  • Edit the instructions in the Set node to guide AI for specific topics.
  • Replace article sources with PDFs or other content by changing HTTP nodes.
  • Set WordPress node to publish immediately by changing the post status.

Common Problems and Fixes

  • No article links found: Update CSS selectors in Extract Article URLs node matching your blog’s HTML.
  • OpenAI API errors: Check your API key and usage quotas.
  • Empty Markdown outputs: Verify article HTML extraction selectors.
  • WordPress post errors: Confirm API access and credentials.

Pre-Production Checklist ✅

  • Confirm OpenAI API keys are saved in n8n credentials.
  • Test HTTP requests can access your blog URLs.
  • Verify CSS selectors match the blog’s actual HTML.
  • Run manual test and check node outputs for correct data.
  • Backup WordPress site or use a testing environment before going live.

Result Summary

✓ Saves hours by automating blog draft creation.
✓ Guarantees consistent writing style and tone.
✓ Produces new drafts quickly for marketing teams.
✓ Integrates with WordPress for easy content management.


Automate blog articles with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Download the workflow file, open the n8n editor, click Import from File, and select the file. Then add required OpenAI and WordPress credentials.
This usually means the CSS selector in the HTML Extract node is incorrect. Inspect your blog HTML and update the selector.
It fetches blog articles, converts to Markdown, analyzes style using OpenAI, then generates a new draft in the same style saved as a WordPress draft.
Yes. After importing and configuring, the user can add a scheduled trigger in n8n to run the workflow regularly.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.