Skip to main content

✍️ AI agent to create Linkedin posts for blog promotion with GPT-4o

Workflow preview

Workflow preview
100%
✍️ AI agent to create Linkedin posts for blog promotion with GPT-4o preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Tags: Automation, AI, Marketing, Content Creation Context I’m a Supply Chain Data Scientist and content creator who writes regularly about data driven optimization, logis...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.code, n8n-nodes-base.ghost, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
✍️ AI agent to create Linkedin posts for blog promotion with GPT-4o
Workflow name
✍️ AI agent to create Linkedin posts for blog promotion with GPT-4o

Tags: Automation, AI, Marketing, Content Creation

Context

I’m a Supply Chain Data Scientist and content creator who writes regularly about data-driven optimization, logistics, and sustainability. Promoting blog articles on LinkedIn used to be a manual task — until I decided to automate it with N8N and GPT-4o.

This workflow lets you automatically extract blog posts, clean the content, and generate a professional LinkedIn post using an AI Agent powered by GPT-4o — all in one seamless automation.

>Save hours of repetitive work and boost your reach with AI.

📬 For business inquiries, you can add me on LinkedIn

Who is this template for?

This template is perfect for:

  • Bloggers and writers who want to promote their content on LinkedIn
  • Marketing teams looking to automate professional post-generation
  • Content creators using Ghost platforms

It generates polished LinkedIn posts with:

  • A hook
  • A quick summary
  • A call-to-action
  • A signature to drive readers to your contact page

How does it work?

This workflow runs in N8N and performs the following steps:

  1. 🚀 Triggers manually or you can add a scheduler
  2. 📰 Pulls recent blog posts from your Ghost site (via API)
  3. 🧼 Cleans the HTML content for AI input
  4. 🤖 Sends content to GPT-4o with a tailored prompt to create a LinkedIn post
  5. 📄 Records all data (post content + LinkedIn output) in a Google Sheet

What do I need to start?

You don’t need to write a single line of code.

Prerequisites:
  • A Ghost CMS account with blog content
  • A Google Sheet to store generated posts
  • An OpenAI API Key
  • Google Sheets API connected via OAuth2

Next Steps

Use the sticky notes in the workflow to understand how to:

  • Add your Ghost API credentials
  • Link your Google Sheet
  • Customize the AI prompt (e.g., change the author name or tone)
  • Optionally add auto-posting to LinkedIn using tools like Buffer or Make

🎥 Watch My Tutorial

🚀 Want to explore how automation can scale your brand or business? 📬 Let’s connect on LinkedIn

Notes

  • You can adapt this template for Twitter, Facebook, or even email newsletters by adjusting the prompt and output channel.
  • This workflow was built using n8n 1.85.4

Submitted: April 9th, 2025

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 - When clicking ‘Test workflow’

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

Block 2 - AI Agent

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

Block 3 - OpenAI Chat Model

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

Block 4 - Clean HTML

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Extract Blog Posts

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

Block 6 - Extract Post Content

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note

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

Block 10 - Record the posts

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 11 - Merge Linkedin

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 12 - Add Clean HTML

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 13 - Loop Over Posts

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 14 - Sticky Note3

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

3. Summary Table

Workflow ✍️ AI agent to create Linkedin posts for blog promotion with GPT-4o
Complexity intermediate
Nodes 14
Categories Content Creation, Multimodal AI
Author Samir Saci
Published 09 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3500/3500.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 ✍️ AI agent to create Linkedin posts for blog promotion with GPT-4o do?

Tags: Automation, AI, Marketing, Content Creation Context I’m a Supply Chain Data Scientist and content creator who writes regularly about data driven optimization, logis...

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 Content Creation, Multimodal AI use case.