Templates / Auto-generate & distribute LinkedIn posts with GPT-4 to profile & groups

Auto-generate & distribute LinkedIn posts with GPT-4 to profile & groups

Needs changes

by Yaron Been ✓ · 1,994 views · created 2025-05-25 · Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Google Sheets events. Along the way it connects OpenAI Chat Model and Google Sheets. It also calls api.linkedin.com over HTTP.

How it runs

Trigger: On Google Sheets events.

  1. Validate-Status (If): checks a condition and branches into true / false
  2. Limit: keeps the first few items
  3. Linedin-Post-Creator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  4. Format-Content (Code): runs custom JavaScript code
  5. Linkedin-User-Detail (HTTP Request): calls api.linkedin.com
  6. Linkedin-post (HTTP Request): calls api.linkedin.com (POST)
  7. Get-Group-id (Google Sheets): uses Google Sheets
  8. Pick 1 by (Loop Over Items (Split in Batches)): loops over the items in batches
  9. Update-Status (Google Sheets): update
  10. Post-Linkedin-Groups (HTTP Request): calls api.linkedin.com (POST)

Services it uses

OpenAI Chat ModelGoogle Sheets

HTTP calls to: api.linkedin.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Linedin-Post-Creator (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Linedin-Post-Creator (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

LinkedIn AI Agent: Auto-Post Creator & Multi-Group Distributor Transform simple topic ideas into engaging LinkedIn posts and automatically distribute them across your profile and multiple LinkedIn groups. This powerful n8n workflow combines AI content…

Excerpt from Yaron Been's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.