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
Automate on-brand 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 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.


Automate on-brand articles with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

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 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.