Skip to main content

Generate LinkedIn carousel images from text with Mistral AI & S3 Storage

Workflow preview

Workflow preview
100%
Generate LinkedIn carousel images from text with Mistral AI & S3 Storage preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Carousel Caption & Template Editor Workflow Overview This workflow is a caption only carousel text generator built in n8n. It turns any raw LinkedIn post or text input into 3 short, slide ready ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatmistralcloud, n8n-nodes-base.s3, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.editimage, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.aggregate, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by DIGITAL BIZ TECH.

Original n8n.io source

1.1 Workflow description

Title
Generate LinkedIn carousel images from text with Mistral AI & S3 Storage
Workflow name
Generate LinkedIn carousel images from text with Mistral AI & S3 Storage

AI Carousel Caption & Template Editor Workflow

Overview

This workflow is a caption-only carousel text generator built in n8n. It turns any raw LinkedIn post or text input into 3 short, slide-ready title + subtext captions and renders those captions onto image templates. Output is a single aggregated response with markdown image embeds and download links.


Workflow Structure

  • Input: Chat UI trigger accepts text and optional template selection.
  • Core AI: Agent cleans input and returns structured JSON with 3 caption pairs.
  • Template Rendering: Edit Image nodes render title and subtext on chosen templates.
  • Storage: Rendered images uploaded to S3.
  • Aggregate Output: Aggregate node builds final markdown response with embeds and download links.

Chat Trigger (Frontend)

  • Trigger: When chat message received
    • UI accepts plain text post.
    • allowFileUploads optional for template images.
    • SessionId preserved for context.

AI Agent (Core)

  • Node name: AI Agent
  • Model: Mistral Cloud Chat Model (mistral-small-latest)
  • Behavior:
    • Clean input (remove stray formatting like \n and ** but keep emojis).
    • Produce exactly one JSON object with fields: postclean, title1, subtext1, title2, subtext2, title3, subtext3.
    • Titles must be short (max 5 words). Subtext 1 or 2 short sentences, max 7 words per line if possible.
    • Agent must return valid JSON to be parsed by the Structured Output Parser.

Structured Output Parser

  • Node name: Structured Output Parser
  • Validates agent JSON and prevents downstream errors. If parsing fails, stop and surface error.

Normalize Title Nodes

  • Nodes: normalize title,name 1, normalize title,name 2, normalize title,name 3 (and optional 4)
  • Map parsed output into node fields: title, subtext, safeName (safe filename for exports).

Template Images

  • Source: Google Drive template PNGs (download via Google Drive nodes) or provided upload.
  • Keep templates high resolution and consistent aspect ratio.

Edit Image Nodes (Render Captions)

  • Nodes: Edit Image 1, Edit Image2, Edit Image3, Edit Image3 (or Edit Image3/Edit Image4 as available)
  • MultiStep operations render:
    • Title text (font, size, position)
    • Subtext (font, size, position)
  • This is where caption text is added to the template.

Upload to S3

  • Nodes: S3
  • Upload rendered images to bucketname using safeName filenames. Confirm public access or use signed URLs.

Get S3 URLs and Aggregate

  • Nodes: get s3 url image 1, get s3 url image 2, get s3 url image 3, get s3 url image 4
  • Merge + Aggregate: Merge1 and Aggregate collect image items.
  • Output Format: output format builds a single markdown message:
    • Inline image embeds ![image](<s3-url>)
    • Download links per image.

Integrations Used

Service Purpose Credential
Mistral Cloud AI agent model Mistral account
Google Drive Template image storage Google Drive account
S3 Store rendered images and serve links Supabase account
n8n Core Flow control, parsing, image editing Native

Agent System Prompt Summary

> You are a data formatter and banner caption creator. Clean the user input (remove stray newlines and markup but keep emojis). Return a single JSON object with postclean, title1/subtext1, title2/subtext2, title3/subtext3. Titles must be short (max 5 words). Subtext should be 1 to 2 short sentences, useful and value adding. Respond only with JSON.


Key Features

  • Caption only output: 3 short slide-ready caption pairs.
  • Structured JSON output enforced by a parser for reliability.
  • Renders captions onto image templates using Edit Image nodes.
  • Uploads images to S3 and returns markdown embeds plus download links.
  • Template editable: swap Google Drive background templates or upload your own.
  • Zero guess formatting: agent must produce parseable JSON to avoid downstream failures.

Summary

A compact n8n workflow that converts raw LinkedIn text into a caption-only carousel with rendered images. It enforces tight caption rules, validates AI JSON, places captions on templates, uploads images, and returns a single ready-to-post markdown payload.


Need Help or More Workflows?

We can wire this into your account, replace templates, or customize fonts, positions, and export options.
We can help you set it up for free — from connecting credentials to deploying it live.

Contact: [email protected]
Website: https://www.digitalbiz.tech
LinkedIn: https://www.linkedin.com/company/digital-biz-tech/
You can also DM us on LinkedIn for any help.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Mistral Cloud Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatMistralCloud - lmChatMistralCloud
Config choices
Version 1

Block 2 - S32

Type / Role
n8n-nodes-base.s3 - s3
Config choices
Version 1

Block 3 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 4 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 5 - S3

Type / Role
n8n-nodes-base.s3 - s3
Config choices
Version 1

Block 6 - S34

Type / Role
n8n-nodes-base.s3 - s3
Config choices
Version 1

Block 7 - S35

Type / Role
n8n-nodes-base.s3 - s3
Config choices
Version 1

Block 8 - Edit Image3

Type / Role
n8n-nodes-base.editImage - editImage
Config choices
Version 1

Block 9 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

Block 10 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 11 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note17

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note18

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note19

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note20

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note21

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note22

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note23

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - normalize title,name 1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - normalize title,name 2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - normalize title,name 3

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - normalize title,name 4

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - Google Drive get image 1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Showing the first 24 of 37 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate LinkedIn carousel images from text with Mistral AI & S3 Storage
Complexity advanced
Nodes 37
Categories Content Creation, Multimodal AI
Author DIGITAL BIZ TECH
Published 17 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10900/10900.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate LinkedIn carousel images from text with Mistral AI & S3 Storage do?

AI Carousel Caption & Template Editor Workflow Overview This workflow is a caption only carousel text generator built in n8n. It turns any raw LinkedIn post or text input into 3 short, slide ready ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.