π± Auto-generate LinkedIn content with Gemini AI: posts & images 24/7
β‘ 2,924 views Β· π± Social Media & Email Marketing
π‘ Pro Tip β If youβre pulling LinkedIn data through HTTP requests or dealing with API restrictions, thereβs a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search β you just pass a URL and get structured data back.
Description
Screenshot 20250815 at 10.14.43β―PM.png
π 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: mfarooqiqbal143@gmail.com
π Nodes Used
Google Sheets, HTTP Request, Google Drive, Google Sheets Trigger, AI Agent, Structured Output Parser
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File