Automate social media posts from website articles with Gemini AI, LinkedIn & X/Twitter
Ready for 3.0What 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).
- parameters (Edit Fields (Set)): sets 4 fields: sitemapURL, language, linkedinPostEnabled…
- fetch sitemap (HTTP Request): calls an HTTP API
- get processed articles (Google Sheets): uses Google Sheets
- parse sitemap (XML): converts between XML and JSON
- processedArticles (Aggregate): combines items into one
- get list of articles (Split Out): splits a list into separate items
- Merge: merges the data from its input branches
- normalize list of images (Code): runs custom JavaScript code
- pick random not processed article (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
…plus 11 more steps. See the full node list below.
Services it uses
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)
- Manual Trigger
n8n-nodes-base.manualTrigger - XML
n8n-nodes-base.xml - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Aggregate
n8n-nodes-base.aggregate - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - HTML
n8n-nodes-base.html - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - X (Formerly Twitter)
n8n-nodes-base.twitter - If
n8n-nodes-base.if - LinkedIn
n8n-nodes-base.linkedIn - Schedule Trigger
n8n-nodes-base.scheduleTrigger
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…