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
Automate WordPress posts with n8n and Airtable

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

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.


Automate WordPress posts with n8n and Airtable

Visit through Desktop to Interact with the Workflow.

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