Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Social Media Publishing

Social Media Publishing

Generate and Post LinkedIn Content with GPT-4 and Google Sheets

When a Google Sheets row is added, OpenAI creates a LinkedIn post for the topic, formats it, and publishes it to your LinkedIn profile.

What it does

LinkedIn AI Agent: Auto-Post Creator & Distributor Automatically generate engaging LinkedIn posts from Google Sheets topics and publish them to your profile and multiple LinkedIn groups. Perfect for: ✅ Content creators — scale your LinkedIn presence effortlessly ✅ Marketers — maintain consistent professional posting ✅ Thought leaders — amplify reach across relevant communities ⚙️ What's Used n8n Nodes: Google Sheets Trigger → AI Agent → OpenAI Chat Model → LinkedIn API → Group Distribution External Tools: Google Sheets – Store post topics and group IDs OpenAI GPT-4 – Generate engaging LinkedIn content LinkedIn API – Publish to profile and groups Custom Formatting – Ensure proper LinkedIn formatting 🔑 Setup – Credentials Needed Google Sheets OAuth2 → Access your content spreadsheet OpenAI API Key → For AI content generation LinkedIn OAuth2 → Publish posts to your profile and groups HTTP Request Auth → LinkedIn API authentication headers 📊 Google Sheets Structure Required Create a spreadsheet with two sheets: Sheet 1 - Main Posts: ID (unique identifier) LinkedIn Post Title (topic/title for AI to expand) Status (Pending/Posted) Sheet 2 - Groups: GroupIds (LinkedIn group IDs you want to post to) Note: You'll need to collect LinkedIn group IDs from groups you've joined and have posting permissions for. 🚀 Workflow Steps Monitor Google Sheets Trigger watches for new "Pending" status posts every minute Generate AI Content AI Agent creates engaging LinkedIn posts with: Compelling hooks 3-4 informative paragraphs Engagement questions Relevant hashtags and emojis Format for LinkedIn Ensures proper JSON formatting and character limits Publish to Profile Posts directly to your personal LinkedIn profile Distribute to Groups Automatically shares to all specified LinkedIn groups Update Status Marks the post as "Posted" in Google Sheets 📝 Content Generation Features AI-Powered Writing: Professional tone and structure Proper LinkedIn formatting with newlines 4-6 relevant hashtags Strategic emoji placement Under 3000 character limit Engagement-focused questions Smart Processing: JSON-safe formatting Special character handling Paragraph structure optimization 💡 Pro Tips Start with 3-5 LinkedIn groups to test posting permissions Use descriptive post titles in your spreadsheet for better AI generation Monitor group engagement rules to avoid spam flags Schedule posts by updating s

The steps

  1. Limit
  2. Structured Output Parser
  3. OpenAI Chat Model
  4. Linkedin-Post-Topic
  5. Validate-Status
  6. Linedin-Post-Creator
  7. Format-Content
  8. Linkedin-User-Detail
  9. Linkedin-post
  10. Get-Group-id
  11. Pick 1 by 1
  12. Post-Linkedin-Groups
  13. Update-Status

Similar automations