Generate & Post LinkedIn Content Automatically with GPT-4 & GPT Image 1

Go to Workflow
0 views
Built by Marth - Business Automation Marth - Business Automation
Created on June 05, 2026

Description

⚙ 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
Click on the On form submission node.
Review and customize the form fields to fit your specific needs (e.g., add fields for hashtags, target audience, etc.).
Click "Share Form" to get the unique URL for your content ideas form.

5. Customize AI Prompts
Click on the AI Agent Content Generator node.
Review and adjust the System Message to refine the writing style, tone, and character limits for your LinkedIn posts.
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
Click on the Upload file node.
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
Click on the Create a post node.
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
Once all credentials and node configurations are complete, click "Save" at the top of the canvas.
Finally, toggle the workflow to "Active". The workflow is now live and will automatically create and publish content upon every form submission.

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Gmail
n8n-nodes-base.gmail
Google Drive
n8n-nodes-base.googleDrive
LinkedIn
n8n-nodes-base.linkedIn
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Think Tool
@n8n/n8n-nodes-langchain.toolThink