Templates / LinkedIn post automation with AI (GPT-4o) generation & Slack approval

LinkedIn post automation with AI (GPT-4o) generation & Slack approval

Needs changes

by Amit Mehta ✓ · 2,926 views · created 2025-05-29 · 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 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).

  1. Set Topics and Images for Processing (Code): runs custom JavaScript code
  2. Validate-Status (If): checks a condition and branches into true / false
  3. Format-Response (Code): runs custom JavaScript code
  4. Limit: keeps the first few items
  5. Validate-Response (If): checks a condition and branches into true / false
  6. Edit Fields (Edit Fields (Set)): sets or maps fields
  7. Set-Final-Message (Edit Fields (Set)): sets or maps fields
  8. Linedin-Post-Creator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  9. Linkedin-User-Detail (HTTP Request): calls an HTTP API
  10. Format-Content (Code): runs custom JavaScript code

…plus 10 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle SheetsSlack

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 (13)

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…

Excerpt from Amit Mehta'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.