n8n Workflow

Auto-Summarize Blog Posts to Social Media

Automated cross-platform blog sharing using an n8n workflow. Fetches posts from RSS, summarizes with local LLM, and publishes to Facebook, LinkedIn, X (Twitter), and Instagram automatically. Overview Aspect Details Platform Self-hosted n8n LLM Gemma via Ollama (local GPU) Social APIs Postiz Scheduling Cron trigger (10 min) Hardware RTX 3090 Ti for inference How It Works Fetch - RSS feed polling for new blog posts Summarize - Ollama (Gemma) generates platform-specific summaries Extract - Parse HTML for images, download and resize Generate - AI creates relevant hashtags Publish - Postiz API posts to all platforms Dedupe - Hash-based tracking prevents duplicates Architecture ┌─────────────────────────────────────────────────────────────────┐ │ Blogspot RSS Feed │ └───────────────────────────┬─────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────────┐ │ n8n Workflow │ │ ┌──────────────────────────────────────────────────────────┐ │ │ │ Cron Trigger (10 min) │ │ │ └──────────────────────────┬───────────────────────────────┘ │ │ │ │ │ ┌──────────────────────────▼───────────────────────────────┐ │ │ │ RSS Feed Node (Fetch Latest) │ │ │ └──────────────────────────┬───────────────────────────────┘ │ │ │ │ │ ┌──────────────────────────▼───────────────────────────────┐ │ │ │ Hash Check (Duplicate Prevention) │ │ │ └──────────────────────────┬───────────────────────────────┘ │ │ │ │ │ ┌──────────────────────────▼───────────────────────────────┐ │ │ │ Ollama Node (Gemma LLM) │ │ │ │ • Summarize (platform char limits) │ │ │ │ • Generate hashtags │ │ │ └──────────────────────────┬───────────────────────────────┘ │ │ │ │ │ ┌──────────────────────────▼───────────────────────────────┐ │ │ │ Image Extraction & Processing │ │ │ │ • HTML parsing │ │ │ │ • Download & resize │ │ │ └──────────────────────────┬───────────────────────────────┘ │ │ │ │ │ ┌──────────────────────────▼───────────────────────────────┐ │ │ │ Postiz API │ │ │ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │ │ │ │Facebook │ │LinkedIn │ │ X │ │Instagram│ │ │ │ │ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │ │ │ └──────────────────────────────────────────────────────────┘ │ └─────────────────────────────────────────────────────────────────┘ Key Features Smart summarization within character limits using adaptive LLM prompts Platform-specific formatting (280 chars for X, longer for LinkedIn) AI-generated hashtags added dynamically Duplicate prevention via link hashing with file-based tracking Modular design allowing new feeds or social networks Fully offline operation on local GPU Challenges Solved Dynamic text length control with calculated maxChars Workarounds for Postiz API quirks (especially Instagram JSON issues) Reliable parsing of flexible LLM outputs Optimized for full offline operation on local GPU (RTX 3090 Ti) Fixed n8n JSON import/export bugs for community sharing Tech Stack Component Technology Automation Self-hosted n8n with community nodes AI Gemma via Ollama Social API Postiz Content RSS feed parsing Images HTML parsing, HTTP download, resize Deduplication JavaScript hash with file tracking Scheduling Cron trigger Results A fully automated, privacy-friendly cross-posting system that runs without manual input. Now available as a template on n8n.io for community use. ...

October 1, 2025 · 3 min · Kyriakos Papadopoulos