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.
httpRequest
informationExtractor
wordpress
+9
Workflow Identifier: 1350
NODES in Use: Manual Trigger, HTTP Request, HTML, Split Out, Limit, Markdown, Aggregate, Chain LLM, 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 gets the latest blog articles from a company blog website and reads their content.

It finds the writing style, layout, and tone used in those articles by using AI.

Then it uses that style information to write new blog article drafts that match the brand voice.

The new drafts are saved automatically in WordPress as unpublished posts.


Who Should Use This Workflow

Anyone who manages blog content and needs help keeping articles consistent in style and voice.

This is good for teams with little time who want to save hours on writing and editing blog posts.


Tools and Services Used

  • n8n: To build and run the workflow automation.
  • OpenAI API: For AI analysis and content generation.
  • WordPress API: To save generated articles as drafts in the blog.
  • HTTP Requests and HTML Extraction: To scrape blog pages and parse article content.

Workflow Inputs, Processing, and Outputs

Inputs

  • URL of the company blog homepage to fetch latest articles.
  • OpenAI API Key for communicating with AI models.
  • WordPress credentials for saving draft posts.

Processing Steps

  • Fetch the blog homepage HTML.
  • Extract newest article URLs from the page.
  • Get the full content HTML for each article.
  • Extract main article body using CSS selectors.
  • Convert article HTML to Markdown for AI processing efficiency.
  • Combine all articles into one set for analysis.
  • Use OpenAI to find common article structure and writing style.
  • Use OpenAI again to identify brand voice characteristics.
  • Merge style and voice results to create writing instructions.
  • Send instructions plus topic prompt to AI to generate new draft content.
  • Save resulting article as draft in WordPress site.

Outputs

  • Draft blog post in WordPress matching brand style.
  • Saved markdown content processed by AI.
  • Structured style and voice guidelines for content generation.

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

Step 1: Import Workflow

  1. Download the workflow file by clicking the Download button on this page.
  2. Open the n8n editor where you want to use the workflow.
  3. Choose “Import from File” and select the downloaded workflow file.

Step 2: Add Credentials

  1. In the n8n editor, open _Credentials Manager_.
  2. Add your OpenAI API Key for all nodes using OpenAI models.
  3. Add your WordPress API credentials so the workflow can save drafts.

Step 3: Update Parameters

  1. In the HTTP Request node named “Get Blog”, update the URL to your company blog homepage.
  2. Change the Limit node “Latest Articles” if you want to adjust the number of articles analyzed.
  3. Edit the Set node “New Article Instruction” to change the topic or instructions for new content.

Step 4: Test the Workflow

  1. Click the manual trigger node Manual Trigger and then “Execute Node” to run the workflow once.
  2. Check the execution for errors and verify draft posts appear in WordPress.

Step 5: Activate for Production Use

  1. After successful testing, activate the workflow by enabling it in the n8n editor.
  2. Run on demand or schedule the workflow if your plan and setup allow.
  3. If preferred, consider self-host n8n for more control and security.

Customization Ideas

  • Change the blog URL in the HTTP Request node to scrape different websites.
  • Adjust the number of articles to analyze by editing the Limit node.
  • Modify the instructions in the Set node “New Article Instruction” to write different article topics.
  • Add a WordPress node after draft creation to publish posts automatically after review.
  • Save brand voice data to a database for reuse without repeating AI analysis every time.

Failure and Edge Case Handling

If no article URLs show up, check the CSS selector in the HTML node “Extract Article URLs” for website changes.

If WordPress drafts fail to save, double-check wordPress API credentials and user permissions.

OpenAI errors may show if API limits are reached; verify API key quota and network connection.


Pre-Production Checklist

  • Test the manual trigger fires correctly.
  • Confirm that HTTP nodes fetch blog data properly.
  • Verify HTML extraction CSS selectors work with current blog design.
  • Ensure OpenAI nodes return good style and voice data.
  • Try saving a draft to WordPress to confirm permissions and keys.
  • Backup WordPress database before using in production.

Deployment Guide

After testing, enable the workflow in n8n for live use.

Run it manually when new blog drafts are needed or schedule if supported by your n8n plan.

Monitor workflow logs for errors and keep CSS selectors and API credentials updated regularly.


Summary of Results

✓ Saves time by automating blog draft writing.

✓ Keeps content consistent with brand style and voice.

✓ Reduces editing and rewriting effort for content teams.

→ Creates ready-to-edit draft articles in WordPress automatically.

→ Enables smooth content pipeline from style analysis to AI-generated drafts.


Frequently Asked Questions

The workflow uses the HTTP Request node to fetch the HTML of the company blog homepage and extracts article URLs using the HTML node with CSS selectors.
The CSS selectors in the HTML extraction nodes must be updated in the workflow to match the new blog layout to continue extracting articles correctly.
Yes, the WordPress node uses API credentials to save generated article drafts in a WordPress blog for review and publishing.
The beginner should import the provided workflow file into n8n, add OpenAI and WordPress API credentials, update any URLs or prompts needed, test by running the manual trigger, and then activate the workflow.

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