Autonomous News Site - Complete Setup Summary
Your fully autonomous AI-powered news website is now configured for direct N8N β Azure deployment! π
Architecture Overview
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β N8N Workflow β
β (Self-hosted or Cloud - runs every 4 hours) β
ββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββ
β Azure Hosting β
β (Live Site) β
βββββββββββββββββββ
β
Site live at https://kbhaskar.tech
Simplified Architecture:
- β Everything happens in N8N
- β Files managed locally
- β Direct deployment to Azure
- β No GitHub needed
Whatβs Been Implemented
1. β N8N Direct Deployment Workflow
- Workflow JSON: .github/n8n-workflow-direct-azure.json
- Setup Guide: SETUP-GUIDE.md
- Complete automation: AI β Create File β Jekyll Build β Azure Deploy
- No external dependencies!
2. β Azure Static Web Apps Deployment
- Method: Direct deployment via Azure Static Web Apps CLI from N8N
- Build: Jekyll build happens in N8N
- Configuration: staticwebapp.config.json with optimized caching
3. β SEO & Google News Optimization
- News Sitemap: news-sitemap.xml - last 48 hours, up to 1000 articles
- Robots.txt: robots.txt - optimized for Googlebot-News
- Schema Markup: NewsArticle JSON-LD in _includes/schema-jsonld.html
- Config: Enhanced _config.yml with Google News settings
4. β Bilingual Support (English/Hindi)
- All posts support dual languages
- Automatic language toggle
- SEO optimized for both languages
5. β Daily Automation Schedule
- 6 posts per day at: 00:00, 04:00, 08:00, 12:00, 16:00, 20:00 IST
- Configured via N8N cron:
0 0,4,8,12,16,20 * * *
Quick Start Guide
Step 1: Set Up N8N (30 minutes)
Option A: Self-Hosted (Recommended - Free)
# Using Docker
docker run -d \
--name n8n \
-p 5678:5678 \
-v ~/.n8n:/home/node/.n8n \
-e TZ=Asia/Kolkata \
docker.n8n.io/n8nio/n8n
# Install system dependencies
sudo apt-get install -y ruby-full build-essential git
sudo gem install jekyll bundler
npm install -g @azure/static-web-apps-cli
Option B: N8N Cloud
- Sign up at https://n8n.io
- Upgrade to Starter plan ($20/month for unlimited executions)
Step 2: Set Up Azure (15 minutes)
Follow AZURE-DEPLOYMENT-GUIDE.md:
- Create Azure Static Web App in Azure Portal
- Copy deployment token (will need for N8N)
- Configure custom domain
kbhaskar.tech(optional) - Update DNS CNAME records
- Donβt enable GitHub integration (N8N deploys directly)
Step 3: Configure N8N Workflow (20 minutes)
Follow N8N-INTEGRATION.md:
- Import Workflow:
- Download n8n-workflow-direct-azure.json
- Import into N8N
- Set Environment Variables:
GITHUB_TOKEN=ghp_your_token_here # For git operations AZURE_DEPLOYMENT_TOKEN=your_azure_token AZURE_APP_NAME=kb-tech-news OPENAI_API_KEY=sk-... # Or Gemini API key - Configure Credentials:
- OpenAI API or Google Gemini
- No GitHub credentials needed (using token)
- Activate Workflow:
- Toggle workflow to βActiveβ
- Schedule runs every 4 hours
Step 4: Test the Workflow (10 minutes)
- Manual Test:
- In N8N, click βExecute Workflowβ
- Watch each node execute
- Check for errors
- Verify Results:
# Check GitHub repo git clone https://github.com/kundan007b/bhaskar-daily-ai-news.git ls -lt _posts/ | head -1 # Check live site curl -I https://kbhaskar.tech - Check Article:
- Visit https://kbhaskar.tech
- Verify new post appears
- Check SEO meta tags (View Source)
Step 5: Submit to Google News (Optional)
- Google Search Console:
- Add property:
https://kbhaskar.tech - Verify ownership
- Submit sitemap:
https://kbhaskar.tech/news-sitemap.xml
- Add property:
- Google News Publisher Center:
- Submit after 7-10 days of consistent posting
Architecture Flow
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β N8N Workflow (Every 4 hours: 00:00, 04:00, 08:00, etc.) β
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββ
β 1. AI Content Generation β
β (OpenAI/Gemini/Claude) β
β Output: Article JSON β
βββββββββββββ¬ββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββ
β 2. Build Post File β
β (Code Node) β
β Create frontmatter + slug β
βββββββββββββ¬ββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββ
β 3. Git Operations β
β Clone β Add β Commit β Pushβ
β To: GitHub (version control)β
βββββββββββββ¬ββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββ
β 4. Build Jekyll Site β
β bundle exec jekyll build β
β Output: _site/ folder β
βββββββββββββ¬ββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββ
β 5. Deploy to Azure β
β swa deploy _site β
β Direct to Azure (no GitHub)β
βββββββββββββ¬ββββββββββββββββββββ
β
βΌ
β
Live Site Updated!
(2-3 minutes total)
β
βΌ
βββββββββββββββββββββββββββββββββ
β Google News Indexing β
β (Automatic via sitemap) β
βββββββββββββββββββββββββββββββββ
Time Breakdown:
- AI generation: 30-60 seconds
- Git operations: 10-20 seconds
- Jekyll build: 30-60 seconds
- Azure deploy: 30-60 seconds
- Total: 2-3 minutes per article
Article Schema (for N8N AI Prompt)
{
"title": "SEO-optimized title (50-60 chars)",
"title_hi": "Hindi translation",
"excerpt": "Meta description (150-160 chars)",
"excerpt_hi": "Hindi excerpt",
"content": "Full Markdown article (1000-1500 words)",
"content_hi": "Hindi translation",
"category": "ai|technology|startups|cybersecurity|gadgets|software|cloud|data-science",
"tags": "comma, separated, tags",
"keywords": "seo, keywords, for, google",
"author": "rajesh-kumar|ananya-singh",
"image": "https://example.com/image.jpg (optional)"
}
SEO Best Practices (Auto-Implemented)
β On-Page SEO
- Optimized title tags (50-60 chars)
- Meta descriptions (150-160 chars)
- Header hierarchy (H1, H2, H3)
- Internal linking
- Image alt tags
- Mobile responsive
β Technical SEO
- XML sitemaps (regular + news)
- Robots.txt optimized
- Canonical URLs
- Schema markup (NewsArticle)
- Fast load times (Azure CDN)
- SSL/HTTPS enabled
β Google News Compliance
- NewsArticle structured data
- 48-hour news sitemap
- Author bylines
- Publication dates
- Unique, original content
- No paywalls
Content Guidelines for AI
Article Structure
## Introduction
Brief overview (100-150 words)
## Background/Context
What led to this news (150-200 words)
## Main Content
### Key Point 1
Details and implications
### Key Point 2
More details
### Key Point 3
Additional information
## Impact & Analysis
What this means (100-150 words)
## Key Takeaways
- Bullet point 1
- Bullet point 2
- Bullet point 3
## Conclusion
Final thoughts (50-100 words)
SEO Optimization
- Word count: 1000-1500 words (optimal for Google)
- Keyword density: 1-2% (natural placement)
- LSI keywords: Related terms throughout
- Links: 2-3 relevant internal/external links
- Images: Descriptive file names and alt text
Tone & Style
- Professional, journalistic
- Fact-based, well-researched
- No promotional language
- Cite sources when applicable
- India-focused perspective
Monitoring & Maintenance
Daily Checks
# Check recent posts
ls -lt _posts/ | head -6
# Check GitHub Actions status
# Go to: https://github.com/kundan007b/bhaskar-daily-ai-news/actions
# Verify site is live
curl -I https://kbhaskar.tech
Weekly Tasks
- Review Google Search Console (indexing, errors)
- Monitor Azure bandwidth usage
- Check N8N workflow success rate
- Verify news sitemap updates
Monthly Maintenance
- Update Ruby gems:
bundle update - Rotate GitHub token (if 90-day expiry)
- Review SEO performance
- Analyze top-performing articles
- Backup repository
Cost Breakdown
Minimal Setup ($5-10/month)
| Component | Cost | Notes |
|---|---|---|
| N8N (self-hosted) | $5-10/month | DigitalOcean/Hetzner VPS (1 vCPU, 2GB RAM) |
| AI API (Gemini) | $0/month | Free tier: 60 requests/min |
| GitHub | $0/month | Free for public repos |
| Azure Static Web Apps | $0/month | Free tier: 100 GB bandwidth |
| Domain (optional) | $12/year | ~$1/month |
| TOTAL | $5-10/month | Β |
Premium Setup ($25-35/month)
| Component | Cost | Notes |
|---|---|---|
| N8N Cloud | $20/month | Starter plan (unlimited executions) |
| AI API (GPT-4) | $15-20/month | 180 articles Γ $0.10 each |
| GitHub | $0/month | Free |
| Azure | $0/month | Free tier |
| TOTAL | $35-40/month | Β |
Recommended Setup ($5/month)
- β Self-hosted N8N on cheap VPS
- β Google Gemini API (free tier)
- β Free GitHub + Azure
- Total: Just VPS cost!
Performance Metrics
Expected Performance
- Build time: 30-60 seconds (Jekyll)
- Deploy time: 30-60 seconds (Azure)
- Total: 2-3 minutes from N8N trigger to live
- Page load: <2 seconds (optimized caching)
SEO Timeline
- Week 1-2: Google indexing begins
- Week 3-4: Rankings start appearing
- Month 2-3: Consistent traffic growth
- Month 6+: Established authority
Troubleshooting
Issue: Posts not being created
Solution: Check GitHub Actions logs, verify GitHub token
Issue: Azure deployment fails
Solution: Check _config.yml URL, verify Azure token
Issue: SEO not working
Solution: Verify meta tags, submit sitemap to GSC
Issue: Google News not indexing
Solution: Ensure NewsArticle schema, check news-sitemap.xml
Next Steps (Optional Enhancements)
Content Quality
- Add plagiarism check (Copyscape API)
- Grammar validation (Grammarly API)
- Fact-checking prompts in AI
- Readability score check
Performance
- Image optimization (WebP conversion)
- Lazy loading for images
- CDN for assets
- Service worker (PWA)
Analytics
- Google Analytics 4
- Hotjar heatmaps
- Search Console integration
- Custom dashboard
Monetization
- Google AdSense integration
- Affiliate links
- Sponsored content
- Newsletter subscriptions
Support & Resources
Documentation
Community
Contact
- Repository: https://github.com/kundan007b/bhaskar-daily-ai-news
- Issues: Create GitHub issue for bugs/features
π Youβre All Set!
Your autonomous news website is ready to:
- Generate 6 AI articles daily
- Auto-publish via N8N webhooks
- Deploy to Azure instantly
- Optimize for Google News
- Rank in search results
Good luck with your automated news empire! ππ°