Quick overview
This workflow runs on a daily schedule to generate a fresh LinkedIn post topic, write the post with OpenAI, create a realistic image with OpenAI image generation, generate SEO-focused hashtags, publish the post to LinkedIn, and email you a link to the published update.
How it works
- Runs on a schedule trigger at 10:00.
- Uses OpenAI to generate a new LinkedIn content topic with a title, rationale, and hook in a structured format.
- Uses OpenAI to turn the topic into a complete LinkedIn post (without hashtags) and an accompanying image description.
- Uses OpenAI image generation to create a realistic LinkedIn-ready image based on the image description.
- Uses OpenAI to generate a structured list of relevant broad, niche, and trending LinkedIn hashtags for the post.
- Publishes the post to LinkedIn with the generated image, post title, and post content plus hashtags.
- Sends a Gmail email containing a link to the newly published LinkedIn post.
Setup
- Add OpenAI credentials (or an n8n AI Gateway connection) for both the chat model and the image generation model.
- Connect your LinkedIn account via LinkedIn OAuth2 and set the target person/profile for publishing.
- Connect your Gmail account via OAuth2 and update the recipient email address for the post link notification.
- Adjust the schedule time (currently 10:00) and, if needed, the post visibility and formatting in the LinkedIn publishing step.