Generate article-based posts for LinkedIn, Twitter (X), and Reddit with OpenAI
Overview AI-powered workflow that transforms any article URL into platform-optimized social media posts for LinkedIn, Twitter (X), and Reddit. Uses Mozilla Readability for content extraction, multi-agent AI with RAG f...
Template notes
Overview AI-powered workflow that transforms any article URL into platform-optimized social media posts for LinkedIn, Twitter (X), and Reddit. Uses Mozilla Readability for content extraction, multi-agent AI with RAG from viral LinkedIn post database, and interactive review forms for content refinement before auto-publishing.
Key Capabilities: - Extracts article content: title, author, text, images, metadata - Generates LinkedIn posts using 3-agent system with viral pattern matching - Creates Twitter threads under 280 characters with article links - Auto-posts to Reddit with AI-selected flairs - Interactive review/regeneration workflow with feedback loops - Auto-publishes with images or links to all platforms
How It Works
Stage 1: Article Content Extraction 1. Form Submission: User enters article URL (with basic auth protection) 2. URL Validation: Checks if valid URL format 3. Article Scraping: HTTP request fetches HTML content 4. Readability Parsing: Mozilla Readability extracts: - Clean article text (removes ads, navigation, etc.) - Title, author, excerpt - Word count, site name - Featured image (from og:image, twitter:image, or first img tag) 5. Error Handling: Returns user-friendly error if scraping fails
Stage 2: LinkedIn Post Generation (3-Agent System)
Agent 1: LinkedIn Post Strategist - Input: Extracted article content (title, text, author, excerpt) - RAG Process: Queries Supabase vector database for similar viral LinkedIn posts - Analysis: Identifies patterns, hooks, formatting, engagement triggers - Output: Strategic insights and viral content patterns
Agent 2: LinkedIn Post Generator - Input: Article content + strategist insights - Process: Creates post using viral patterns from database - Rule: Must include article URL in post - Output: Draft LinkedIn post
Agent 3: LinkedIn Post Formatter - Input: Generated post - Process: - Removes extraneous content - Applies Sans Serif Bold Unicode for emphasis (๐ฏ๐ผ๐น๐ฑ ๐๐ฒ๐ ๐) - Removes markdown/em dashes - Ensures clean formatting - Output: Polished, ready-to-post LinkedIn content