AI-Powered LinkedIn Post and Image Generator using GPT and DALL-E - n8n Workflow

Automate professional LinkedIn posts by combining real-time trends and AI image generation. Use this powerful n8n workflow for consistent, high-quality social media content using GPT and DALL-E.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

AI Automation Specialists: Those needing consistent content showcasing real-world experience.
Developers and Consultants: Professionals looking to automate their expert social media presence.
Content Creators: Users who want to leverage n8n templates to quickly generate highly relevant, trending topics and images.
Marketing Teams: Groups utilizing n8n to scale content production across platforms.

Overview

Maintaining a professional and relevant presence on platforms like LinkedIn requires constant effort and real-time insight. This advanced n8n workflow solves that content generation challenge entirely. It seamlessly integrates real-time trend analysis from RSS feeds with powerful generative AI models (GPT for text and DALL-E for images) via the OpenAI n8n node. The system is configured to adopt a specific expert persona, ensuring every post—which mentions core topics like 'n8n workflow' and 'AI automation'—is authoritative and valuable to the target audience. By utilizing this n8n automation, you save hours on content research, writing, and graphic design, guaranteeing a consistent stream of high-quality, image-based professional posts.

How it Works

The process begins with the manual n8n trigger, which initiates the content creation cycle. First, the Set context n8n node defines the expert persona and content rules (e.g., focus on 'n8n workflow' and 'AI automation'). Next, the Get Latest Topics HTTP Request n8n node fetches recent articles from a specified RSS feed (e.g., Medium tags). The Relevant Insights Code n8n node then filters this data using internal keywords (including 'n8n') to extract the most relevant industry update.

Simultaneously, the workflow branches: the Generate LinkedIn Post OpenAI n8n node creates the post text, while the Generate an image OpenAI n8n node generates a high-resolution, professional image via DALL-E.

Before publishing, parallel If n8n node checks (Check Generated post and Check Image condition) ensure both the text and the image binary data are successfully created. The Merge both Results node brings these validated items back together. A final Convert to LinkedIn format Code n8n node structures the data specifically for the LinkedIn n8n node, pairing the post text with the binary image. Finally, the Post to LinkedIn n8n node publishes the content. The workflow concludes with a status check (Check Post Result) which triggers an email notification confirming the success or failure of the n8n workflow execution.

Installation Guide

To deploy this n8n workflow, follow these steps:


  1. Import the JSON: Copy the provided JSON data and paste it directly into your n8n canvas using the 'New' -> 'Import from JSON' option.

  2. Configure Credentials: You must update three sets of credentials:

OpenAI API: Configure the credential for the Generate LinkedIn Post and Generate an image n8n nodes (used for GPT and DALL-E).
LinkedIn OAuth2: Set up credentials for the Post to LinkedIn n8n node, ensuring it has permissions to post on behalf of the selected organization/user.
* SMTP: Configure your SMTP server credentials in the Send Alert Email and Send alert email n8n node for notifications.

  1. Customize Email Addresses: Update the 'To Email' and 'From Email' fields in the notification n8n node instances.

  2. Customize Context: Review the Set context n8n node to adjust the role, focus, and rules to match your specific professional brand.

  3. Run: Use the 'Execute Workflow' n8n trigger manually for testing, or set a recurring schedule if desired.

Node Details

This n8n workflow uses several critical nodes:

When clicking ‘Execute workflow’ (Manual Trigger n8n trigger): Starts the automation process on command, ideal for testing and controlled deployment.
Set context (Set n8n node): Defines fixed variables (like role and content_rules) that dictate the persona used by the GPT n8n node for content generation.
Get Latest Topics (HTTP Request n8n node): Used for real-time data input, fetching trending articles relevant to automation.
Relevant Insights (Code n8n node): Filters fetched RSS data to ensure relevance, specifically looking for keywords like 'n8n', 'AI', and 'workflow' to create a focused summary.
Generate LinkedIn Post (OpenAI n8n node): The core intelligence of this n8n workflow. Uses GPT-4.1-mini and detailed system prompts to generate the professional, short-form LinkedIn text.
Generate an image (OpenAI n8n node): Utilizes DALL-E to generate a visually appealing, professional image based on the content topic, ensuring the image is LinkedIn-ready.
Convert to LinkedIn format (Code n8n node): A crucial step where the separate text and binary image data are merged and formatted into a compliant structure for the final Post to LinkedIn n8n node.
Post to LinkedIn (LinkedIn n8n node): Publishes the content. Configured to post as an organization with the shared media category set to 'IMAGE', demonstrating a powerful n8n automation capability.


  • Check Post Result (If n8n node): Verifies the outcome of the LinkedIn API call by checking for the existence of the urn field, indicating a successful post. This is key for robust n8n workflow execution.

Related n8n Workflows

Free

Nodes: 10 Nodes
Updated: December 26 2025
View all
Created by

I am a full stack developer focused on building AI-driven automation solutions for companies, founders, and business owners. I specialize in using tools like n8n to automate business analytics, daily reporting, alerts, and follow-ups, helping teams make faster, data-driven decisions. With strong experience across backend, frontend, databases, and AI integrations, I design end-to-end automation workflows that reduce manual work and deliver clear, actionable insights.

Featured*