Skip to main content

Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn

Workflow preview

Workflow preview
100%
Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn preview
Open on n8n.io

Important notice

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

1. Workflow Overview

LinkedIn Content Machine – AI Powered Post Generator & Scheduler for X and LinkedIn How it works: This end to end workflow automates your personal or brand content strategy by: Using Google G...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.twitter, n8n-nodes-base.linkedin, n8n-nodes-base.merge, n8n-nodes-base.form

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn
Workflow name
Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn

💼 LinkedIn Content Machine – AI-Powered Post Generator & Scheduler for X and LinkedIn

How it works:
This end-to-end workflow automates your personal or brand content strategy by:

  • 🧠 Using Google Gemini or OpenAI to generate engaging LinkedIn/X content from a title or trending posts.
  • 🗓️ Posting directly to LinkedIn and X (formerly Twitter).
  • 📊 Pulling high-performing LinkedIn posts to inspire new ideas.
  • ✍️ Saving AI-generated drafts to Google Sheets for review.
  • 🔔 Notifying your team on Slack when drafts are ready.

Steps to set up:

  1. Add your API keys for Google Gemini or OpenAI.
  2. Set up your LinkedIn, X (Twitter), Google Sheets, and Slack credentials.
  3. Customize prompt logic or post filters if needed.
  4. Schedule the idea generation module or trigger it manually.
  5. Start generating and posting consistent, high-quality content with zero manual effort!

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 - Google Gemini Chat Model

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

Block 2 - Receive Post Title

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

Block 3 - Generate AI Content

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

Block 4 - Format AI Output

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

Block 5 - Post to X

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

Block 6 - Post to LinkedIn

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

Block 7 - Append Linkedin And X Publishing Responses

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

Block 8 - Show Confirmation

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

Block 9 - Schedule Trigger

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

Block 10 - Fetch LinkedIn Posts

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

Block 11 - Filter High Engagement Posts

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

Block 12 - Generate Post Ideas (OpenAI)

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

Block 13 - Save Drafts to Google Sheets

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

Block 14 - Notify Reviewer (Slack)

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

3. Summary Table

Workflow Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn
Complexity intermediate
Nodes 14
Categories Social Media, Multimodal AI
Author Nurseflow
Published 12 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5913/5913.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 Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn do?

LinkedIn Content Machine – AI Powered Post Generator & Scheduler for X and LinkedIn How it works: This end to end workflow automates your personal or brand content strategy by: Using Google G...

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.