AutomationFlowsAI & RAG › Generate Linkedin Posts with Gpt-4, Preview on Whatsapp, and Auto-publish

Generate Linkedin Posts with Gpt-4, Preview on Whatsapp, and Auto-publish

Bypapcy @papcy on n8n.io

Transform your LinkedIn presence with this powerful AI-driven automation workflow that generates and posts high-quality thought leadership content automatically.

Cron / scheduled trigger★★★★☆ complexityAI-powered22 nodesAgentOpenAI ChatWhatsAppLinkedIn
AI & RAG Trigger: Cron / scheduled Nodes: 22 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4419 — we link there as the canonical source.

This workflow follows the Agent → LinkedIn recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "d18e0e0d-d096-4a10-9de3-1fcd3a5ea1f7",
      "name": "\ud83d\udccb Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2400,
        -440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8cbe5a89-a2da-47c5-b6c0-f67ed1ee2187",
      "name": "\ud83d\udd50 Stage 1: Scheduling",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1560,
        260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "31527936-ab2a-4fc6-9996-0a22d6974d1f",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "notes": "\ud83d\udd50 Runs every 6 hours - adjust timing as needed for your posting schedule",
      "position": [
        -1600,
        140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3a03874c-73de-41b8-94b2-20f503943d45",
      "name": "Prepare Search Topics",
      "type": "n8n-nodes-base.function",
      "notes": "\ud83c\udfaf Selects random AI topics for content generation. Modify searchTerms array for your niche.",
      "position": [
        -1380,
        140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3bc8e543-fee6-4c24-878e-f1987a2113b9",
      "name": "\ud83e\udde0 Stage 2: AI Generation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "09dbd2d4-4211-4b42-8579-9c290d763072",
      "name": "AI Content Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "notes": "\ud83e\udd16 GPT-4 generates unique LinkedIn content based on trending AI topics. Customize the prompt for your industry/niche.",
      "position": [
        -1160,
        -20
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "e2e316f4-dedd-43d8-96a2-ba14b8fb7c4a",
      "name": "OpenAI GPT-4 Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "notes": "\ud83e\udde0 GPT-4 language model for content generation. Requires OpenAI API key.",
      "position": [
        -1060,
        220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "598506b8-ad75-4d95-bdeb-e17887cfd1ec",
      "name": "\u2699\ufe0f Stage 3: Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -860,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7a2c74fa-0480-43b4-b550-aa0080ba6fcc",
      "name": "Process AI Content",
      "type": "n8n-nodes-base.function",
      "notes": "\u2699\ufe0f Parses AI response and formats content for LinkedIn posting",
      "position": [
        -780,
        -20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a73ede15-86b5-4c49-805d-7c18294598f7",
      "name": "\ud83d\udcf2 Stage 4: Approval System",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2e163909-dbc8-4e17-8acf-271ca6e41dc3",
      "name": "Send Content Preview",
      "type": "n8n-nodes-base.whatsApp",
      "notes": "\ud83d\udcf1 Sends generated content to your phone for preview before publishing",
      "position": [
        -560,
        -20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f466a117-de49-4a3a-b982-8b6a5d8a47e4",
      "name": "WhatsApp Approval Gateway",
      "type": "n8n-nodes-base.whatsApp",
      "notes": "\u23f3 Waits for your approval via WhatsApp before proceeding",
      "position": [
        -340,
        -20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "54efe40f-5fcb-4a30-90c3-8b9a3d067760",
      "name": "Check Approval Status",
      "type": "n8n-nodes-base.if",
      "notes": "\u2705 Routes workflow based on your approval decision",
      "position": [
        -120,
        -20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d5693916-04b5-4929-a806-c7ec06611aa3",
      "name": "\ud83c\udfaf Stage 5: Publishing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        -620
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "91092c3b-8647-43f5-8913-4e6736e480a1",
      "name": "Format LinkedIn Post",
      "type": "n8n-nodes-base.function",
      "notes": "\u2728 Final formatting of approved content for LinkedIn posting",
      "position": [
        120,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "77d9336e-8f15-4713-8ea9-46435a7a1381",
      "name": "Publish to LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "notes": "\ud83d\udd17 Auto-posts approved content to your LinkedIn profile",
      "position": [
        340,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c80dc3ba-c6b3-4774-afdd-0b737d161465",
      "name": "Send Success Notification",
      "type": "n8n-nodes-base.whatsApp",
      "notes": "\ud83c\udf89 Confirms successful LinkedIn posting",
      "position": [
        560,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bc2668e0-9afc-41bc-81e8-889a535bb7ed",
      "name": "\u267b\ufe0f Stage 6: Smart Restart",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bdab6c2e-a1b6-4969-8f32-f0c0c1716212",
      "name": "Send Decline Notification",
      "type": "n8n-nodes-base.whatsApp",
      "notes": "\u274c Notifies that content was declined and workflow will restart",
      "position": [
        120,
        100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ae7c9d8e-26e1-4bcc-8072-0af97bd6d681",
      "name": "Restart Content Generation",
      "type": "n8n-nodes-base.executeWorkflow",
      "notes": "\ud83d\udd04 Restarts workflow to generate new content after decline",
      "position": [
        340,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bd7b74e3-7bbf-430e-a0e0-0a4f17a5bcc6",
      "name": "\u2699\ufe0f Setup Guide",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1880,
        -440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "214dd4e9-bbae-4bf7-8453-c2be9281d5c9",
      "name": "\ud83d\udc8e Value Proposition",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Prepare Search Topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Content Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Process AI Content": {
      "main": [
        [
          {
            "node": "Send Content Preview",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to LinkedIn": {
      "main": [
        [
          {
            "node": "Send Success Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Content Generator": {
      "main": [
        [
          {
            "node": "Process AI Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format LinkedIn Post": {
      "main": [
        [
          {
            "node": "Publish to LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Content Preview": {
      "main": [
        [
          {
            "node": "WhatsApp Approval Gateway",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Approval Status": {
      "main": [
        [
          {
            "node": "Format LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Decline Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Search Topics": {
      "main": [
        [
          {
            "node": "AI Content Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Decline Notification": {
      "main": [
        [
          {
            "node": "Restart Content Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Approval Gateway": {
      "main": [
        [
          {
            "node": "Check Approval Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Restart Content Generation": {
      "main": [
        [
          {
            "node": "Prepare Search Topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Transform your LinkedIn presence with this powerful AI-driven automation workflow that generates and posts high-quality thought leadership content automatically.

Source: https://n8n.io/workflows/4419/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

What this workflow does

OpenAI Chat, Memory Buffer Window, Output Parser Structured +4
AI & RAG

This workflow is for beauty salons who want consistent, high‑quality social media content without writing every post manually. It also suits agencies and automation builders who manage multiple beauty

Telegram, Google Sheets Trigger, Agent +26
AI & RAG

This n8n-powered workflow automates the entire lifecycle of real estate lead intake, qualification, routing, assignment, and reporting across multiple channels. It brings WhatsApp inquiries and websit

Gmail, Typeform Trigger, WhatsApp Trigger +8
AI & RAG

Who Is This For?

Telegram, Google Sheets Trigger, Lm Chat Mistral Cloud +17
AI & RAG

kisisel asistan. Uses toolWorkflow, toolHttpRequest, toolCalculator, toolThink. Scheduled trigger; 43 nodes.

Tool Workflow, Tool Http Request, Tool Calculator +15