Skip to main content

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

Workflow preview

Workflow preview
100%
Automate social media posts from website articles with Gemini AI, LinkedIn & X/Twitter preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 eac...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.xml, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.filter, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Vadim.

Original n8n.io source

1.1 Workflow description

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

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 a given sitemap. It randomly selects the next article to republish, making sure that articles are not repeated. For simplicity it uses a Google spreadsheet to track the articles that have already been republished.

Requirements

  1. Existing sitemap
  2. Google Gemini API key (or other model provider's key)
  3. Google Sheets credentials
  4. LinkedIn credentials
  5. X/Twitter credentials

How to set up

  1. Adjust the schedule as needed (by default triggers daily at noon)
  2. Configure parameters in the parameters node:
  3. Configure Google Sheets credentials for get processed articles and add processed articles nodes
  4. Create a new Google spreadsheet document with "url", "status", "timestamp", "LinkedIn post" and "Twitter post" columns
  5. Specify that spreadsheet document in get processed articles node (other nodes will take it from here)
  6. Add Google Gemini API key for the model (or change to any other model of choice)
  7. Configure LinkedIn and X/Twitter credentials for publishing

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - parse sitemap

Type / Role
n8n-nodes-base.xml - xml
Config choices
Version 1

Block 3 - fetch sitemap

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - get list of articles

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 5 - filter out ToC pages

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 6 - rename fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - get processed articles

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 9 - availableArticles[]

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 10 - processedArticles

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 11 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 12 - pick random not processed article

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - extract HTML content

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 14 - fetch article

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - add metadata

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 17 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 18 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 19 - add processed article

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 20 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Create Tweet

Type / Role
n8n-nodes-base.twitter - twitter
Config choices
Version 2

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate social media posts from website articles with Gemini AI, LinkedIn & X/Twitter
Complexity advanced
Nodes 34
Categories Social Media, Multimodal AI
Author Vadim
Published 02 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9196/9196.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

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

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 eac...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.