Templates / Automate social media posts from website articles with Gemini AI, LinkedIn & X/Twitter

Automate social media posts from website articles with Gemini AI, LinkedIn & X/Twitter

Ready for 3.0

by Vadim ✓ · 1,041 views · created 2025-10-02 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 25 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets, Google Gemini Chat Model, X (Formerly Twitter) and LinkedIn.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. parameters (Edit Fields (Set)): sets 4 fields: sitemapURL, language, linkedinPostEnabled…
  2. fetch sitemap (HTTP Request): calls an HTTP API
  3. get processed articles (Google Sheets): uses Google Sheets
  4. parse sitemap (XML): converts between XML and JSON
  5. processedArticles (Aggregate): combines items into one
  6. get list of articles (Split Out): splits a list into separate items
  7. Merge: merges the data from its input branches
  8. normalize list of images (Code): runs custom JavaScript code
  9. pick random not processed article (Code): runs custom JavaScript code
  10. Filter: keeps only the items that match a condition

…plus 11 more steps. See the full node list below.

Services it uses

Google SheetsGoogle Gemini Chat ModelX (Formerly Twitter)LinkedIn

Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (18)

From the author

What it does This workflow automates content syndication and posting to LinkedIn and X/Twitter. It takes existing long-form articles and generates from them engaging social posts optimized for each platform. The workflow takes links to existing articles from…

Excerpt from Vadim's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.