Automated Tech News Blog Post Generation for WordPress using Gemini - n8n Workflow

Use this powerful n8n workflow to automatically fetch top tech news via NewsAPI, leverage Google Gemini for summarizing and writing engaging blog content, and seamlessly publish the result to WordPress daily. An essential n8n templates starter.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Content managers looking to automate daily blog scheduling.

  • SEO specialists needing fresh, automatically generated news content.

  • Developers seeking advanced examples of using the n8n node ecosystem with AI (Google Gemini).

  • Users new to n8n templates who want a robust, real-world automation example.

Overview

Maintaining a daily news blog requires constant research and writing—a repetitive task perfect for automation. This specific n8n workflow solves this problem by creating a zero-touch content pipeline. Every morning, the n8n trigger starts the process, fetching current tech headlines via NewsAPI. It then intelligently uses Google Gemini (via the Langchain agent n8n node) to synthesize the raw article data into a full, engaging, 600-800 word blog post, complete with a unique title. Finally, the workflow parses the structured AI output and pushes the complete post to WordPress, ready for immediate publication. This powerful n8n workflow demonstrates the synergistic power of scheduling, external APIs, and generative AI, greatly reducing manual content production time.

How it Works

The entire process is controlled by a structured execution sequence:


  1. Scheduled Start: The automation begins daily at 8:00 AM using the n8n trigger node (Daily 8AM Trigger).

  2. Data Acquisition: The Fetch Tech News n8n node performs an HTTP Request to NewsAPI, retrieving the top 10 technology headlines.

  3. Pre-processing and Splitting: The Split Articles n8n node (a Code node) cleans the received data, filters out articles marked as [Removed], and limits the subsequent processing to the top 5 valid articles, creating a separate item for each.

  4. Item Iteration: The Loop Over Items n8n node ensures that the subsequent AI steps are executed individually for every one of the 5 filtered articles.

  5. AI Generation: The AI News Summarizer n8n node (Langchain Agent) passes the article's title, description, and content to the connected Google Gemini model. It instructs the AI to generate a full blog post, critically demanding the output be returned in a strict JSON format containing title and content keys.

  6. Output Parsing: The Title and Content n8n node (another Code node) strips the raw AI response of common markdown delimiters (like ```json) and parses the clean JSON string. This step is crucial for reliably extracting the structured data needed for the final publishing step.

  7. Publishing: The Publish to WordPress n8n node uses the extracted title and content variables to create a new WordPress post, setting the status to 'publish' immediately and applying standard tags. After publishing, the workflow iterates to the next article item until all five are processed.

Installation Guide

To deploy this robust n8n workflow, follow these steps:


  1. Import: Copy the provided n8n workflow JSON and paste it directly into your n8n canvas.

  2. API Keys: Set up the necessary credentials in your n8n instance:

NewsAPI: Modify the URL in the Fetch Tech News n8n node by replacing yourkey with your actual NewsAPI key.
Google Gemini: Configure the API credentials for the Google Gemini Chat Model n8n node connection.
* WordPress: Set up credentials in the Publish to WordPress n8n node, including your site URL, username, and application password.

  1. Customization: Review the Daily 8AM Trigger to adjust the schedule if needed, and modify the prompt in the AI News Summarizer to match your desired blog writing style. This n8n templates implementation is highly configurable.

Node Details

Daily 8AM Trigger (n8n trigger):
Function: Starts the n8n workflow automatically.
Key Configuration: Set to run using the cron expression 0 8 (Daily at 8:00 AM).
Fetch Tech News (HTTP Request n8n node):
Function: Fetches current technology headlines from NewsAPI.
Key Configuration: Queries https://newsapi.org/v2/top-headlines for US technology articles, limited to 10 results. Requires API key setup.
Split Articles (Code n8n node):
Function: Filters and prepares the raw API output, limiting processing to the top 5 valid articles.
Key Configuration: JavaScript logic handles filtering null content and using .slice(0, 5).
AI News Summarizer (Langchain Agent n8n node):
Function: Acts as the AI writer, generating a detailed blog post using the input article details.
Key Configuration: Strict system message and user prompt requiring the output to be JSON with title and content fields.
Google Gemini Chat Model:
Function: Provides the Large Language Model inference capabilities for the AI Agent.
Key Configuration: Requires valid Google Gemini API credentials.
Title and Content (Code n8n node):
Function: Safely extracts the title and content from the markdown-wrapped JSON returned by the AI.
Key Configuration: Uses regex (.replace) to clean the output before JSON.parse.
Publish to WordPress (WordPress n8n node):
Function: Sends the final, AI-generated content to the WordPress site.
Key Configuration: Dynamically sets the title and content using expressions (={{ $json.title }}), and sets the status to publish with relevant tags.

Related n8n Workflows

Free

Nodes: 8 Nodes
Updated: December 26 2025
View all
Created by
David Olusola
David Olusola

I help ambitious businesses eliminate operational bottlenecks and scale faster with AI automation. My clients typically see 40-60% efficiency gains within 90 days. Currently accepting 3 new projects this quarter - [email protected]

Featured*