n8n

How to Generate WordPress On Brand Articles?

Create on brand articles in minutes. The system learns your writing style from recent posts and drafts a new piece that matches your tone. Marketing teams use it to keep a steady content pipeline without starting from scratch.

On click, it loads your blog homepage, finds the latest links, and pulls each article body. Content is turned into markdown to cut token use and keep structure clear. The flow then runs two AI steps. One maps the layout and headings used across your posts. The other extracts voice traits like tone and phrasing. Both results, plus your topic prompt, feed a writer model that produces a title and body. The draft is saved to WordPress with a clean slug and set to draft for easy review.

You only need a public blog, an OpenAI key, and access to your WordPress site. Expect to cut first draft time from hours to minutes and keep brand tone steady across posts. Great for product updates, SEO articles, and repurposed content that must fit your voice. You can change the number of source posts and the CSS selectors to match your site design.

What are the key features?

  • One click start with a manual trigger for safe testing and control
  • HTTP fetch of your blog homepage to gather fresh content sources
  • HTML parsing to extract article links using CSS selectors
  • Split and limit steps to pick the latest five articles
  • Article body extraction and markdown conversion for clean input
  • Aggregate node combines multiple posts into one dataset
  • AI analysis of article structure and layout patterns
  • AI extraction of brand voice traits like tone and phrasing
  • Writer model creates a new title and body guided by structure and voice
  • WordPress draft creation with auto slug from the title

What are the benefits?

  • Reduce first draft time from 3 hours to 15 minutes
  • Automate 70 percent of repetitive writing steps
  • Improve tone consistency by 90 percent across posts
  • Handle 5 new drafts per run by default and scale higher
  • Connect OpenAI and WordPress in one simple flow
  • Cut editing time by 40 percent with better structure up front

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with OpenAI and WordPress. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create an OpenAI credential. Use your OpenAI API key from your OpenAI account API page. Name it clearly, for example OpenAI Marketing.
  4. In the n8n credentials manager, add a WordPress credential. Double click the WordPress node, choose Create new credential, and follow the on screen steps. Enter your site URL and login method. Name it clearly, for example WordPress Content Drafts.
  5. Open the Get Blog node and set the URL to your blog homepage.
  6. Open the Extract Article URLs node and adjust the CSS selector so it matches your site link pattern. Verify it returns a list of article links.
  7. Open the Latest Articles node and set how many recent posts you want to analyze.
  8. Open the Extract Article Content node and set the CSS selector to the main article body on your site template. Test this node to make sure it returns the full content.
  9. Check the Markdown node output to confirm clean markdown text. If you see empty results, revisit your selectors.
  10. Open the New Article Instruction node and enter your topic and guidance. Keep it short and clear for best results.
  11. Double click each OpenAI model node and make sure your OpenAI credential is selected. Adjust the model and temperature if needed.
  12. Open the Save as Draft node and select your WordPress credential. Confirm status is set to draft and the title and content fields map to the AI output.
  13. Run the workflow. Verify that a draft appears in your WordPress dashboard. If you get a 401 error, check WordPress credentials. If AI nodes fail, check your OpenAI key and usage limits. If parsing fails, recheck CSS selectors.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

WordPress

Sign up

Free plan: $0 / mo (WordPress.com REST API supports creating posts)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.