Templates / Generate LinkedIn posts with GPT-4, preview on WhatsApp, and auto-publish

Generate LinkedIn posts with GPT-4, preview on WhatsApp, and auto-publish

Needs changes

by papcy ✓ · 589 views · created 2025-05-27 · Social Media, Multimodal AI

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

What this workflow does

This AI workflow has 13 nodes and runs on a schedule (every day). Along the way it connects OpenAI Chat Model, WhatsApp Business Cloud and LinkedIn.

How it runs

Trigger: On a schedule (every day).

  1. Prepare Search Topics (Function): runs custom JavaScript (legacy Function node)
  2. AI Content Generator (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Model
  3. Process AI Content (Function): runs custom JavaScript (legacy Function node)
  4. Send Content Preview (WhatsApp Business Cloud): uses WhatsApp Business Cloud
  5. WhatsApp Approval Gateway (WhatsApp Business Cloud): uses WhatsApp Business Cloud
  6. Check Approval Status (If): checks a condition and branches into true / false
  7. Format LinkedIn Post (Function): runs custom JavaScript (legacy Function node)
  8. Send Decline Notification (WhatsApp Business Cloud): uses WhatsApp Business Cloud
  9. Publish to LinkedIn (LinkedIn): uses LinkedIn
  10. Restart Content Generation (Execute Sub-workflow): calls another n8n workflow

…plus 1 more step. See the full node list below.

Services it uses

OpenAI Chat ModelWhatsApp Business CloudLinkedIn

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in Prepare Search Topics, Process AI Content, Format LinkedIn Post: replace with Code node, mode 'Run Once for All Items'.
  • AI Agent v1 (old agent modes) in AI Content Generator (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
Function (legacy)
Prepare Search Topics, Process AI Content, Format LinkedIn Post
Code node, mode 'Run Once for All Items'
AI Agent v1 (old agent modes)
AI Content Generator (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (8)

From the author

Workflow Overview Transform your LinkedIn presence with this powerful AI-driven automation workflow that generates and posts high-quality thought leadership content automatically. Let this AI Agent, generate content for you, sends it to your whatsapp for you…

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