Skip to main content

LinkedIn content factory with OpenAI research & Replicate branded images

Workflow preview

Workflow preview
100%
LinkedIn content factory with OpenAI research & Replicate branded images preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Template Description: Never run out of high quality LinkedIn content again. This workflow is a complete content factory that takes a simple topic from a Google Sheet, uses AI to research a tre...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.toolserpapi, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.manualtrigger, n8n-nodes-base.wait, @n8n/n8n-nodes-langchain.outputparserstructured, 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 Onur.

Original n8n.io source

1.1 Workflow description

Title
LinkedIn content factory with OpenAI research & Replicate branded images
Workflow name
LinkedIn content factory with OpenAI research & Replicate branded images

Template Description: > Never run out of high-quality LinkedIn content again. This workflow is a complete content factory that takes a simple topic from a Google Sheet, uses AI to research a trending angle, writes a full post, generates a unique and on-brand image, and publishes it directly to your LinkedIn profile.

This template is designed for brands and creators who want to maintain a consistent, high-quality social media presence with minimal effort. The core feature is its ability to generate visuals that adhere to a specific, customizable brand style guide.


🚀 What does this workflow do?

  • Pulls content ideas from a Google Sheet acting as your content calendar.
  • Uses an AI Researcher (OpenAI + SerpAPI) to find the most recent and engaging news or trends related to your topic.
  • Employs an AI Writer to draft a complete, professional LinkedIn post with a catchy title, engaging text, and relevant hashtags.
  • Generates a unique, on-brand image for every post using Replicate, based on a customizable style guide (colors, composition, mood) defined within the workflow.
  • Publishes the post with its image directly to your LinkedIn profile.
  • Updates the status in your Google Sheet to "done" to avoid duplicate posts.

🎯 Who is this for?

  • Marketing Teams: Automate your content calendar and ensure brand consistency across all visuals.
  • Social Media Managers: Save hours of research, writing, and design work.
  • Solopreneurs & Founders: Maintain an active, professional LinkedIn presence without a dedicated content team.
  • Content Creators: Scale your content production and focus on strategy instead of execution.

✨ Benefits

  • End-to-End Automation: From a single keyword to a published post, the entire process is automated.
  • Brand Consistency: The AI image generator follows a strict, customizable style guide, ensuring all your visuals feel like they belong to your brand.
  • Always Relevant Content: The AI research step ensures your posts are based on current trends and news, increasing engagement.
  • Massive Time Savings: Automates research, copywriting, and graphic design in one seamless flow.
  • Content Calendar Integration: Easily manage your content pipeline using a simple Google Sheet.

⚙️ How it Works

  1. Get Topic: The workflow fetches the next "Pending" topic from your Google Sheet.
  2. AI Research: An AI Agent uses SerpAPI to research the topic and identify a viral angle.
  3. AI Writing: A second AI Agent takes the research and writes the full LinkedIn post.
  4. Generate Image Prompt: A Code node constructs a detailed prompt, merging the post's content with your defined brand style guide.
  5. Generate Image: The prompt is sent to Replicate. The workflow waits and checks periodically until the image is ready.
  6. Publish: The generated text and image are published to your LinkedIn account.
  7. Update Status: The workflow archives the image to Google Drive and updates the topic's status in your Google Sheet to "done".

📋 n8n Nodes Used

  • Google Sheets
  • Langchain Agent (with OpenAI & SerpAPI)
  • Code
  • HTTP Request
  • Wait / If
  • LinkedIn
  • Google Drive

🔑 Prerequisites

  • An active n8n instance.
  • Google Account with Sheets & Drive access (OAuth2 Credentials).
  • OpenAI Account & API Key.
  • SerpAPI Account & API Key (for the research tool).
  • Replicate Account & API Token.
  • LinkedIn Account (OAuth2 Credentials).
  • A Google Sheet with "Topic" and "Status" columns.

🛠️ Setup

  1. Import the workflow into your n8n instance.
  2. Configure All Credentials: Go through the workflow and connect your credentials for Google, OpenAI, SerpAPI, Replicate, and LinkedIn in their respective nodes.
  3. Link Your Google Sheet: In the 1. Get Pending Topic... node, select your spreadsheet and sheet. Do the same for the final 8. ...Update Status node.
  4. Customize Your Brand Style (Highly Recommended): In the 4. Generate Branded Image Prompt (Code) node, edit the fixedImageStyleDetails variable. Change the RAL color codes and descriptive words to match your brand's visual identity.
  5. Populate Your Content Calendar: Add topics to your Google Sheet and set their status to "Pending".
  6. Activate the workflow!

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 - OpenAI Chat Model

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

Block 2 - SerpAPI

Type / Role
@n8n/n8n-nodes-langchain.toolSerpApi - toolSerpApi
Config choices
Version 1

Block 3 - SerpAPI1

Type / Role
@n8n/n8n-nodes-langchain.toolSerpApi - toolSerpApi
Config choices
Version 1

Block 4 - OpenAI Chat Model1

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

Block 5 - Edit Fields

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

Block 6 - If

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

Block 7 - When clicking ‘Execute workflow’

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

Block 8 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 10 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 11 - 1. Get Pending Topic from Google Sheets

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

Block 12 - 2. Research Topic & Find Viral Angle with AI

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

Block 13 - 3. Generate LinkedIn Post Content with AI

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

Block 14 - 4. Generate Branded Image Prompt

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

Block 15 - 4.1. Generate Branded Image Prompt

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

Block 16 - 5a. Start Image Generation (Replicate)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - 5b. Check Image Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - 6. Download Generated Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - 7. Publish Post to LinkedIn

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

Block 20 - 8.Update Google Sheets

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

Block 21 - Sticky Note

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

Block 22 - Sticky Note1

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

Block 23 - Sticky Note2

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

3. Summary Table

Workflow LinkedIn content factory with OpenAI research & Replicate branded images
Complexity advanced
Nodes 23
Categories Multimodal AI
Author Onur
Published 17 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8686/8686.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 LinkedIn content factory with OpenAI research & Replicate branded images do?

Template Description: Never run out of high quality LinkedIn content again. This workflow is a complete content factory that takes a simple topic from a Google Sheet, uses AI to research a tre...

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