workflows.fit
Back to n8n workflows
n8n templateFreeBy DIGITAL BIZ TECH

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 capt...

MarketingCore NodesData & StorageDevelopmentAILangchainLm Chat Mistral CloudS3
Loading interactive preview...

Template notes

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.