Automated AI Content Engine with Approval Gate - n8n Workflow

Use this powerful n8n workflow to automatically generate social media content for LinkedIn and Twitter using OpenAI (GPT-4o), route it for Gmail approval, generate DALL-E images, and publish automatically.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Social media managers needing efficient content approval and scheduling systems.

  • Content creators looking to scale high-quality posting across multiple platforms.

  • Marketing teams utilizing n8n templates to implement advanced AI workflows.

  • Businesses focused on maintaining consistent branding via automated content publishing.

Overview

This comprehensive n8n workflow transforms a simple content idea into published social media posts across LinkedIn and Twitter (X), complete with image generation and a critical review gate. By leveraging the power of large language models (LLMs) like GPT-4o within a specialized n8n agent, the system ensures high-quality, platform-optimized posts. The critical addition of a Gmail approval step means that all content adheres to brand safety standards before publishing. This advanced n8n workflow is designed to significantly streamline content operations, maintain consistency, and drastically reduce manual effort required for multi-platform publishing. Use this n8n template to revolutionize your content pipeline.

How it Works


  1. The process is initiated by the Submit Social Post Details n8n trigger node (Form Trigger), where the user inputs the topic, keywords, and specifies whether an image should be "AI generated" or linked externally.

  2. The Social Media Content Factory AI Agent, powered by the gpt-4o LLM, analyzes the input and generates structured, platform-specific content (including text, hashtags, and image suggestions) for LinkedIn and Twitter.

  3. The Prepare Content Review Email n8n node uses gpt-4o-mini to transform the structured JSON content into a clean, mobile-responsive HTML approval email.

  4. The Gmail User for Approval n8n node sends this HTML content to the designated reviewer and pauses the n8n workflow execution until explicit approval or denial is made via the email link.

  5. The Is Content Approved? n8n node checks the response. If approved, the n8n workflow continues.

  6. An If n8n node determines the image source. If "AI generated" was selected, the Generate an image OpenAI n8n node creates a DALL-E image. Otherwise, an existing image is retrieved via an HTTP Request.

  7. Finally, the approved content and image are published automatically using the LinkedIn Post and Create Tweet n8n nodes.

  8. The n8n workflow concludes by logging the published Twitter content details into Google Sheets and sending a confirmation message via the Slack n8n node.

Installation Guide


  1. Import the n8n workflow: Copy the provided JSON data and paste it into your n8n instance using the 'Import Workflow' option.

  2. Setup Credentials: This n8n workflow requires credentials for:

OpenAI: Used for the GPT-4o agent, HTML generation, and DALL-E image creation.
Gmail: Required for the sendAndWait approval process.
LinkedIn & Twitter (X): Required for publishing the final content.
Google Sheets: Needed for logging published posts.
* Slack: Used for sending publication notifications.

  1. Configure the n8n trigger: Locate the 'Submit Social Post Details' n8n trigger node. Activate the workflow to generate the public form URL.

  2. Update Google Sheets Node: Ensure the 'Append or update row in sheet' n8n node is configured to point to your desired Google Sheet document and tab for logging purposes. This completes the setup of your new n8n template.

Node Details


  • Submit Social Post Details (Form Trigger n8n node): The starting point, acting as the n8n trigger. Collects all necessary inputs (Topic, Keywords, Link, and Image preference) to initialize the content generation process.

  • Social Media Content Factory (Agent n8n node): The core AI engine using gpt-4o. It follows a detailed persona and ruleset defined in the prompt to ensure platform-optimized output that adheres to a strict output schema.

  • Prepare Content Review Email (Agent n8n node): Uses gpt-4o-mini specifically to generate custom, email-safe HTML from the structured JSON data, optimizing the review experience.

  • Gmail User for Approval (Gmail n8n node): Crucial for compliance, this n8n node pauses the execution using the sendAndWait operation until the content is explicitly approved by the reviewer.

  • Generate an image (OpenAI n8n node): When selected by the user, this node utilizes the OpenAI DALL-E model to create a unique image prompt for the social posts, integrating visual content creation directly into the n8n workflow.

  • LinkedIn Post & Create Tweet (Social Media n8n nodes): These nodes handle the final action of the n8n workflow, publishing the text and binary image data to their respective social platforms.

  • Append or update row in sheet (Google Sheets n8n node): Logs the successful publication data, ensuring data tracking is a built-in feature of this n8n template.

Related n8n Workflows

Free

Nodes: 13 Nodes
Updated: December 26 2025
View all
Created by
Saloni Malhotra
Saloni Malhotra

Featured*