LinkedIn post automation with AI (GPT-4o) generation & Slack approval
Needs changesWhat this workflow does
This AI workflow has 24 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Google Sheets and Slack.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).
- Set Topics and Images for Processing (Code): runs custom JavaScript code
- Validate-Status (If): checks a condition and branches into true / false
- Format-Response (Code): runs custom JavaScript code
- Limit: keeps the first few items
- Validate-Response (If): checks a condition and branches into true / false
- Edit Fields (Edit Fields (Set)): sets or maps fields
- Set-Final-Message (Edit Fields (Set)): sets or maps fields
- Linedin-Post-Creator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Linkedin-User-Detail (HTTP Request): calls an HTTP API
- Format-Content (Code): runs custom JavaScript code
…plus 10 more steps. See the full node list below.
Services it uses
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 (13)
- Limit
n8n-nodes-base.limit - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Webhook
n8n-nodes-base.webhook - Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack - Edit Fields (Set)
n8n-nodes-base.set - 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 Post Automation with AI Generation (Gpt-4o) & Slack Approval How it Works This workflow automates the creation and publishing of LinkedIn posts with AI-generated content and human approval via Slack, using Google Sheets, OpenAI (GPT-4), Slack…