See llms.txt for all machine-readable content.

Back to Templates

Schedule LinkedIn posts with GPT-4 text, DALL·E images, and Gmail alerts

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

  1. Runs on a schedule trigger at 10:00.
  2. Uses OpenAI to generate a new LinkedIn content topic with a title, rationale, and hook in a structured format.
  3. Uses OpenAI to turn the topic into a complete LinkedIn post (without hashtags) and an accompanying image description.
  4. Uses OpenAI image generation to create a realistic LinkedIn-ready image based on the image description.
  5. Uses OpenAI to generate a structured list of relevant broad, niche, and trending LinkedIn hashtags for the post.
  6. Publishes the post to LinkedIn with the generated image, post title, and post content plus hashtags.
  7. Sends a Gmail email containing a link to the newly published LinkedIn post.

Setup

  1. Add OpenAI credentials (or an n8n AI Gateway connection) for both the chat model and the image generation model.
  2. Connect your LinkedIn account via LinkedIn OAuth2 and set the target person/profile for publishing.
  3. Connect your Gmail account via OAuth2 and update the recipient email address for the post link notification.
  4. Adjust the schedule time (currently 10:00) and, if needed, the post visibility and formatting in the LinkedIn publishing step.