n8nflow.net logo

LinkedIn Content Machine: Email-Approved Posts with Gemini AI

by Parag Javaleโ€ขUpdated: Last update a month agoโ€ขSource: n8n.io
Loading workflow viewer...

Getting Started

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"]