Autonomous LinkedIn Post Writer & Publisher Suite
Production-grade two-stage n8n workflow with OpenRouter LLM chaining and Telegram Human-in-the-Loop approval gate.
The Engineering Challenge
High-caliber technical leaders need consistent thought leadership presence on LinkedIn, but manual drafting consumes 45+ minutes daily. Fully autonomous "bot" posters generate bland AI slop that degrades brand reputation and violates platform community guidelines.
The Architectural Solution
Engineered a modular, deterministic 19-node n8n suite. Stage 1 executes a weekday cron trigger prompting for topic cues. Stage 2 triggers via Telegram webhook, chains dual OpenRouter LLM calls (Hooks Agent → Deep Body Drafter), formats an interactive Telegram draft, enforces a strict Human-in-the-Loop (HITL) gate with [Publish] / [Regenerate] inline buttons, and delivers directly to LinkedIn REST API v2.
Proactive prompt sent to private Telegram chat requesting outline or research links.
Captures incoming text, links, or inline button callback interactions in real time.
Validates authorized chat ID, parses event payload, and drops duplicate callback requests.
Analyzes user topic against persona config to craft 3 punchy, high-retention opening hooks.
Expands the verified hook into an authoritative, formatted LinkedIn post with CTA & tags.
Presents full preview with [🚀 Publish to LinkedIn] and [🔄 Regenerate] interactive buttons.
Direct POST to /rest/posts publishing to personal profile or company page.
Appends post metadata to persistent ledger and returns live LinkedIn post URL to Telegram.