What This Workflow Does
This n8n workflow automates the complete process of generating AI-powered blog content and publishing it directly to WordPress. It integrates with Google Sheets for topic management, uses AI to create article content, fetches relevant images from the Pexels API, and automatically publishes formatted posts to your WordPress site.
How It Works
The workflow begins by accepting topic input through a form trigger. Users can generate new blog topics using AI, which are then stored in Google Sheets to track which posts have already been created. The workflow leverages Google Gemini AI to generate complete article content based on selected topics. Once content is generated, it queries the Pexels API to find relevant featured images. The workflow formats the content with proper HTML structure and automatically publishes it to WordPress. Users can choose to continue generating more topics or end the workflow through a decision node.
Use Cases
- Content marketing teams looking to scale blog production while maintaining consistency and brand voice
- SEO-focused websites that need regular content updates to improve search rankings and organic traffic
- News aggregators or niche blogs that cover trending topics and need rapid content deployment
- E-commerce sites requiring product-related blog content to drive organic search visibility
- Digital agencies managing multiple client blogs that need automated content publishing workflows
Nodes Used
- Form Trigger: Initiates the workflow and accepts user input
- Google Sheets: Stores and tracks generated topics and publishing status
- Google Gemini AI: Generates article content based on topics
- HTTP Request: Connects to the Pexels API for image retrieval
- WordPress: Publishes formatted content directly to WordPress sites
- Set: Configures variables and data structures throughout the workflow
- If: Provides conditional logic for decision points
- Structured Output Parser: Formats AI-generated content into usable data
- Split Out: Distributes data across multiple workflow paths
- Sticky Note: Provides documentation and workflow annotations
- Agent: Coordinates complex multi-step AI operations
Prerequisites
- Active WordPress site with API access enabled and authentication credentials
- Google Account with access to Google Sheets for topic and tracking management
- Pexels API key for accessing free stock photography
- Google Gemini API access for AI content generation capabilities
- n8n account with workflow creation and execution permissions
- Basic understanding of API keys and WordPress user permissions
Difficulty Level
Intermediate. This workflow requires configuration of multiple external APIs and services including WordPress, Google Sheets, Pexels, and Google Gemini. Users should be comfortable managing API keys, understanding basic workflow logic, and configuring authentication settings. No coding is required, but familiarity with n8n’s interface and API concepts is helpful.
This workflow template is shared under the n8n fair-code license. Free to use and modify.
Leave a Reply