Skip to main content

LinkedIn content machine: Email-approved posts with Gemini AI

Workflow preview

Workflow preview
100%
LinkedIn content machine: Email-approved posts with Gemini AI preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Turn a simple email workflow into a LinkedIn content machine . Generate post ideas, draft full posts, and auto publish to LinkedIn all controlled by replying to emails. Purpose Automate your Lin...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.code, n8n-nodes-base.gmail, n8n-nodes-base.gmailtrigger, 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 Parag Javale.

Original n8n.io source

1.1 Workflow description

Title
LinkedIn content machine: Email-approved posts with Gemini AI
Workflow name
LinkedIn content machine: Email-approved posts with Gemini AI

Turn a simple email workflow into a LinkedIn content machine. Generate post ideas, draft full posts, and auto-publish to LinkedIn all controlled by replying to emails.


📌 Purpose

Automate your LinkedIn posting pipeline using AI + Email approvals.

  • Generate 10 scroll-stopping post ideas tailored to your niche & audience.
  • Approve your favorite by replying to the email with a number.
  • Receive 3 AI-written drafts for the chosen idea.
  • Pick your favorite draft via email reply.
  • The selected post gets auto-published to LinkedIn ✅.
  • All steps are logged in Google Sheets.

🔗 Apps Used

  • Google Gemini → generates ideas & drafts
  • Gmail → email-based approval workflow
  • Google Sheets → tracks ideas, drafts, and published posts
  • LinkedIn API → posts directly to your company or personal account

✨ Highlights

  • 📬 Email-based approval → no dashboards, just reply with a number
  • 📝 10 AI-generated content ideas + 3 full drafts per topic
  • 🔄 End-to-end tracking in Google Sheets (ideas → drafts → published)
  • ⚡ Auto-posting directly to LinkedIn
  • ✅ Final confirmation email with preview

👤 Best For

  • Startup founders
  • Agencies managing multiple clients’ LinkedIn
  • Solopreneurs & creators who want consistent posting

🛠️ Workflow Overview


flowchart TB
    A["Manual Trigger"] --> B["AI Agent - Generate 10 Ideas"]
    B --> C["Code - Parse JSON + Correlation ID"]
    C --> D["Google Sheets - Append Ideas"]
    D --> E["Gmail - Send Ideas Email"]
    E --> F["Gmail Trigger - Await Reply"]
    F --> G["Code1 - Extract Reply Number"]
    G --> H["Google Sheets - Fetch Row"]
    H --> I{"Switch Stage"}
    I -- Ideas --> J["AI Agent - Generate 3 Drafts"]
    J --> K["Code3 - Parse Drafts"]
    K --> L["Google Sheets - Update Drafts"]
    L --> M["Gmail - Send Drafts Email"]
    I -- Drafts --> N["Code4 - Select Final Draft"]
    N --> O["LinkedIn - Publish Post"]
    O --> P["Google Sheets - Update Posted"]
    P --> Q["Gmail - Send Confirmation"]

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 - Edit Fields

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

Block 3 - AI Agent

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

Block 4 - Google Gemini Chat Model

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

Block 5 - Code

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

Block 6 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 7 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.3

Block 8 - Code1

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

Block 9 - Code2

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

Block 10 - AI Agent1

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

Block 11 - Google Gemini Chat Model1

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

Block 12 - Append row in sheet

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

Block 13 - Switch

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

Block 14 - Code3

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

Block 15 - Update row in sheet

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

Block 16 - Send a message1

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 17 - Code4

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

Block 18 - Create a post

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

Block 19 - Update row in sheet1

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

Block 20 - Send a message2

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 21 - Sticky Note

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

Block 22 - Sticky Note1

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

Block 23 - Sticky Note2

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

Block 24 - Sticky Note3

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

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

3. Summary Table

Workflow LinkedIn content machine: Email-approved posts with Gemini AI
Complexity advanced
Nodes 43
Categories Social Media, AI Chatbot
Author Parag Javale
Published 01 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8136/8136.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 LinkedIn content machine: Email-approved posts with Gemini AI do?

Turn a simple email workflow into a LinkedIn content machine . Generate post ideas, draft full posts, and auto publish to LinkedIn all controlled by replying to emails. Purpose Automate your Lin...

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, AI Chatbot use case.