# Automated LinkedIn Content Pipeline in n8n

> A three-part n8n workflow for scraping X, drafting posts, and publishing.

This blueprint outlines a complete end-to-end LinkedIn content automation built inside n8n. It scrapes relevant tweets from X daily, uses an AI agent to draft posts for Telegram approval, and automatically schedules and publishes approved drafts to LinkedIn. It is designed to run automatically using free tiers and self-hosted tools.

## How it works

Flow 1 — Scrape X: 5AM Everyday (schedule trigger) → Get AI Tweets (GET https://twitter241.p.rapid... via RapidAPI) → Clean Tweets (code) → Loop Tweets → Find Existing Tweet (read Google Sheet) → Switch (Rules: New / Exists) → if New: Wait → Save New Tweet (append to Sheet); if Exists: 'Already Exists, Ignore' → All Done, End.

Flow 2 — Generate AI Posts: 6AM Daily (schedule) → Google Sheets (read) → Limit → AI Agent (Tools Agent, with sub-nodes: 4.1 model, Chat Mode Memory, Structured Output Parser) → Loop Posts → when Done: Aggregate → Telegram (sendMessage message) — sends drafts to Telegram for approval — and Wait1 → Google Sheets1 (update Sheet).

Flow 3 — Post approved content: Updated News (rowUpdate trigger) → Filter Approved → Max 20 → Get Post Timings (code) → Loop Approved Posts → Wait for Posting → Set Posting (update Sheet) → Download Image → Post LinkedIn (create post) → Set Posted (update Sheet).

## What it is for

- Scrape niche tweets from X daily into a Google Sheet
- Generate structured LinkedIn drafts from curated tweets using AI
- Review and approve social media drafts directly via Telegram
- Schedule and publish approved posts automatically to LinkedIn

## Key points

- Flow 1: Scheduled RapidAPI tweet scraping with deduplication against Google Sheets
- Flow 2: AI agent drafting using chat memory and structured output parsers
- Telegram notification step for human review and draft approval
- Flow 3: Google Sheets row trigger to pick up approved posts and compute timing offsets
- Automated media handling and LinkedIn publishing node

## Pricing

Free to build and run using self-hosted n8n and API free tiers

## Details

- Type: Tip
- Category: [Marketing & Sales](https://xiry.app/topics/marketing-sales.md)
- Topic: [Social Media Automation](https://xiry.app/topics/marketing-sales/social-media-automation.md)
- Open source: no
- Platforms: Self-hosted, Web
- For: Content creators, solopreneurs, and automation builders using n8n
- Alternative to: Buffer, Taplio, Make, Zapier
- Tags: n8n, linkedin, automation, twitter, telegram, ai agents

## Why it was saved

- [@architjn, 29 May 2025](https://x.com/architjn/status/1927987058787684714): Complete blueprint of a real automation the author actually uses, and he states it is completely free to execute — a rare full-architecture reveal rather than a teaser.

## Compare

- [Alternatives to Buffer](https://xiry.app/alternatives/buffer.md)
- [Alternatives to Make](https://xiry.app/alternatives/make.md)
- [Alternatives to Zapier](https://xiry.app/alternatives/zapier.md)

## Related

- [Repurpose.io](https://xiry.app/resources/repurpose-io): Automate cross-platform publishing and content repurposing for videos and images (Web app, Paid)
- [Blotato](https://xiry.app/resources/blotato): Unified social media publishing API and MCP server for AI agents. (Web app, Paid)
- [Automated AI Instagram Publishing Workflow](https://xiry.app/resources/automated-ai-instagram-publishing-workflow): A Make.com automation pipeline to scrape news and publish AI Instagram posts. (Tip, Freemium)
- [Automated Faceless Shorts/Reels Pipeline](https://xiry.app/resources/automated-faceless-shorts-reels-pipeline): A workflow to turn YouTube transcripts into automated vertical quote videos. (Tip, Freemium)
- [Autovirality](https://xiry.app/resources/autovirality): AI social media automation platform that remixes proven viral content formats (Web app, Freemium)
- [I Built an AI Social Media System](https://xiry.app/resources/i-built-an-ai-social-media-system): Make.com tutorial for automated multi-platform social media publishing (Article or course, Free)

Updated 11 October 2026. Page: https://xiry.app/resources/automated-linkedin-content-pipeline-in-n8n

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
