AutomationMart
Home/Browse/Generate article-based posts for LinkedIn, Twitter (X), and Reddit with OpenAI
n8n

Generate article-based posts for LinkedIn, Twitter (X), and Reddit with OpenAI

n8nn8n43 modulesv1.0
OpenAILinkedIn

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 Twi

At a glance

Generate article-based posts for LinkedIn, Twitter (X), and Reddit with OpenAI is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI, LinkedIn. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, LinkedIn
Modules
43
Price
Free
Version
v1.0
Generate article-based posts for LinkedIn, Twitter (X), and Reddit with OpenAI workflow diagram

About this workflow

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 Review Loop: 1. User sees formatted post in web form 2. Options: "Regenerate" or "Continue" 3. If regenerate: Provide feedback → Agent creates new version 4. Second review form with same options 5. After 2 iterations or approval, proceeds to image selection Stage 3: Image Handling for LinkedIn 1. Image Preview: Shows extracted article image 2. User Choice: - "Yes" → Downloads image, posts with text + image - "Continue without Image" → Posts with text + article link preview 3. Auto-Publish: Posts to LinkedIn with selected format Stage 4: Twitter (X) Post Generation Parallel process (runs alongside LinkedIn): 1. Twitter Agent: - Creates tweet under 280 characters (including spaces) - Must include article URL - Uses GPT-4.1 or GPT-5 models 2. Tweet Review Form: User reviews generated tweet 3. Regeneration Loop (if requested): - User provides feedback - Re-generate Tweet Agent creates new version - Second review form 4. Auto-Tweet: Posts with article image attachment Stage 5: Reddit Post Automation Parallel process (runs alongside LinkedIn/Twitter): 1. Subreddit Selection: User picks from dropdown (r/n8n, r/mcp, r/technews) 2. Flair Retrieval: Fetches available flairs for selected subreddit via Reddit API 3. AI Flair Selection: - GPT-4o-mini analyzes article title + available flairs - Selects most appropriate flair 4. Auto-Post: Submits link post to Reddit with title and selected flair How To Use Prerequisites API Credentials Required 1. OpenAI API: GPT-4.1, GPT-5, GPT-5-mini, GPT-4o-mini access 2. Supabase: Vector database with linkedinpost table (from previous workflow) 3. LinkedIn OAuth2: Developer app with posting permissions 4. Twitter OAuth2: Developer account with tweet permissions 5. Reddit OAuth2: App credentials with submit permissions 6. Basic Auth: For form password protection Setup Steps 1. Configure Form Access - Open "On Article Submission" node - Set up basic auth credentials for form protection - Get form URL from webhook settings 2. Link Vector Database - Ensure Supabase vector store has viral LinkedIn posts (use previous workflow to populate) - Verify "LinkedIn Post Vector Store" credentials - Check "Embedding" node has OpenAI API key 3. Set Up Social Media APIs LinkedIn: - Configure "Text + Image" and "Text + Link" nodes - Update person parameter with your LinkedIn profile ID - Add OAuth2 credentials Twitter: - Configure "Tweet" and "Re-generated Tweet" nodes - Add Twitter OAuth2 credentials Reddit: - Update subreddit list in "Reddit Form" dropdown (customize to your subreddits) - Configure "Get Flair", "Reddit Post" nodes with OAuth2 - Update subreddit name in "Reddit Post" query parameters 4. Configure AI Models - Verify all OpenAI credentials in language model nodes - Models used: GPT-4.1, GPT-5, GPT-5-mini (adjust based on your access)

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Automated resume review system using OpenAI + Google Sheets

Who is this for? This workflow is ideal for: - HR teams and recruiters seeking to streamline resume screening. - Hiring managers who want quick, summarized candidate insights. - Recruitment agencies handling large volumes of applicant data. - Startups and small businesses looking to automate hiring without complex systems. - AI and automation professionals who want to build smart HR workflows using n8n and OpenAI. What problem is this workflow solving? / Use Case - Manually reviewing resumes is

Free

Scalable multi-agent chat using @mentions

Summary Engage multiple, uniquely configured AI agents (using different models via OpenRouter) in a single conversation. Trigger specific agents with @mentions or let them all respond. Easily scalable by editing simple JSON settings. Overview This workflow is for users who want to experiment with or utilize multiple AI agents with distinct personalities, instructions, and underlying models within a single chat interface, without complex setup. It solves the problem of managing and int

Free

Document-based chatbot with memory using OpenAI, Pinecone and Google Drive

Who is This For? This is for normal people or people just starting off and wanting to have a AI chatbot that can process data to use when talking to the user. How to Use You will need to have your own OpenRouter (Free) and OpenAI APIs as well as Google Drive, Pinecone, and Airtable. What Do You Want? If you want to have your AI Agent remember the user's preferences even after the session is over then you can keep the Airtable node in, if not you can delete it.

Free

Create a data analyst chatbot for real-time Google Sheets analysis with GPT-5

Who is this for? This workflow is ideal for: Business analysts and data professionals who need to quickly analyze spreadsheet data through natural conversation Small to medium businesses seeking AI-powered insights from their Google Sheets without complex dashboard setups Sales teams and marketing professionals who want instant access to customer, product, and order analytics --- What problem is this workflow solving? Traditional data analysis requires technical skills and time-consuming manu

Free

Automate restaurant customer service with WhatsApp and Llama AI chatbot

An intelligent WhatsApp-based chatbot designed for restaurants to automate customer interactions related to table bookings, menu inquiries, opening hours, services, and offers. Built using the n8n automation platform and powered by an AI language model, this solution streamlines communication, boosts efficiency, and improves customer satisfaction. Objectives Automate replies to common customer queries on WhatsApp Handle table booking requests with confirmation Provide menu item detail

Free

Filter and add new rows in Google Sheets using ChatGPT completions

Periodically filter Google Sheets rows, generate ChatGPT completions, and add new rows in the same or different sheet. Streamline data processing and enhance spreadsheet functionality.

Free

Automate Gmail organization: weekly newsletter archiving and receipt labeling

Feel like your inbox is a junk drawer you’re scared to open? 📧 Meet the Sunday Sweep Gmail Zero workflow—the soft-tech hug your Gmail has been waiting for. 🕊️ What it does (in plain English) • Every Sunday at 9 PM it quietly hunts down newsletters older than 30 days and gently archives them—no scary deletions, just a neat sweep. • Fresh receipts, invoices or order confirmations from the past 24 hours are instantly labeled 🧾 “Receipts” so you can find them at tax time without digging. • You wake

Free

Automate Birthday Wishes from Google Contacts with Multi-Platform Messaging

Who Is This For? This workflow is designed for individuals, families, and teams who want to automate birthday greetings for their contacts. It's particularly useful for those who maintain their contacts in Google and want to send personalized birthday wishes through multiple communication platforms without manual intervention. What This Workflow Does This workflow functions as an automated birthday reminder and greeting system that: 1. Checks contacts daily to identify whose

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free