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.
Follow these steps to get the workflow running in your n8n instance.
You will need a working n8n instance and accounts for the following services:
Import the provided .json
file into your n8n instance. All the necessary nodes will appear on your canvas.
Connect the following credentials to their respective nodes:
OpenAI Chat Model
, AI Agent Content Generator
, Ai Agent Prompt Image generator
, and Image-1
nodes.Upload file
and Download file
nodes.Send a message
node.Create a post
node.On form submission
node.AI Agent Content Generator
node.System Message
to refine the writing style, tone, and character limits for your LinkedIn posts.Ai Agent Prompt Image generator
node and modify the System Message
to guide the AI in creating images that match your brand identity.Upload file
node.Parameters
tab, select the specific Drive ID
and Folder ID
where you want to temporarily store the generated images.Create a post
node.Text
and shareMediaCategory
parameters are correctly mapped to the output of the preceding nodes to use the AI-generated text and image.