Auto-generate & distribute LinkedIn posts with GPT-4 to profile & groups
Needs changesWhat 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.
- Validate-Status (If): checks a condition and branches into true / false
- Limit: keeps the first few items
- Linedin-Post-Creator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Format-Content (Code): runs custom JavaScript code
- Linkedin-User-Detail (HTTP Request): calls api.linkedin.com
- Linkedin-post (HTTP Request): calls api.linkedin.com (POST)
- Get-Group-id (Google Sheets): uses Google Sheets
- Pick 1 by (Loop Over Items (Split in Batches)): loops over the items in batches
- Update-Status (Google Sheets): update
- Post-Linkedin-Groups (HTTP Request): calls api.linkedin.com (POST)
Services it uses
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.0 | Replace 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)
- Limit
n8n-nodes-base.limit - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
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…