Advertisement
Skip to content

Free n8n workflow: post blog drafts to WordPress

By Updated 11 min read

Some links on this site are affiliate links: if you buy through them we may earn a commission, at no extra cost to you. We also make Ama Affiliate Pro and Ama Affiliate Ultra and say so wherever we mention them. We recommend a tool only where it fits the job.

On this page (8 sections)
  1. The short version
  2. What this workflow does and what it costs
  3. How to configure n8n nodes to connect to WordPress
  4. How to set WordPress post status to draft within n8n
  5. Limitations of free-tier n8n and WordPress API usage
  6. Testing the workflow to confirm draft posts appear in WordPress
  7. When to add retry handling and how many posts per hour is safe
  8. Questions people still ask

In short: Connect n8n's HTTP Request node to the WordPress REST API using an application password, set the post status parameter to draft, and trigger it with a webhook or schedule. The entire workflow runs free on n8n's cloud tier, which allows 5,000 executions monthly.

Part of our guide on schedule amazon posts efficiently

Most n8n WordPress tutorials skip the one parameter that stops your drafts from going live instantly: post_status set to draft.

At a glance
n8n free executions5,000 per month
WordPress API limithost-dependent, usually 60-100/min
Draft post parameterpost_status: draft
Authentication methodapplication password
Minimum nodes needed2 (trigger + HTTP Request)

The short version

  • n8n's free cloud tier gives you 5,000 workflow executions per month, enough for 160 daily draft posts
  • WordPress application passwords let you authenticate without plugins or exposing your main login
  • Set post_status to draft in the request body so posts never go live accidentally
  • Test with a manual trigger first, then switch to webhook or schedule once it works
  • The WordPress API has no hard rate limit, but most shared hosts throttle at 60-100 requests per minute

What this workflow does and what it costs

This n8n workflow takes content from a trigger source (a webhook, a Google Sheet row, or an Airtable record) and pushes it into WordPress as a draft post. It uses the WordPress REST API directly, so you don't install a plugin. The post appears in your WordPress dashboard under Drafts, ready for you to review, edit, and schedule.

The workflow runs entirely on n8n's free cloud tier. That tier gives you 5,000 workflow executions per month. Each execution creates one draft post. If you publish five drafts a day, you'll use 150 executions monthly. That leaves room for testing and mistakes.

WordPress itself imposes no API rate limit in its core code. Your hosting provider does. Shared hosts typically throttle requests to 60 to 100 per minute to protect server resources. If you stay below that, the API won't block you. If you exceed it, you'll see 429 errors and need to add a delay node between requests.

The workflow requires two credentials: your WordPress site URL and an application password. No paid n8n features are needed. No WordPress premium plan is required. You can run this on a free WordPress.com site or a $4-per-month shared host. Before you commit to anything, it is worth looking at wordpress multisite post scheduling.

How to configure n8n nodes to connect to WordPress

n8n cloud dashboard showing free tier usage
n8n cloud dashboard showing free tier usage

Open n8n and create a new workflow. Add a Manual Trigger node to start. This lets you test the workflow by clicking a button. Once it works, you'll swap it for a webhook or schedule.

Add an HTTP Request node. Name it Create WordPress Draft. Set the method to POST. In the URL field, enter https://yoursite.com/wp-json/wp/v2/posts, replacing yoursite.com with your actual domain. This endpoint creates a new post.

Under Authentication, choose Basic Auth. For the username, enter your WordPress username. For the password, you need an application password, not your main login. Go to your WordPress dashboard, then Users → Profile. Scroll to Application Passwords. Type a name like n8n workflow and click Add New. WordPress generates a password with spaces. Copy it exactly, spaces included, and paste it into the n8n credential field. It helps to understand workflow halts in approval queue before going further.

In the HTTP Request node, switch to the Body tab. Choose JSON format. Add these fields: title for the post title, content for the HTML body, and status set to draft. Map each field to data from your trigger node. For example, if your trigger is a webhook with a post_title field, drag that into the title value.

  1. Create a new workflow in n8n and add a Manual Trigger node
  2. Add an HTTP Request node and set the method to POST
  3. Enter your WordPress REST API URL: https://yoursite.com/wp-json/wp/v2/posts
  4. Choose Basic Auth and generate an application password in WordPress under Users → Profile
  5. Paste the application password (with spaces) into the n8n credential
  6. Add JSON body fields: title, content, and status: draft

How to set WordPress post status to draft within n8n

The status parameter controls whether a post goes live immediately or sits in your Drafts folder. Set it to draft in the JSON body of your HTTP Request node. If you omit this field, WordPress defaults to publish, and your post appears on the site the moment the workflow runs.

In the HTTP Request node's Body Parameters section, add a key called status and set its value to draft. Use lowercase. WordPress will reject Draft or DRAFT. If your workflow pulls content from Airtable or Google Sheets, hard-code status as draft rather than mapping it to a column. That way, a typo in your spreadsheet can't accidentally publish a post. We cover creating an ebook from articles in its own article.

You can also set status to pending if you want the post to appear in the Pending Review queue instead of Drafts. That's useful when you have an editor who approves posts before they go live. The workflow stays the same; only the status value changes.

If the workflow runs and you don't see a draft in WordPress, check the n8n execution log. Look for the response from the HTTP Request node. If the post was created but published, the response will show "status": "publish". That means the status field wasn't sent or was sent incorrectly.

WordPress post status values and where they send posts
Status valueWhere it appearsWhen to use it
draftDrafts folderYou want to review and edit before publishing
publishLive on the siteThe content is final and ready
pendingPending ReviewAn editor needs to approve it first
privatePublished but hiddenOnly logged-in users with permission see it

Limitations of free-tier n8n and WordPress API usage

WordPress application password generation screen
WordPress application password generation screen

N8n's free cloud tier caps you at 5,000 workflow executions per month. Each time the workflow runs, it counts as one execution, even if it fails. If you hit the limit, the workflow stops until the next billing cycle. The solution is to batch posts: send multiple drafts in one execution using a loop node, or switch to n8n's Starter plan at $20 per month for 10,000 executions. For the detail, see our notes on refresh aging affiliate posts.

The WordPress REST API has no rate limit in core, but your host does. Shared hosting plans typically allow 60 to 100 requests per minute. If you send more, the server returns a 429 error and blocks further requests for a few minutes. VPS and managed WordPress hosts are more generous, often allowing 300 to 600 requests per minute.

N8n's free tier doesn't include custom code nodes, so you can't use JavaScript to transform data inside the workflow. You can work around this with Function Item nodes on the paid tier, or by preprocessing content in Google Sheets or Airtable before it reaches n8n. Alternatively, self-host n8n on a free Render or Railway instance to get code nodes without paying.

WordPress application passwords expire if you delete them from the Users screen or if you change your main account password. When that happens, the workflow fails with a 401 authentication error. You'll need to generate a new application password and update the credential in n8n. There's no warning before it happens. It helps to understand free tool lead magnet workflow before going further.

  • 5,000 executions per month on n8n free tier, enough for about 160 posts daily if you run once per post
  • 60-100 requests per minute on shared WordPress hosting; managed hosts allow 300-600
  • No custom code nodes on the free tier; use paid tier or self-host to run JavaScript transformations
  • Application passwords expire if you regenerate them or change your main WordPress password

Testing the workflow to confirm draft posts appear in WordPress

Click Execute Workflow in n8n. The Manual Trigger fires, and the HTTP Request node sends a POST to WordPress. Check the n8n execution panel on the right. If the request succeeded, you'll see a green checkmark and a response object with a post ID. If it failed, you'll see a red X and an error message.

Common errors: a 401 Unauthorized means the application password is wrong or the username doesn't match. A 404 Not Found means the REST API URL is incorrect: check for typos in /wp-json/wp/v2/posts or verify that your WordPress site hasn't disabled the REST API. A 400 Bad Request usually means the JSON body is malformed or a required field is missing.

Open your WordPress dashboard and go to Posts → All Posts. Filter by Drafts. You should see a new post with the title and content you sent from n8n. The post status shows Draft, and the author is the WordPress user whose credentials you used. If the post isn't there, go back to the n8n execution log and look at the response code.

Once the test works, replace the Manual Trigger with a real trigger. A Webhook node lets external tools like Zapier, Make, or a custom form send content to n8n. A Schedule Trigger checks an Airtable or Google Sheet at a set time and pulls in any new rows. Both are free and work on the free tier.

  1. Click Execute Workflow in n8n and wait for the execution to finish
  2. Check the execution panel for a green checkmark and a post ID in the response
  3. Open WordPress, go to Posts → All Posts, and filter by Drafts
  4. Confirm the draft post appears with the correct title and content
  5. If it failed, read the error code: 401 is credentials, 404 is URL, 400 is body format
  6. Swap the Manual Trigger for a Webhook or Schedule Trigger once testing passes

When to add retry handling and how many posts per hour is safe

n8n HTTP Request node showing status parameter
n8n HTTP Request node showing status parameter

If your workflow posts more than 60 drafts per hour, add a Wait node between requests. Shared hosting throttles at 60 to 100 requests per minute, which is 3,600 to 6,000 per hour. In practice, other site activity (visitors loading pages, plugins making API calls) eats into that budget. A safe target is 50 posts per hour on shared hosting, or one post every 72 seconds.

Add retry logic if your host occasionally returns 429 or 503 errors. In the HTTP Request node, go to Settings and enable Retry On Fail. Set the number of retries to 3 and the wait time to 5 seconds. If the first request fails, n8n waits five seconds and tries again. This handles temporary server overload without losing the post.

For higher volumes, batch posts into a single execution. Use a loop node to iterate over an array of posts and send each one with a one-second delay between iterations. This reduces the total execution count and spreads requests across time. A loop of 10 posts with one-second delays takes 10 seconds and counts as one execution, not ten.

If you're on a VPS or managed WordPress host, you can push 200 to 300 posts per hour safely. The limit depends on your server's CPU and whether you have object caching enabled. Test by running the workflow in bursts and watching for errors. If you see 429s, slow down. If not, you have headroom.

Safe posting rates by hosting type
Hosting typeRequests per minutePosts per hour (safe target)
Shared hosting60-10050
Managed WordPress300-600200-300
VPS with caching500+400+

Questions people still ask

Can I use this workflow with WordPress.com free sites?

No. WordPress.com free sites don't support the REST API or application passwords. You need at least the WordPress.com Business plan, which costs $25 per month, or a self-hosted WordPress site on any host.

What happens if I exceed the 5,000 execution limit on n8n?

The workflow stops running until the next billing cycle starts. n8n doesn't charge overage fees on the free tier. If you need more, upgrade to the Starter plan for $20 per month and 10,000 executions, or self-host n8n on a free platform like Render.

Do I need a plugin to make the WordPress REST API work?

No. The REST API is built into WordPress core since version 4.7. If your site is running WordPress 4.7 or later, the API is already enabled. Some security plugins disable it; check your plugin settings if you get a 404 error on the endpoint.

Can I set custom fields or featured images with this workflow?

Yes. Add meta for custom fields or featured_media for a featured image ID to the JSON body. The featured image requires the media file to already exist in your WordPress media library; you send its ID, not the file itself.

How do I send posts to a specific category or add tags?

Add categories as an array of category IDs and tags as an array of tag IDs to the JSON body. You can find these IDs in WordPress under Posts → Categories or Posts → Tags by hovering over a term and looking at the URL.

Sophie Adams Editor

Sophie edits My Digital Buy. Guides are written from each product's own sales page, pricing page and documentation, and say what each tool is good for and what it is not. We make Ama Affiliate Pro and Ultra ourselves and say so wherever we mention them.

More in Workflow Templates