LinkedIn Carousel Generator with AI and S3 Storage - n8n Workflow

Automate LinkedIn carousel creation using an n8n workflow. Input text is transformed by Mistral AI, rendered onto custom image templates, and stored in S3.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Social Media Managers needing rapid visual content generation.
Content creators looking to standardize LinkedIn visual production using reusable n8n templates.
Developers seeking an advanced n8n workflow example combining AI, image manipulation, and cloud storage.
Users looking for practical applications of the LangChain n8n node and custom UI via the n8n trigger.

Overview

This sophisticated n8n workflow solves the problem of manually designing multi-slide LinkedIn carousels. It utilizes a specialized LangChain AI Agent, powered by the Mistral Cloud Chat Model, to transform unstructured text input into three distinct, concise content slides (title and subtext pairs). These pairs are then dynamically overlaid onto pre-selected Google Drive image templates using the powerful Edit Image n8n node. The resulting, high-impact images are securely uploaded to a specified S3 bucket. The final step of this automated n8n workflow is to aggregate all image URLs and return a list of downloadable links and embedded markdown visuals directly to the user interface initiated by the n8n trigger. This is a robust demonstration of building complex, visual content pipelines using n8n.

How it Works

The process begins when the user interacts with the Chat Trigger n8n node, initiating the automation by submitting a text post.


  1. AI Analysis and Content Structuring: The input is immediately routed to the AI Agent, which utilizes the Mistral Cloud Chat Model. The agent cleans the text and extracts three sets of short, catchy carousel text (title and subtext pairs). The Structured Output Parser ensures the AI output is a clean JSON object, essential for the subsequent steps in the n8n workflow.

  2. Data Segregation: Four parallel Set n8n nodes split the structured AI output, dedicating one path for each of the three content slides plus one path for a static fourth slide. Each path assigns the respective text variables and generates a unique, date-stamped safeName for the file.

  3. Template Retrieval: Four Google Drive n8n nodes download the pre-configured background image templates required for the carousel slides.

  4. Dynamic Image Rendering: Three Edit Image n8n nodes take the image templates and dynamically overlay the AI-generated titles and subtexts. These n8n node operations are configured with specific fonts, sizes, and coordinates to ensure professional text placement.

  5. Cloud Storage: Four S3 n8n nodes handle the persistent storage, uploading the generated carousel images to the specified S3 bucket using the unique safeName created earlier.

  6. URL Aggregation: Set n8n nodes retrieve the public URLs of the uploaded images. A Merge n8n node gathers all four paths, and the Aggregate n8n node combines them into a single item list.

  7. Final Response: The final Set n8n node formats the aggregated data into a clean, markdown response, providing both embedded previews and downloadable links, which is then served back to the user via the n8n trigger interface, completing the n8n workflow.

Installation Guide

To set up and run this specialized n8n workflow, follow these setup instructions:


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

  2. AI Credentials: Provide a working credential for the Mistral Cloud Chat Model n8n node.

  3. S3 Configuration: Set up S3 credentials and ensure you replace the placeholder in all four S3 n8n nodes with your actual bucket name. Verify that the bucket permissions are correctly configured for public access or adjust the URL generation logic accordingly.

  4. Google Drive Templates: Configure OAuth2 credentials for the Google Drive n8n node. Crucially, replace the placeholder file IDs () in the four Google Drive nodes with the actual file IDs of your high-resolution background image n8n templates.

  5. Testing: Execute the n8n workflow once manually to confirm all connections and the AI output structure. Once verified, activate the n8n trigger and use the generated chat URL to test the live generation.

Node Details

This n8n workflow utilizes several advanced and core n8n node types:

When chat message received (LangChain Chat Trigger): This is the interactive starting n8n trigger. It allows the workflow to receive text input via a custom chat interface and delivers the final combined output.
Mistral Cloud Chat Model (LangChain LLM): Provides the underlying AI capability, driving the creative text generation process for the carousel slides.
AI Agent (LangChain): Orchestrates the AI task, using a detailed system prompt to ensure the output cleans the user's post and generates content in a specific, short-form structure suitable for carousel slides. This is a critical n8n node.
Structured Output Parser (LangChain): An essential n8n node for data reliability, it validates that the AI Agent's output adheres to the expected JSON schema (e.g., title1, subtext1, etc.).
Google Drive (n8n node): Used to retrieve the source image templates necessary for rendering. Configuration requires specific file IDs to download the template images.
Edit Image (n8n node): A key component of this n8n workflow, performing the heavy lifting of visual content creation. It uses the multiStep operation to define precise text overlays, using variables like {{ $json.title }} and specific font files and position coordinates.
S3 (n8n node): Manages file storage and retrieval. It handles the uploading of the finalized image buffers from the Edit Image n8n node.
Set (n8n node): Used extensively for data manipulation, particularly in creating unique filenames (safeName), extracting individual title/subtext pairs, and constructing the final Markdown message structure, which completes the n8n workflow.

Related n8n Workflows

Free

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

Digital Biz Tech builds practical AI systems that turn knowledge and workflows into real results. We deliver enterprise RAG platforms, automated social media engines, and reliable process automation that helps teams work faster and make smarter decisions. Consulting: [email protected] Website: digitalbiz.tech LinkedIn: linkedin.com/company/digital-biz-tech

Featured*