📱 Repurpose LinkedIn posts into X tweets with Apify, Claude AI and Airtable

23 views · 📱 Social Media & Email Marketing

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Automatically scrape LinkedIn posts with Apify, transform them into optimized tweets and threads using Claude AI, store them in Airtable for approval, and publish to X on a daily schedule.

Who is this for

This workflow is designed for content creators, social media managers, and personal brand builders who want to maximize their content reach by repurposing LinkedIn posts for X (Twitter) without manual rewriting.

What it does

This workflow automates the entire LinkedIn-to-X content repurposing pipeline:

  1. Weekly scraping: Uses Apify to scrape your recent LinkedIn posts based on configurable parameters stored in Airtable
  2. Carousel extraction: If a post contains a carousel/PDF, OpenAI extracts the slide content via OCR
  3. AI transformation: Claude (via OpenRouter) converts each LinkedIn post into two X-optimized variations: a standalone tweet and a thread (3-7 tweets)
  4. Content storage: Saves both the original posts and generated tweets to Airtable with a “Pending” status for review
  5. Scheduled publishing: Daily at 12:30, searches for ‘Approved’ tweets whose publication date has passed and posts them to X
  6. Thread handling: Properly chains thread tweets as replies to maintain the conversation structure

Requirements

How to set up

  1. Create an Airtable base with three tables: Config, LK Posts, and X Tweets (see table configurations below)
  2. Configure the Config table with your LinkedIn profile URL, scraping limits, and tweet scheduling delay
  3. Configure the ‘TWEET NOW’ button in Airtable with the following URL formula: "https://your-n8-server-url/webhook/post-tweet?id="&RECORD_ID()
  4. Connect your credentials: Apify, Airtable, OpenAI, OpenRouter, and X/Twitter
  5. Set the weekly and daily schedule triggers according to your timezone
  6. Activate the workflow

Config Table

Field NameTypeDescription
NameStringConfiguration parameter name
TypeSingle SelectData type indicator: String, Integer
String ValueStringValue when Type is “String”
Integer ValueNumberValue when Type is “Integer”

Configuration parameters to create:

LK Posts Table

Field NameTypeDescription
LK Post IDStringLinkedIn post unique identifier
StatusSingle SelectPost processing status: Scrapped, Converted, Tweeted
DateDateTimeOriginal LinkedIn post publication date
ContentLong TextLinkedIn post text content
Post URLURLLink to the original LinkedIn post
Post Img URLURLURL of post image (if any)
Post Doc URLURLURL of carousel/PDF document (if any)
Carousel ContentLong TextExtracted text content from carousel slides

X Tweets Table

Field NameTypeDescription
Unique IDFormulaAuto-generated unique identifier
LK Post IDStringReference to the source LinkedIn post
StatusSingle SelectTweet status: Pending, Approved, Rejected, Tweeted
VariationSingle SelectTweet format: Standalone, Thread
Tweet NbNumberTweet position in thread (0 for standalone, 1-7 for thread tweets)
ContentLong TextThe tweet text content
Publication DateDateTimeScheduled date/time to publish the tweet
Post NowButtonTriggers webhook to post immediately

How to customize

🔗 Nodes Used

Airtable, HTTP Request, Webhook, X (Formerly Twitter), Schedule Trigger, Basic LLM Chain

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup