Automate WordPress Blog Posting with n8n and Airtable

Struggling to manually post AI-generated blog content from Airtable to WordPress, including setting featured images? This n8n automation simplifies the entire process by fetching, formatting, posting, and updating blog posts efficiently, saving hours of manual work.
wordpress
airtable
httpRequest
+5
Workflow Identifier: 2059
NODES in Use: scheduleTrigger, airtable, filter, set, markdown, wordpress, httpRequest, stickyNote

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 helps move AI-created blog posts from Airtable to WordPress automatically.
It fixes the problem of copying markdown by hand and uploading images.
The final result is draft blog posts in WordPress with matching photos and Airtable updated.

The workflow gets posts marked “To Post” in Airtable, checks if they have content, changes markdown to HTML, posts on WordPress as drafts, finds a picture from Pexels, uploads it, sets it as featured image, and marks the post “Posted” in Airtable.


Inputs, Processing Steps, and Output

Inputs

  • Airtable records: Blog posts with fields for Keyword, Title, Blog Content in markdown, and Status.
  • WordPress access: API credentials for posting blogs and uploading media.
  • Pexels API key: To find images related to blog topics.

Processing Steps

  1. Trigger workflow on schedule.
  2. Search for Airtable posts where Status is “To Post”.
  3. Filter out posts without blog content.
  4. Use Set node to clean and rename fields.
  5. Convert blog content markdown to HTML.
  6. Create a draft post on WordPress with the title and HTML content.
  7. Call Pexels API to get an image matching the Keyword.
  8. Download the image file.
  9. Upload the image to WordPress media library.
  10. Update the WordPress post to set this image as featured image.
  11. Update the Airtable record to Status “Posted”.

Output

New draft posts on WordPress with featured images.
Airtable shows these posts as “Posted” preventing repeats.


Who should use this workflow

This workflow is for content managers or marketers who use Airtable to store AI-generated blogs.
It suits those publishing on WordPress sites who want to save time and avoid manual work.

It helps prevent mistakes from copying markdown wrong or forgetting to upload images.
Anyone wanting a simple scheduled post pipeline without deep coding can use it.


Tools and Services Used

  • n8n: Workflow automation tool to run the sequence.
  • Airtable API: Stores blogs and manages status.
  • WordPress REST API: Receives posts and media uploads.
  • Pexels API: Provides free images based on keywords.

Beginner step-by-step: How to use this workflow in n8n

Importing and Setup

  1. Download the workflow file from this page using the Download button.
  2. In n8n editor, click top-left menu, pick Import from File, then select saved file.
  3. Open imported workflow and add all needed credentials for Airtable, WordPress, Pexels API.
  4. Review nodes that use specific IDs or table names. Change them if your Airtable base or WordPress setup is different.

Testing

  1. Run the workflow manually once to check it fetches data, posts draft, uploads image, and updates Airtable.

Activating for Production

  1. After testing passes, turn on the workflow with the toggle switch.
  2. Set the schedule node timing to your preferred frequency.
  3. This will run the process automatically, posting new blogs regularly.

If using self hosting n8n, see self-host n8n for deployment help.


Customization Ideas

  1. Change WordPress post status from draft to publish to post instantly.
  2. Add support for multiple images per post by fetching more from Pexels.
  3. Switch image source to other APIs like Unsplash by replacing HTTP requests.
  4. Include categories or tags dynamically in WordPress post from Airtable fields.
  5. Modify Airtable search limit to control post batch size per run.

Common Edge Cases and Failures

WordPress 401 errors: Happens when API credentials lack permission.
Fix by ensuring application password is enabled and credentials up-to-date.

Image upload problems: Usually caused by wrong headers or missing binary data.
Check content-type and content-disposition headers and mapping of binary image data.

Airtable update fails: Occurs if record IDs don’t match or mapping is wrong.
Confirm record IDs are passed correctly between nodes.


Pre-Production Checklist

  • Confirm Airtable fields and that “To Post” filter returns records.
  • Test WordPress API with a manual post.
  • Validate Pexels API key by making test image search request.
  • Run the entire workflow once manually with debug on.
  • Backup Airtable before running workflow live.

Summary

✓ Saves 5+ hours weekly by automating blog posting process.
✓ Avoids manual copy-paste errors in markdown to HTML.
✓ Automatically finds, uploads, and sets featured images on WordPress.
✓ Keeps Airtable status updated, preventing reposts.
→ Delivers draft blog posts ready for review or publication smoothly.


Frequently Asked Questions

Add Airtable, WordPress, and Pexels API credentials. Update base/table names or IDs if different. Test once before activating.
It uses Airtable API to set the ‘Status’ field to ‘Posted’ for each published record preventing repeats.
Incorrect or missing WordPress API credentials or no permission. Enable application password and verify access.
By default no, but it can be customized to fetch and upload multiple images by repeating Pexels API calls and uploads.

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