Generate & Post LinkedIn Content Automatically with GPT-4 & GPT Image 1
Last edited 58 days ago
⚙ 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, andImage-1nodes. - Google Drive: Connect to the
Upload fileandDownload filenodes. - Gmail: Connect to the
Send a messagenode. - LinkedIn: Connect to the
Create a postnode.
4. Customize the Trigger Form
- Click on the
On form submissionnode. - 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 Generatornode. - Review and adjust the
System Messageto refine the writing style, tone, and character limits for your LinkedIn posts. - Similarly, open the
Ai Agent Prompt Image generatornode and modify theSystem Messageto guide the AI in creating images that match your brand identity.
6. Configure Google Drive
- Click on the
Upload filenode. - Under the
Parameterstab, select the specificDrive IDandFolder IDwhere you want to temporarily store the generated images.
7. Configure the LinkedIn Post
- Click on the
Create a postnode. - Ensure that the
TextandshareMediaCategoryparameters 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.
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!





