Skip to content
KB

KB Tech News

Tech journalism for India β€” bilingual

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:

What’s Been Implemented

1. βœ… N8N Direct Deployment Workflow

2. βœ… Azure Static Web Apps Deployment

3. βœ… SEO & Google News Optimization

4. βœ… Bilingual Support (English/Hindi)

5. βœ… Daily Automation Schedule

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

Step 2: Set Up Azure (15 minutes)

Follow AZURE-DEPLOYMENT-GUIDE.md:

  1. Create Azure Static Web App in Azure Portal
  2. Copy deployment token (will need for N8N)
  3. Configure custom domain kbhaskar.tech (optional)
  4. Update DNS CNAME records
  5. Don’t enable GitHub integration (N8N deploys directly)

Step 3: Configure N8N Workflow (20 minutes)

Follow N8N-INTEGRATION.md:

  1. Import Workflow:
  2. 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
    
  3. Configure Credentials:
    • OpenAI API or Google Gemini
    • No GitHub credentials needed (using token)
  4. Activate Workflow:
    • Toggle workflow to β€œActive”
    • Schedule runs every 4 hours

Step 4: Test the Workflow (10 minutes)

  1. Manual Test:
    • In N8N, click β€œExecute Workflow”
    • Watch each node execute
    • Check for errors
  2. 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
    
  3. Check Article:
    • Visit https://kbhaskar.tech
    • Verify new post appears
    • Check SEO meta tags (View Source)

Step 5: Submit to Google News (Optional)

  1. Google Search Console:
    • Add property: https://kbhaskar.tech
    • Verify ownership
    • Submit sitemap: https://kbhaskar.tech/news-sitemap.xml
  2. 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:

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

βœ… Technical SEO

βœ… Google News Compliance

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

Tone & Style

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

Monthly Maintenance

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 Β 

Performance Metrics

Expected Performance

SEO Timeline

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

Performance

Analytics

Monetization

Support & Resources

Documentation

Community

Contact


πŸŽ‰ You’re All Set!

Your autonomous news website is ready to:

  1. Generate 6 AI articles daily
  2. Auto-publish via N8N webhooks
  3. Deploy to Azure instantly
  4. Optimize for Google News
  5. Rank in search results

Good luck with your automated news empire! πŸš€πŸ“°