Skip to main content

Generate viral social media carousels with xAI Grok for Instagram, TikTok, LinkedIn & X

Workflow preview

Workflow preview
100%
Generate viral social media carousels with xAI Grok for Instagram, TikTok, LinkedIn & X 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 Automated "Viral Style" Carousels Generator for Instagram, TikTok, LinkedIn, or X Overview Automate your social media content creation with this powerful n8n workflow! Generate engaging, vira...

Best for

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

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.editimage, n8n-nodes-base.set, n8n-nodes-base.splitout, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatxaigrok

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Lucas Correia.

Original n8n.io source

1.1 Workflow description

Title
Generate viral social media carousels with xAI Grok for Instagram, TikTok, LinkedIn & X
Workflow name
Generate viral social media carousels with xAI Grok for Instagram, TikTok, LinkedIn & X

AI Automated "Viral Style" Carousels Generator for Instagram, TikTok, LinkedIn, or X

🚀 Overview

Automate your social media content creation with this powerful n8n workflow! Generate engaging, viral-style carousels for Instagram, TikTok, LinkedIn, or X (Twitter) in minutes. This template leverages AI (xAI Grok) to craft compelling, high-retention text and uses n8n's Edit Image node to automatically design your slides with your custom branding.

Output examples:

✨ Features

  • AI-Powered Content: Utilizes xAI Grok to generate witty, substantive, 7-slide carousel content based on a theme and CTA.
  • Multi-Platform Ready: Perfect for Instagram carousels, TikTok carousels, LinkedIn carousels, and X (Twitter) threads.
  • Automated Design: Overlays AI-generated text onto your chosen background image, creating visually consistent slides.
  • Easy Customization: Adapt the AI persona, font styles, colors, and background images to match your brand.
  • Google Drive Integration: Seamlessly downloads your background template and uploads finished carousel slides.
  • No Code Automation: Set up once and generate endless content with minimal effort.

💡 How it Works

  1. Input Trigger: Provide a theme and call to action (CTA) via a webhook or manual trigger.
  2. Content Generation: The AI (acting as "The Carousel Cynic") writes 7 distinct slides, each with a provocative title and a detailed description, formatted for maximum engagement.
  3. Image Assembly:
    • Downloads a base background image from Google Drive.
    • Loops through each of the 7 AI-generated slides.
    • Uses the Edit Image node to dynamically add the slide's title and description to the background.
    • Outputs sequentially numbered .png files (e.g., 1.png, 2.png).
  4. Output & Storage: Uploads all final carousel images to a specified folder in your Google Drive, ready for publishing.

🛠️ Setup Steps

  1. xAI Credentials: Add your xAI API Key to the xAI Grok Chat Model node.
  2. Google Drive Integration:
    • Connect your Google Drive OAuth2 credentials.
    • In the Download file node, update the File ID to point to your desired blank background image.
    • In the Upload file node, select the Google Drive folder where you want to save the generated carousels.
  3. Customization (Optional):
    • Adjust AI persona in the AI Agent node's "System Prompt."
    • Modify fontSize, fontColor, positionX, and positionY in the Params Style Config node to perfectly align text on your background images.

🎁Bonus

Added in workflow a Canva link to editable background style I use in my carousels.

🔑 Keywords

AI, Automation, Social Media, Carousel, Instagram, TikTok, LinkedIn, X, Twitter, Content Creation, Viral Content, Marketing, Grok, xAI, Image Generation, No-code, Workflow, Productivity, Creator Economy, Digital Marketing, Engagement, Visual Content, Dynamic Image, Automated Marketing.

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 - Loop Over Items

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

Block 2 - Img 1 - Title

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

Block 3 - Img 1 - Description8

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

Block 4 - Get Slides And Set Params1

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

Block 5 - Split Out

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

Block 6 - Structured Output Parser1

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

Block 7 - AI Agent

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

Block 8 - Sticky Note

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

Block 9 - xAI Grok Chat Model

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

Block 10 - Fields: Get Theme and CTA

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

Block 11 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 12 - Webhook

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

Block 13 - When clicking ‘Test workflow’

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

Block 14 - Upload file

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

Block 15 - Download file

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

Block 16 - Sticky Note1

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

Block 17 - Test Params

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

Block 18 - Params Style Config

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

Block 19 - Sticky Note2

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

Block 20 - Sticky Note3

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

3. Summary Table

Workflow Generate viral social media carousels with xAI Grok for Instagram, TikTok, LinkedIn & X
Complexity advanced
Nodes 20
Categories Content Creation, Multimodal AI
Author Lucas Correia
Published 19 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11024/11024.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 viral social media carousels with xAI Grok for Instagram, TikTok, LinkedIn & X do?

AI Automated "Viral Style" Carousels Generator for Instagram, TikTok, LinkedIn, or X Overview Automate your social media content creation with this powerful n8n workflow! Generate engaging, vira...

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.