Skip to main content

Post blog articles to LinkedIn and Twitter with OpenAI captions and UploadToURL

Workflow preview

Post blog articles to LinkedIn and Twitter with OpenAI captions and UploadToURL preview
Open on n8n.io

Overview

Turn your blog into a self-driving social media machine. This workflow monitors your RSS feed, extracts new content, and uses AI to craft platform-perfect posts for LinkedIn and Twitter/X, complete with hosted images.


🎯 What This Workflow Does

This workflow automates the transition from "published on blog" to "live on social" in three primary stages:


🔁 Step 1 — RSS Trigger & Filter

  • RSS Feed Trigger: Polls your blog every 15 minutes to detect new articles
  • Validation: Ensures each item has a title and cover image before proceeding

☁️ Step 2 — Media Hosting Bridge

  • Fetch Binary: Downloads the blog’s cover image
  • UploadToURL: Uploads the image to a public CDN and returns a stable URL for social platforms

🤖 Step 3 — AI Multi-Platform Posting

  • OpenAI Captions: Generates:
  • LinkedIn → professional, long-form post
  • Twitter/X → short, punchy tweet with hashtags
  • Parallel Publishing: Posts simultaneously to both platforms
  • Success Logging: Tracks hosted image URLs and caption details

✨ Key Features

  • Built-in Deduplication: RSS ensures no duplicate posts
  • Clean Data Processing: Strips HTML for better AI output
  • Fallback Logic: Uses default caption if AI fails
  • Reliable Media Hosting: UploadToURL ensures public image access

🔧 Setup Requirements

Required Credentials

  • OpenAI: API key
  • LinkedIn: OAuth2 credentials
  • Twitter/X: OAuth1 credentials
  • UploadToURL: API key

Configuration

  • Add your blog’s RSS Feed URL
  • Adjust polling interval (default: 15 minutes)

Ready to boost your blog’s reach? Import this template and automate your social presence instantly!