Auto-Generate Tech News Blog Posts with NewsAPI & Google Gemini to WordPress
Last edited 58 days ago
WordPress Daily News Digest Generator
Overview:
This automation automatically fetches trending tech news every morning, uses AI to create engaging blog posts from each article, and publishes them directly to your WordPress site.
What it does:
- Fetches top 10 US technology news stories every day at 8 AM via NewsAPI
- Splits articles into individual items for processing
- Processes each article through a loop system
- AI creates expanded, engaging blog posts (600-800 words) from each news article
- Parses AI response to extract clean titles and content
- Publishes individual blog posts to WordPress automatically
Setup Required:
-
NewsAPI Configuration
- Get free API key from newsapi.org (1,000 requests/day free)
- Replace
YOUR_API_KEYin the HTTP Request URL with your actual key - Customize country/category parameters in URL if needed
-
WordPress Connection
- Configure WordPress credentials in the "Publish to WordPress" node
- Enter your WordPress site URL, username, and password/app password
-
AI Configuration
- Set up Google Gemini API credentials
- Connect the Gemini model to the "AI News Summarizer" node
-
Customization Options
- Publishing Schedule: Modify schedule trigger (default: daily 8 AM)
- News Sources: Change country, category, or pageSize in NewsAPI URL
- Content Style: Adjust AI system message for different writing tones
- Post Status: Change from "publish" to "draft" for manual review
-
Testing
- Run workflow manually to test all connections
- Verify news articles are fetched correctly
- Check that blog posts appear properly on your WordPress site
Features:
- Automatic daily content creation
- AI-generated unique titles and expanded content
- Loop processing for multiple articles per day
- Duplicate content filtering (removes incomplete articles)
- SEO-optimized blog post formatting
- Automatic tagging and categorization
Customization:
- Change news categories (technology, business, science, etc.)
- Adjust posting frequency (hourly, twice daily, etc.)
- Modify AI prompts for different writing styles
- Add custom categories and tags
- Change article limits (currently 5 articles max)
Need Help?
For n8n coaching or one-on-one consultation
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!





