Auto-Generate LinkedIn Content with Gemini AI: Posts & Images 24/7

Go to Workflow
404 views
Built by Muhammad Farooq Iqbal Muhammad Farooq Iqbal
Created on June 05, 2026

Description


🔄 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
Google Gemini API for content and image generation
LinkedIn API credentials for posting
Google Sheets for content management
Google Drive for image storage
n8n instance for workflow execution

Content Management
Add new post titles to your Google Sheet
Set status to "pending"
Automation automatically processes and publishes
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]

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Google Drive
n8n-nodes-base.googleDrive
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured