Back to Catalog

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

PunitPunit
1155 views
2/3/2026
Official Page

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

  • Keyword-to-Article Generation: Converts simple keywords into comprehensive, well-structured articles
  • Intelligent Content Planning: Uses AI to create logical chapter structures and content flow
  • Wikipedia Integration: Researches factual information to ensure content accuracy and depth
  • Multi-Chapter Writing: Generates coherent, contextually-aware content across multiple sections
  • Custom Image Creation: Generates relevant featured images using DALL-E based on article content
  • SEO Optimization: Creates titles, subtitles, and content optimized for search engines
  • WordPress Integration: Automatically publishes articles as drafts with proper formatting and featured images

Business Value

  • Content Scale: Produce high-quality blog posts in minutes instead of hours
  • Research Efficiency: Automatically incorporates factual information from reliable sources
  • Consistency: Maintains professional tone and structure across all generated content
  • SEO Benefits: Creates search-engine friendly content with proper HTML formatting
  • Cost Savings: Reduces need for external content creation services

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

  • WordPress REST API v2 enabled (standard on most WordPress sites)
  • WordPress user account with publishing permissions
  • n8n instance with LangChain nodes package installed

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:

  • Keywords: Comma-separated topics for article generation
  • Number of Chapters: 1-10 chapters for content structure
  • Max Word Count: Total article length control

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

  • Add additional input fields (category, author, publish date)
  • Change field types (dropdown, checkboxes, file upload)
  • Modify validation rules and requirements

AI Content Parameters

Article Structure Generation

The "Create post title and structure" node uses these parameters:

  • Model: GPT-4-1106-preview for enhanced reasoning
  • Max Tokens: 2048 for comprehensive structure planning
  • JSON Output: Structured data for subsequent processing

Chapter Writing

The "Create chapters text" node configuration:

  • Model: GPT-4-0125-preview for consistent writing quality
  • Context Awareness: Each chapter knows about preceding/following content
  • Word Count Distribution: Automatically calculates per-chapter length
  • Coherence Checking: Ensures smooth transitions between sections

Image Generation Settings

DALL-E parameters in "Generate featured image":

  • Size: 1792x1024 (optimized for WordPress featured images)
  • Style: Natural (photographic look)
  • Quality: HD (higher quality output)
  • Prompt Enhancement: Adds photography keywords for better results

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:

  • Writing Style: Formal, casual, technical, conversational
  • Target Audience: Beginners, experts, general public
  • Content Focus: How-to guides, opinion pieces, news analysis
  • SEO Strategy: Keyword density, meta descriptions, heading structure

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:

  • SEO-Optimized Title: Compelling, keyword-rich headline
  • Descriptive Subtitle: Supporting context for the main title
  • Introduction: ~60 words introducing the topic
  • Chapter Sections: Logical flow with HTML formatting
  • Conclusions: ~60 words summarizing key points
  • Featured Image: Custom DALL-E generated visual

Content Quality Features

  • Factual Accuracy: Wikipedia integration ensures reliable information
  • Proper HTML Formatting: Bold, italic, and list elements for readability
  • Logical Flow: Chapters build upon each other coherently
  • SEO Elements: Optimized for search engine visibility
  • Professional Tone: Consistent, engaging writing style

WordPress Integration

  • Draft Status: Articles saved as drafts for review
  • Featured Image: Automatically uploaded and assigned
  • Proper Formatting: HTML preserved in WordPress editor
  • Metadata: Title and content properly structured

Troubleshooting

Common Issues

"No Article Structure Generated"

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

  • Use more specific, descriptive keywords
  • Reduce number of chapters requested
  • Check OpenAI API quotas and usage
  • Verify keywords are in English (default language)

"Chapter Content Missing"

Cause: Individual chapter generation failed Solutions:

  • Increase max tokens in chapter generation node
  • Simplify chapter prompts
  • Check for API rate limiting
  • Verify internet connectivity for Wikipedia tool

"WordPress Publication Failed"

Cause: Authentication or permission issues Solutions:

  • Verify WordPress credentials are correct
  • Check WordPress user has publishing permissions
  • Ensure WordPress REST API is accessible
  • Test WordPress URL accessibility

"Featured Image Not Attached"

Cause: Image generation or upload failure Solutions:

  • Check DALL-E API access and quotas
  • Verify image upload permissions in WordPress
  • Review image file size and format compatibility
  • Test manual image upload to WordPress

Performance Optimization

Large Articles (2000+ words)

  • Increase timeout values in HTTP request nodes
  • Consider splitting very long articles into multiple posts
  • Implement progress tracking for user feedback
  • Add retry mechanisms for failed API calls

High-Volume Usage

  • Implement queue system for multiple simultaneous requests
  • Add rate limiting to respect OpenAI API limits
  • Consider batch processing for efficiency
  • Monitor and optimize token usage

Customization Examples

Different Content Types

Product Reviews

Modify prompts to include:

  • Pros and cons sections
  • Feature comparisons
  • Rating systems
  • Purchase recommendations

Technical Tutorials

Adjust structure for:

  • Step-by-step instructions
  • Code examples
  • Prerequisites sections
  • Troubleshooting guides

News Articles

Configure for:

  • Who, what, when, where, why structure
  • Quote integration
  • Fact checking emphasis
  • Timeline organization

Alternative Platforms

Replace WordPress with Other CMS

  • Ghost: Use Ghost API for publishing
  • Webflow: Integrate with Webflow CMS
  • Strapi: Connect to headless CMS
  • Medium: Publish to Medium platform

Different AI Models

  • Claude: Replace OpenAI with Anthropic's Claude
  • Gemini: Use Google's Gemini for content generation
  • Local Models: Integrate with self-hosted AI models
  • Multiple Models: Use different models for different tasks

Enhanced Features

SEO Optimization

Add nodes for:

  • Meta Description Generation: AI-created descriptions
  • Tag Suggestions: Relevant WordPress tags
  • Internal Linking: Suggest related content links
  • Schema Markup: Add structured data

Content Enhancement

Include additional processing:

  • Plagiarism Checking: Verify content originality
  • Readability Analysis: Assess content accessibility
  • Fact Verification: Multiple source confirmation
  • Image Optimization: Compress and optimize images

Security Considerations

API Security

  • Store all credentials securely in n8n credential system
  • Use environment variables for sensitive configuration
  • Regularly rotate API keys and passwords
  • Monitor API usage for unusual activity

Content Moderation

  • Review generated content before publishing
  • Implement content filtering for inappropriate material
  • Consider legal implications of auto-generated content
  • Maintain editorial oversight and fact-checking

WordPress Security

  • Use application passwords instead of main account password
  • Limit WordPress user permissions to minimum required
  • Keep WordPress and plugins updated
  • Monitor for unauthorized access attempts

Legal and Ethical Considerations

Content Ownership

  • Understand OpenAI's terms regarding generated content
  • Consider copyright implications for Wikipedia-sourced information
  • Implement proper attribution where required
  • Review content licensing requirements

Disclosure Requirements

  • Consider disclosing AI-generated content to readers
  • Follow platform-specific guidelines for automated content
  • Ensure compliance with advertising and content standards
  • Respect intellectual property rights

Support and Maintenance

Regular Maintenance

  • Monitor OpenAI API usage and costs
  • Update AI prompts based on output quality
  • Review and update Wikipedia search strategies
  • Optimize workflow performance based on usage patterns

Quality Assurance

  • Regularly review generated content quality
  • Implement feedback loops for improvement
  • Test workflow with diverse keyword sets
  • Monitor WordPress site performance impact

Updates and Improvements

  • Stay updated with OpenAI model improvements
  • Monitor n8n platform updates for new features
  • Engage with community for workflow enhancements
  • Document custom modifications for future reference

Cost Optimization

OpenAI Usage

  • Monitor token consumption patterns
  • Optimize prompts for efficiency
  • Consider using different models for different tasks
  • Implement usage limits and budgets

Alternative Approaches

  • Use local AI models for cost reduction
  • Implement caching for repeated topics
  • Batch similar requests for efficiency
  • Consider hybrid human-AI content creation

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.

n8n Automated Blog Post Generator

This n8n workflow automates the process of generating blog posts, leveraging AI for content creation and external data sources for enrichment, and then publishing them to WordPress.

What it does

This workflow is designed to streamline blog post creation by integrating various services to generate comprehensive and engaging content.

  1. Triggers on form submission: The workflow starts when an n8n form is submitted, likely providing the initial prompt or topic for the blog post.
  2. Generates content with OpenAI: It uses OpenAI to generate the core content of the blog post based on the input from the form.
  3. Enriches content with Wikipedia: It queries Wikipedia to gather additional information related to the generated content, ensuring factual accuracy and depth.
  4. Processes and refines content: The Code and Edit Fields (Set) nodes are used to manipulate and refine the data, likely structuring the blog post, extracting key information, or preparing it for publishing.
  5. Publishes to WordPress: Finally, the workflow publishes the fully generated and enriched blog post to a WordPress site.
  6. Responds to webhook: It sends a response back to the trigger, indicating the completion of the workflow.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance to import and execute the workflow.
  • OpenAI API Key: An API key for OpenAI to generate content.
  • WordPress Account: Access to a WordPress site with appropriate credentials for publishing posts.
  • Wikipedia Integration: The n8n Wikipedia tool node requires no separate API key but relies on its built-in functionality.

Setup/Usage

  1. Import the workflow: Download the provided JSON file and import it into your n8n instance.
  2. Configure Credentials:
    • OpenAI: Set up your OpenAI API credential within the OpenAI node.
    • WordPress: Configure your WordPress credential in the Wordpress node (e.g., API key, username/password, or application password).
  3. Configure the n8n Form Trigger:
    • Access the On form submission node and configure the form fields as needed for your blog post prompts.
    • Activate the workflow.
  4. Run the workflow: Submit the n8n form to trigger the automated blog post generation and publishing process.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax

Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions

Daniel NkenchoBy Daniel Nkencho
601

Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review

This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.

gotoHumanBy gotoHuman
353