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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free