Skip to main content

Generate & post LinkedIn content automatically with GPT-4 & GPT image 1

Workflow preview

Workflow preview
100%
Generate & post LinkedIn content automatically with GPT-4 & GPT image 1 preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Powered Social Media Automation for LinkedIn How It Works This workflow automates the entire social media content creation and publishing process for LinkedIn. It starts with a simple form to ...

Best for

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

Tools used

n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.gmail, n8n-nodes-base.googledrive, n8n-nodes-base.linkedin, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate & post LinkedIn content automatically with GPT-4 & GPT image 1
Workflow name
Generate & post LinkedIn content automatically with GPT-4 & GPT image 1

⚙ AI-Powered Social Media Automation for LinkedIn


How It Works

This workflow automates the entire social media content creation and publishing process for LinkedIn. It starts with a simple form to collect a topic or idea. The workflow then uses two AI agents to automatically generate both the written content and a unique image prompt. The AI-generated image is created, uploaded, and then downloaded before the final step, where both the content and the image are posted to your LinkedIn account.


Setup Steps

Follow these steps to get the workflow running in your n8n instance.

1. Prerequisites

You will need a working n8n instance and accounts for the following services:

  • OpenAI: For AI content and image generation.
  • Google Drive: To temporarily store the generated image.
  • Gmail: For the file upload process.
  • LinkedIn: To publish the final post.

2. Workflow Import

Import the provided .json file into your n8n instance. All the necessary nodes will appear on your canvas.

3. Configure Credentials

Connect the following credentials to their respective nodes:

  • OpenAI: Connect to the OpenAI Chat Model, AI Agent Content Generator, Ai Agent Prompt Image generator, and Image-1 nodes.
  • Google Drive: Connect to the Upload file and Download file nodes.
  • Gmail: Connect to the Send a message node.
  • LinkedIn: Connect to the Create a post node.

4. Customize the Trigger Form

  1. Click on the On form submission node.
  2. Review and customize the form fields to fit your specific needs (e.g., add fields for hashtags, target audience, etc.).
  3. Click "Share Form" to get the unique URL for your content ideas form.

5. Customize AI Prompts

  1. Click on the AI Agent Content Generator node.
  2. Review and adjust the System Message to refine the writing style, tone, and character limits for your LinkedIn posts.
  3. Similarly, open the Ai Agent Prompt Image generator node and modify the System Message to guide the AI in creating images that match your brand identity.

6. Configure Google Drive

  1. Click on the Upload file node.
  2. Under the Parameters tab, select the specific Drive ID and Folder ID where you want to temporarily store the generated images.

7. Configure the LinkedIn Post

  1. Click on the Create a post node.
  2. Ensure that the Text and shareMediaCategory parameters are correctly mapped to the output of the preceding nodes to use the AI-generated text and image.

8. Activate the Workflow

  1. Once all credentials and node configurations are complete, click "Save" at the top of the canvas.
  2. Finally, toggle the workflow to "Active". The workflow is now live and will automatically create and publish content upon every form submission.

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 - On form submission

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

Block 2 - OpenAI Chat Model

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

Block 3 - AI Agent Content Generator

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

Block 4 - Ai Agent Prompt Image generator

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

Block 5 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 6 - Upload file

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

Block 7 - Create a post

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

Block 8 - Download file

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

Block 9 - Image-1

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

Block 15 - Sticky Note5

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

Block 16 - Research Sources

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1.1

3. Summary Table

Workflow Generate & post LinkedIn content automatically with GPT-4 & GPT image 1
Complexity advanced
Nodes 16
Categories Multimodal AI
Author Marth
Published 25 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7801/7801.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 & post LinkedIn content automatically with GPT-4 & GPT image 1 do?

AI Powered Social Media Automation for LinkedIn How It Works This workflow automates the entire social media content creation and publishing process for LinkedIn. It starts with a simple form to ...

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.