Animated data flow diagram

AI WordPress Content & Image Generation Agent

Version: 1.0.0 | Last Updated: 2025-05-16

Integrates with:

OpenAI WordPress

Overview

Overview\nThis AI Agent transforms a few keywords into a fully drafted WordPress blog post, ready for your review. It automates the entire content creation pipeline, from structuring the article and writing SEO-optimized text using OpenAI's GPT-4 models, to generating a unique featured image with DALL-E. It's designed to save you hours, letting you focus on strategy while your content production scales effortlessly.\n\n### Key Features\n* Keyword-Driven Content Generation: Simply provide keywords, desired chapter count, and max word count via a form.\n* Advanced AI Writing: Leverages OpenAI's GPT-4 models (specifically gpt-4-1106-preview for structure and gpt-4-0125-preview for chapter text) to generate a title, subtitle, introduction, detailed chapters, and a conclusion.\n* AI Featured Image Creation: Automatically generates a prompt for DALL-E and creates a relevant, high-quality featured image (1792x1024, natural style, HD quality) for your post.\n* Direct WordPress Integration: Posts the generated article as a draft directly to your WordPress site, uploads the featured image, and assigns it to the post.\n* Structured & SEO-Friendly: Produces well-organized content with HTML formatting (bold, italic, lists) and aims for SEO-friendliness by utilizing Wikipedia for information grounding.\n* End-to-End Automation: From form submission to a drafted WordPress post with a featured image, the entire process is automated.\n* Customizable Output: Control the number of chapters and target word count for the article.

Use Cases

  • B2C E-commerce: Rapidly generate blog posts for new products, how-to guides, or industry trends to boost SEO and organic traffic.
  • B2B SaaS: Create insightful articles, feature announcements, or initial drafts for case studies from core concepts, significantly reducing content creation time.
  • Solopreneurs & Founders: Quickly populate a new blog with relevant content to build online presence and authority without extensive writing effort.
  • Marketing Agencies: Scale content production for multiple clients by using this agent as a powerful first-draft generator, enhancing team productivity.
  • Heads of Automation: Implement an automated content pipeline to consistently publish fresh material and maintain audience engagement.

Prerequisites

  • An n8n instance (Cloud or self-hosted).
  • OpenAI API Key with access to GPT-4 models (e.g., gpt-4-1106-preview, gpt-4-0125-preview) and DALL-E image generation capabilities.
  • WordPress site credentials that n8n can use (e.g., Application Password for REST API access).
  • The base URL of your WordPress installation.

Setup Instructions

  1. Download the n8n workflow JSON file.
  2. Import the workflow into your n8n instance.
  3. Configure Credentials:
    • In the 'Create post title and structure', 'Create chapters text', and 'Generate featured image' OpenAI nodes, select or create your OpenAI API credentials.
    • In the 'Post on Wordpress', 'Upload media', and 'Set image ID for the post' nodes, select or create your WordPress credentials.
  4. Configure Settings Node:
    • Open the 'Settings' node.
    • Update the wordpress_url variable with the full base URL of your WordPress site (e.g., https://yourblog.com/).
  5. Verify WordPress Endpoint URLs:
    • Open the 'Upload media' (HTTP Request) node. Ensure its URL parameter correctly points to your WordPress media endpoint. It should ideally use the wordpress_url variable like this: {{ $('Settings').item.json.wordpress_url }}wp-json/wp/v2/media. Adjust if it's hardcoded to a demo URL.
    • Open the 'Set image ID for the post' (HTTP Request) node. Ensure its URL parameter correctly points to your WordPress posts endpoint. It should ideally use the wordpress_url variable and the dynamic post ID like this: {{ $('Settings').item.json.wordpress_url }}wp-json/wp/v2/posts/{{ $('Post on Wordpress').item.json.id }}. Adjust if necessary.
  6. Customize Prompts (Optional):
    • Review the prompts within the 'Create post title and structure' and 'Create chapters text' OpenAI nodes to fine-tune the AI's output style, tone, or specific instructions.
  7. Activate Workflow: Save any changes and activate the workflow.
  8. Trigger the Agent: Access the URL provided by the 'Form' trigger node (e.g., your-n8n-instance-url/webhook/create-wordpress-post) in your browser. Fill in the keywords, number of chapters, and max word count to generate your first AI-powered WordPress post.

Tags:

AI AgentContent GenerationWordPressOpenAIDALL-ESEOBlogging AutomationMarketing AutomationProductivity

Want your own unique AI agent?

Talk to us - we know how to build custom AI agents for your specific needs.

Schedule a Consultation