Skip to main content

Auto-generate LinkedIn content with Gemini AI: posts & images 24/7

Workflow preview

Workflow preview
100%
Auto-generate LinkedIn content with Gemini AI: posts & images 24/7 preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How It Works LinkedIn Post with Image Automation Overview This n8n automation creates and publishes LinkedIn posts with AI generated images...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googlesheetstrigger, n8n-nodes-base.if, n8n-nodes-base.limit, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.code, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.outputparserstructured

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Auto-generate LinkedIn content with Gemini AI: posts & images 24/7
Workflow name
Auto-generate LinkedIn content with Gemini AI: posts & images 24/7

๐Ÿ”„ How It Works - LinkedIn Post with Image Automation

Overview

This n8n automation creates and publishes LinkedIn posts with AI-generated images automatically. It's a complete end-to-end solution that transforms simple post titles into engaging social media content.

Step-by-Step Process

1. Content Trigger & Management
  • Google Sheets Trigger monitors a spreadsheet for new post titles
  • Only processes posts with "pending" status
  • Limits to one post at a time for controlled execution
2. AI Content Generation
  • AI Agent uses Google Gemini to create engaging LinkedIn posts
  • Takes the post title and generates:
    • Compelling opening hooks
    • 3-4 informative paragraphs
    • Engagement questions
    • Relevant hashtags (4-6)
    • Appropriate emojis
  • Output is structured and formatted for LinkedIn
3. AI Image Creation
  • Google Gemini Image Generation creates custom visuals
  • Uses the AI-generated post content as context
  • Generates professional images featuring:
    • Modern workspace with coding elements
    • Flutter development themes
    • Professional, LinkedIn-appropriate aesthetics
    • 16:9 aspect ratio, high resolution
  • No text or captions in the generated image
4. Image Processing & Storage
  • Generated images are uploaded to Google Drive
  • Files are shared with public access permissions
  • Image URLs are stored back in the spreadsheet for tracking
5. LinkedIn Publishing
  • LinkedIn API integration handles the posting process:
    • Registers image uploads
    • Uploads images to LinkedIn's servers
    • Creates posts with text + image
    • Publishes to your LinkedIn profile
  • Updates spreadsheet status to "posted"

Technical Architecture

Google Sheets โ†’ AI Content โ†’ AI Image โ†’ Google Drive โ†’ LinkedIn API โ†’ Status Update
     โ†“              โ†“          โ†“          โ†“           โ†“           โ†“
  Trigger      Gemini LLM   Gemini    File Upload  Posting    Tracking
              Content Gen   Image Gen

Key Features

โœ… Fully Automated - Runs continuously without manual intervention โœ… AI-Powered - Both content and images generated by AI โœ… Professional Quality - LinkedIn-optimized formatting and visuals โœ… Real-time Tracking - Monitor status and performance โœ… Scalable - Handle multiple posts and campaigns

How to Use

Setup Requirements
  1. Google Gemini API for content and image generation
  2. LinkedIn API credentials for posting
  3. Google Sheets for content management
  4. Google Drive for image storage
  5. n8n instance for workflow execution
Content Management
  1. Add new post titles to your Google Sheet
  2. Set status to "pending"
  3. Automation automatically processes and publishes
  4. Status updates to "posted" upon completion
Customization Options
  • Modify AI prompts for different content styles
  • Adjust image generation parameters
  • Change posting frequency and timing
  • Add multiple LinkedIn accounts
  • Integrate with other content sources

Use Cases

๏ฟฝ๏ฟฝ Perfect for:

  • Startups wanting consistent LinkedIn presence
  • Marketing teams overwhelmed with content creation
  • HR departments building employer branding
  • Agencies managing multiple client accounts
  • Solo entrepreneurs needing professional social media presence

Benefits

โฐ Time Savings: 20+ hours per week for content teams ๐Ÿ“ˆ Consistency: Daily, professional posts without gaps ๐ŸŽจ Quality: AI-optimized content and visuals ๐Ÿ“Š Scalability: Handle unlimited content volume ๐Ÿ’ฐ Cost Effective: Reduce manual content creation costs

๐Ÿ”„ The automation runs continuously, ensuring your LinkedIn presence stays active and engaging 24/7!

For inquiries: [email protected]

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 - Sticky Note7

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

Block 2 - Google Sheets Trigger

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

Block 3 - If

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

Block 4 - Limit

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

Block 5 - AI Agent

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

Block 6 - Code

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

Block 7 - HTTP Request

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

Block 8 - Register Image Upload

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

Block 9 - Upload Image to LinkedIn

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

Block 10 - HTTP Request2

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

Block 11 - Structured Output Parser

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

Block 12 - Update row in sheet

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

Block 13 - Google Gemini Chat Model

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

Block 14 - Generate Image with Gemini

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

Block 15 - Upload file

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

Block 16 - Share file

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

Block 17 - Update row in sheet1

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

Block 18 - Download file

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

3. Summary Table

Workflow Auto-generate LinkedIn content with Gemini AI: posts & images 24/7
Complexity advanced
Nodes 18
Categories Social Media, Multimodal AI
Author Muhammad Farooq Iqbal
Published 15 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7448/7448.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 Auto-generate LinkedIn content with Gemini AI: posts & images 24/7 do?

How It Works LinkedIn Post with Image Automation Overview This n8n automation creates and publishes LinkedIn posts with AI generated images...

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.