Automate WordPress Blog Publishing to Medium with n8n

This n8n workflow automates fetching posts from a WordPress blog, extracting content, and publishing them to Medium. It saves hours in manual content sharing by streamlining blog discovery, content extraction, and posting.
manualTrigger
httpRequest
html
+3
Workflow Identifier: 1486
NODES in Use: manualTrigger, httpRequest, html, itemLists, splitInBatches, medium

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 checks a WordPress blog homepage for new posts, gets each post’s title and content, and then posts that content automatically to Medium. It saves hours of manual copying and stops mistakes like missing images or links.

The workflow fetches the blog page, finds post titles and links, loads each post’s full content, extracts key parts like the title and introduction, and publishes these as new posts on Medium.


Tools and Services Used

  • WordPress Blog URL: Public blog page for fetching posts.
  • n8n Automation Platform: Runs the workflow with various nodes like HTTP Request, HTML extractors, and Medium node.
  • Medium API: Posts content directly to Medium using API credentials.

Input → Process → Output Explained

Input

  • The blog homepage URL, for example, https://mailsafi.com/blog/
  • Medium API credentials set up inside n8n for posting.

Processing Steps

  1. Fetch the main blog page HTML.
  2. Extract all post titles and their links using CSS selectors.
  3. Split the list to get individual posts.
  4. Limit the number of posts to process at once.
  5. Loop over each post URL one by one.
  6. Fetch the full HTML content of each post.
  7. Extract detailed parts: post title, intro paragraph, and full content in HTML.
  8. Create a new Medium post with this data, including tags and public status.

Output

New Medium posts appear matching the WordPress blog posts, published automatically.


Who Should Use This Workflow

This workflow fits users who want to share WordPress blog posts on Medium without manually copying content.

Good for people who publish regularly and want to save time or avoid manual errors.


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

Importing the Workflow

  1. Click the Download button on this page to save the workflow file.
  2. Inside the n8n editor, choose “Import from File” and select the downloaded workflow.

Setup Credentials and Settings

  1. Go to the Medium node and add your Medium API Key as credentials.
  2. Update any IDs, emails, or URLs if needed, especially the WordPress blog homepage URL.
  3. Check any code or expressions for URLs or paths and update as per your blog if needed.

Testing and Activating

  1. Run the workflow manually to test that posts get extracted and published correctly.
  2. Look at the output and logs for errors or missing content.
  3. If all looks good, activate the workflow to run either manually or add a Cron trigger for regular scheduling.

For anyone hosting n8n themselves, see self-host n8n for helpful setup resources.


Customizations and Enhancements

  • You can add a Cron trigger to run this workflow regularly without manual start.
  • Filter posts by date if you want to process only recent posts.
  • Modify Medium tags in the Medium node to match your topic better.
  • Use additional CSS selectors to extract images or author info for richer posts.

Troubleshooting Common Issues

  • If the HTML extraction does not return content, check and update CSS selectors in the HTML nodes.
  • Medium publishing may fail if API credentials are wrong or expired; refresh credentials in n8n.
  • If too many posts slow down or timeout the workflow, limit batch size or add delays.

Pre-Production Checklist

  • Make sure the WordPress blog page is publicly reachable.
  • Verify the CSS selectors match the current blog HTML.
  • Test Medium API credentials with a manual post.
  • Run the workflow with a few posts first to confirm success.

Deployment

After testing, activate the workflow in n8n.

Add a Cron trigger node if you want the posts to be published regularly or automatically.

Watch the workflow runs and logs to spot any issues early.


Summary of Benefits and Outcome

✓ Saves many hours of manual work.

✓ Stops errors like missing images or broken links.

✓ Automatically posts WordPress blog content to Medium.

→ You get fresh Medium posts each time new WordPress posts appear.


Frequently Asked Questions

Yes. The user needs to update the HTTP requests and HTML extraction CSS selectors to match the new blog platform’s structure.
Yes. Each post created via the Medium node counts against the user’s Medium API usage limits.
Users should ensure their n8n instance is secure, uses encrypted credentials, and access is restricted.
It can, but the user should add rate limits and batch processing to avoid timeouts or API limits.

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