Skip to main content

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

Workflow preview

Workflow preview
100%
Generate LinkedIn posts with GPT-4, preview on WhatsApp, and auto-publish preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.function, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.whatsapp, n8n-nodes-base.if, n8n-nodes-base.linkedin

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by papcy.

Original n8n.io source

1.1 Workflow description

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

# 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 to review and if its ok Approve and it will post! if you don't like it, Decline and it will regenerate another and send again for preview and approval.

Stage 1: Automated Content Scheduling

Schedule Trigger runs every 6 hours (customizable) Topic Selection randomly chooses 3 AI-related topics from a predefined list Ensures fresh, varied content for each generation cycle

Stage 2: AI Content Generation

GPT-4 Integration creates unique LinkedIn posts using structured prompts Content Format: Hook → Problem/Opportunity → Insight → Strategic Takeaway → CTA Output: 300-word maximum posts with 3-5 relevant hashtags Uniqueness: Each post is completely original and industry-specific

Stage 3: Content Processing & Formatting

JSON Parsing extracts title, body, and hashtags from AI response Error Handling includes fallback mechanisms for robust operation LinkedIn Formatting prepares content for optimal platform display

Stage 4: Preview & Approval System

WhatsApp Integration sends generated content to your phone for review Approval Gateway waits for your decision (approve/decline) Quality Control ensures only approved content reaches your LinkedIn profile

Stage 5: Automated Publishing

LinkedIn API posts approved content automatically Success Notifications confirm successful publishing via WhatsApp Professional Formatting includes proper spacing and emoji structure

Stage 6: Smart Restart System

Decline Handling automatically generates new content if declined Continuous Operation ensures consistent content flow Tracking Notifications keep you informed of all workflow activities

Prerequisites & Required Credentials

Essential API Credentials

OpenAI API Key (for GPT-4 content generation) WhatsApp Business API credentials and phone number ID LinkedIn Developer Account with API access n8n Cloud or Self-hosted instance

Technical Requirements

Active LinkedIn Business profile WhatsApp Business account Basic understanding of n8n workflow management

Step-by-Step Setup Instructions

  1. Configure OpenAI Integration

Add your OpenAI API key to the "OpenAI GPT-4 Model" node Ensure GPT-4 access is enabled on your OpenAI account Test connection before proceeding

2. Setup WhatsApp Business API

Obtain WhatsApp Business API credentials from Meta Configure phone number ID in all WhatsApp nodes Replace "YOUR_PHONE_NUMBER" with your actual number Test message delivery

3. Connect LinkedIn Account

Set up LinkedIn Developer App Obtain your LinkedIn Person ID Configure OAuth authentication Test posting permissions

4. Customize Content Topics

Edit the "Prepare Search Topics" function node Modify the searchTerms array for your industry Add relevant AI topics for your niche Save and test topic randomization

5. Adjust Posting Schedule

Modify the "Schedule Trigger" node Change interval from 6 hours to your preferred timing Consider your audience's active hours Enable the trigger to start automation

Customization Options Content Personalization

Industry Focus: Modify AI topics in the search terms array Writing Style: Adjust the system prompt in "AI Content Generator" Post Length: Customize maximum word count (default: 300 words) Hashtag Strategy: Modify hashtag generation rules

Workflow Timing

Posting Frequency: Adjust schedule trigger interval Approval Timeout: Configure WhatsApp wait duration Retry Logic: Customize restart behavior for declined content

Notification Preferences

WhatsApp Templates: Customize approval and notification messages Success Tracking: Modify confirmation message content Error Handling: Adjust failure notification settings

**Business Benefits Time Savings ** 10+ Hours Weekly: Eliminate manual content creation and posting Consistent Presence: Maintain regular LinkedIn activity automatically Quality Control: Review and approve all content before publishing

Lead Generation Impact

Thought Leadership: Position yourself as an AI industry expert Engagement Growth: High-quality content drives more interactions Network Expansion: Consistent posting attracts relevant connections Authority Building: Regular insights establish professional credibility

ROI Expectations

Monthly Investment: $10-20 in API costs Setup Time: 15 minutes initial configuration Long-term Value: Increased visibility, leads, and business opportunities

Troubleshooting & Support Common Issues

API Rate Limits: Monitor usage and upgrade plans if needed Content Quality: Adjust prompts for better AI output Approval Delays: Check WhatsApp connectivity and permissions

Optimization Tips

Topic Rotation: Regularly update search terms for fresh content Performance Monitoring: Track engagement metrics on posted content Prompt Refinement: Continuously improve AI generation prompts

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📋 Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - 🕐 Stage 1: Scheduling

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1

Block 4 - Prepare Search Topics

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 5 - 🧠 Stage 2: AI Generation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - AI Content Generator

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 7 - OpenAI GPT-4 Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 8 - ⚙️ Stage 3: Processing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Process AI Content

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 10 - 📲 Stage 4: Approval System

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Send Content Preview

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 12 - WhatsApp Approval Gateway

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 13 - Check Approval Status

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 14 - 🎯 Stage 5: Publishing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Format LinkedIn Post

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 16 - Publish to LinkedIn

Type / Role
n8n-nodes-base.linkedIn - linkedIn
Config choices
Version 1

Block 17 - Send Success Notification

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 18 - ♻️ Stage 6: Smart Restart

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Send Decline Notification

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 20 - Restart Content Generation

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1

Block 21 - ⚙️ Setup Guide

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - 💎 Value Proposition

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate LinkedIn posts with GPT-4, preview on WhatsApp, and auto-publish
Complexity advanced
Nodes 22
Categories Social Media, Multimodal AI
Author papcy
Published 27 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4419/4419.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate LinkedIn posts with GPT-4, preview on WhatsApp, and auto-publish do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.