Skip to main content

Generate social media campaign images with Mistral AI & Pollinations.ai

Workflow preview

Workflow preview
100%
Generate social media campaign images with Mistral AI & Pollinations.ai preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description How it works This workflow uses AI (Mistral LLM + Pollinations.ai) to generate high quality visual content for social media campaigns . It automates the process from brand/campaig...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.lmchatmistralcloud, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googledrive, 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 ResilNext.

Original n8n.io source

1.1 Workflow description

Title
Generate social media campaign images with Mistral AI & Pollinations.ai
Workflow name
Generate social media campaign images with Mistral AI & Pollinations.ai

📖 Description

🔹 How it works

This workflow uses AI (Mistral LLM + Pollinations.ai) to generate high-quality visual content for social media campaigns. It automates the process from brand/campaign input to final image upload, ensuring consistency and relevance.

  1. Input Brand & Campaign Data

    • Retrieves brand profile and campaign goals from Google Drive.
    • Cleans and merges the data into a structured JSON format.
  2. Campaign Goal Generation

    • AI summarizes campaign goals, audience, success metrics, and keywords.
    • Produces a clear campaign goal summary for content planning.
  3. Image Prompt Generation

    • AI creates 5 detailed image prompts reflecting the campaign story.
    • Includes 1 caption and 4–6 relevant hashtags.
  4. Image Creation

    • Pollinations.ai generates images based on the AI prompts.
    • Each image is renamed systematically (photo1 → photo5).
  5. Post-Processing & Upload

    • All images are merged into a single item.
    • Workflow uploads the final output to Google Drive for campaign use.

⚙️ Set up steps

  1. Connect Credentials

    • Add Google Drive and Mistral API credentials in n8n.
  2. Configure Google Drive Input Nodes

    • Set fileId for brand profile and campaign goals.
  3. Customize AI Prompts

    • Sticky notes explain AI nodes for goal summary and image prompt generation.
    • Optionally modify tone, keywords, or target audience for brand-specific campaigns.
  4. Check Image Output Nodes

    • Ensure Pollinations.ai HTTP request nodes are active.
    • Verify renaming code nodes for proper photo sequence.
  5. Activate Workflow

    • Test workflow manually to ensure images are generated and uploaded correctly.

🔹 Data Handling & Output

  • This workflow pulls brand profile and campaign goal data from Google Drive.
  • Data is processed into structured JSON, including:
    • Brand Profile: name, mission, vision, values, services, tone, keywords, contact info.
    • Campaign Goal: primary goal, focus, success metrics, target audience, core message.
  • Supports population of multiple campaigns or brands dynamically.
  • JSON output can be used downstream for image prompt generation, reporting, or analytics.
  • All processing is automated, with clear nodes for extraction, parsing, and merging.

pollinations.ai is an open-source free text and image generation API available. No signups or API keys required. which prioritize your privacy with zero data storage and completely anonymous usage.


Result: A fully automated AI-to-image workflow that transforms campaign goals into ready-to-use social media visuals, saving time and maintaining brand consistency.

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 - When clicking ‘Test workflow’

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

Block 2 - Mistral Cloud Chat Model4

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

Block 3 - Structured Output Parser1

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

Block 4 - pollinations.ai

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - pollinations.ai2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - pollinations.ai3

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - pollinations.ai4

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - pollinations.ai5

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Send as 1 merged file1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Change name to photo 1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Change name to photo 2

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Change name to photo 3

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Change name to photo 4

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Change name to photo 5

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Campaign Goal generator

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

Block 16 - image prompt generator base on the goal

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

Block 17 - brand goals

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

Block 18 - brand profile

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

Block 19 - Sticky Note

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

Block 20 - Sticky Note1

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

Block 21 - clean retrived data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - Merge profile and goals

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 23 - Sticky Note2

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

Block 24 - separate each Prompts

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

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

3. Summary Table

Workflow Generate social media campaign images with Mistral AI & Pollinations.ai
Complexity advanced
Nodes 29
Categories Content Creation, Multimodal AI
Author ResilNext
Published 20 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8770/8770.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 social media campaign images with Mistral AI & Pollinations.ai do?

Description How it works This workflow uses AI (Mistral LLM + Pollinations.ai) to generate high quality visual content for social media campaigns . It automates the process from brand/campaig...

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.