🎬 Automated blog post generator with GPT-4, DALL-E, and Wikipedia for WordPress

⚡ 1,367 views · 🎬 Content Creation & Video

Description

WordPress AI Content Creator

Overview

Transform a few keywords into professionally written, SEO-optimized WordPress blog posts with custom featured images. This workflow leverages AI to research topics, structure content, write engaging articles, and publish them directly to your WordPress site as drafts ready for review.

What This Workflow Does

Core Features

Business Value

Prerequisites

Required Accounts & Credentials

  1. WordPress Site with REST API enabled
  2. OpenAI API access (GPT-4 and DALL-E models)
  3. WordPress Application Password or JWT authentication
  4. Public-facing n8n instance for form access (or n8n Cloud)

Technical Requirements

Setup Instructions

Step 1: WordPress Configuration

  1. Enable REST API (usually enabled by default):

    • Check that yoursite.com/wp-json/wp/v2/ returns JSON data
    • If not, contact hosting provider or install REST API plugin
  2. Create Application Password:

    • In WordPress Admin: Users > Profile
    • Scroll to “Application Passwords”
    • Add new password with name “n8n Integration”
    • Copy the generated password (save securely)
  3. Get WordPress Site URL:

    • Note your full WordPress site URL (e.g., https://yourdomain.com)

Step 2: OpenAI Configuration

  1. Obtain OpenAI API Key:

    • Visit OpenAI Platform
    • Create API key with access to:
      • GPT-4 models (for content generation)
      • DALL-E (for image creation)
  2. Add OpenAI Credentials in n8n:

    • Navigate to Settings > Credentials
    • Add “OpenAI API” credential
    • Enter your API key

Step 3: WordPress Credentials in n8n

  1. Add WordPress API Credentials:
    • In n8n: Settings > Credentials > “WordPress API”
    • URL: Your WordPress site URL
    • Username: Your WordPress username
    • Password: Application password from Step 1

Step 4: Update Workflow Settings

  1. Configure Settings Node:

    • Open the “Settings” node
    • Replace wordpress_url value with your actual WordPress URL
    • Keep other settings as default or customize as needed
  2. Update Credential References:

    • Ensure all WordPress nodes reference your WordPress credentials
    • Verify OpenAI nodes use your OpenAI credentials

Step 5: Deploy Form (Production Use)

  1. Activate Workflow:

    • Toggle workflow to “Active” status
    • Note the webhook URL from Form Trigger node
  2. Test Form Access:

    • Copy the form URL
    • Test form submission with sample data
    • Verify workflow execution completes successfully

Configuration Details

Form Customization

The form accepts three key inputs:

You can modify form fields by editing the “Form” trigger node:

AI Content Parameters

Article Structure Generation

The “Create post title and structure” node uses these parameters:

Chapter Writing

The “Create chapters text” node configuration:

Image Generation Settings

DALL-E parameters in “Generate featured image”:

Usage Instructions

Basic Workflow

  1. Access the Form:

    • Navigate to the form URL provided by the Form Trigger
    • Enter your desired keywords (e.g., “artificial intelligence, machine learning, automation”)
    • Select number of chapters (3-5 recommended for most topics)
    • Set word count (1000-2000 words typical)
  2. Submit and Wait:

    • Click submit to trigger the workflow
    • Processing takes 2-5 minutes depending on article length
    • Monitor n8n execution log for progress
  3. Review Generated Content:

    • Check WordPress admin for new draft post
    • Review article structure and content quality
    • Verify featured image is properly attached
    • Edit as needed before publishing

Advanced Usage

Custom Prompts

Modify AI prompts to change:

Bulk Content Creation

For multiple articles:

  1. Create separate form submissions for each topic
  2. Schedule workflow executions with different keywords
  3. Use CSV upload to process multiple keyword sets
  4. Implement queue system for high-volume processing

Expected Outputs

Article Structure

Generated articles include:

Content Quality Features

WordPress Integration

Troubleshooting

Common Issues

”No Article Structure Generated”

Cause: AI couldn’t create valid structure from keywords Solutions:

“Chapter Content Missing”

Cause: Individual chapter generation failed Solutions:

”WordPress Publication Failed”

Cause: Authentication or permission issues Solutions:

Cause: Image generation or upload failure Solutions:

Performance Optimization

Large Articles (2000+ words)

High-Volume Usage

Customization Examples

Different Content Types

Product Reviews

Modify prompts to include:

Technical Tutorials

Adjust structure for:

News Articles

Configure for:

Alternative Platforms

Replace WordPress with Other CMS

Different AI Models

Enhanced Features

SEO Optimization

Add nodes for:

Content Enhancement

Include additional processing:

Security Considerations

API Security

Content Moderation

WordPress Security

Content Ownership

Disclosure Requirements

Support and Maintenance

Regular Maintenance

Quality Assurance

Updates and Improvements

Cost Optimization

OpenAI Usage

Alternative Approaches

License and Attribution

This workflow template is provided under MIT license. Attribution to original creator appreciated when sharing or modifying. Generated content is subject to OpenAI’s usage policies and terms of service.

đź”— Nodes Used

HTTP Request, Wordpress, Wikipedia, n8n Form Trigger, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup