Skip to main content

Recreate Instagram reels with Gemini 2.0 analysis & minimax video generation

Workflow preview

Workflow preview
100%
Recreate Instagram reels with Gemini 2.0 analysis & minimax video generation preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n template demonstrates how to automatically download an Instagram Reel, analyze its content using AI video understanding, and regenerate a similar video using AI video generation models. Th...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.wait, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.if, 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 Aditya Malur.

Original n8n.io source

1.1 Workflow description

Title
Recreate Instagram reels with Gemini 2.0 analysis & minimax video generation
Workflow name
Recreate Instagram reels with Gemini 2.0 analysis & minimax video generation

This n8n template demonstrates how to automatically download an Instagram Reel, analyze its content using AI video understanding, and regenerate a similar video using AI video generation models. The workflow creates AI-powered variations of existing video content while maintaining visual consistency and style from the original source material.​​

Use cases are many: Content creators can produce multiple variations of trending reels, social media managers can recreate viral content with brand-specific modifications, or marketers can generate similar videos without copyright concerns while maintaining the original's visual appeal and storytelling structure.​

Good to know

Video generation typically takes 2-5 minutes per video. The workflow includes automatic polling to check completion status.​

Minimax Video-01 generates videos up to 6 seconds long at 720p resolution and 25fps with cinematic camera movements.​

Gemini 2.0 Flash processes video at 1 frame per second (approximately 300 tokens per second of video), making it ideal for detailed video analysis.​

The workflow includes retry logic for failed API requests to ensure reliability.​

Ensure you have sufficient API credits in your Replicate account before running high-volume workflows.​

How it works

The workflow begins when a user submits an Instagram Reel URL through the chat trigger interface.​

The RapidAPI Instagram Reels Downloader fetches the video metadata and download URL from Instagram.​

Downloaded video data is formatted and validated to ensure successful retrieval before proceeding.​

The video file is uploaded to Google's Gemini 2.0 Flash model via their File API for processing.​​

Gemini 2.0 Flash analyzes the video frame-by-frame, generating a comprehensive description covering visuals, audio, movements, lighting, camera angles, and transitions.​​

The AI-generated description is formatted as a continuous text prompt (lowercase, no punctuation) optimized for video generation models.​

This detailed prompt is sent to Replicate's Minimax Video-01 model to generate a new video based on the analysis.​

The workflow polls the Replicate API every 2 minutes to check generation status, automatically looping until completion.​

Once generation succeeds, the final AI-generated video is downloaded and ready for use or further processing.​

How to use

The chat trigger node accepts Instagram Reel URLs as input, but you can replace this with webhooks, forms, or scheduled triggers depending on your automation needs.​

Replace all placeholder API keys in the workflow before activation (RapidAPI, Google AI Studio, and Replicate).​

Test with short Instagram Reels first (under 30 seconds) to optimize processing time and token usage.​

The workflow automatically handles null checks and retries if the initial download fails, ensuring robust execution.​

Requirements RapidAPI account for Instagram Reels Downloader API (handles video extraction from Instagram)​

Google AI Studio API key with Gemini 2.0 Flash access enabled (for advanced video analysis)​​

Replicate API account with sufficient credits for Minimax Video-01 model access (for AI video generation)​

Active n8n instance (self-hosted or cloud) to run the workflow automation​

Customising this workflow

This AI video recreation workflow can be adapted for numerous creative and business applications. Try extending it to generate multiple style variations from one input video, add branding overlays or watermarks before final output, or integrate with cloud storage (Google Drive, Dropbox) for automated archiving. You can also chain this workflow with content scheduling tools to automatically post generated videos to social media platforms, or combine it with analytics nodes to track which AI-generated variations perform best with your audience.

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 chat message received

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

Block 2 - Wait

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

Block 3 - Reel Downloader

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

Block 4 - Formatter

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

Block 5 - Checks Null/ Not

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Download Reel

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

Block 7 - Upload the video to model

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

Block 8 - Analyse the Video

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

Block 9 - Create the Video

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

Block 10 - Pause

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

Block 11 - Get Status of the Video

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

Block 12 - Checks if the video generation is complete

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - Fetches the Video Output

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

Block 14 - Note: Step 1

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

Block 15 - Note: Step 2

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

Block 16 - Note: Step 3

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

Block 17 - Note: Step 4

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

Block 18 - Note: Step 5

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

Block 19 - Note: Step 6

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

Block 20 - Note: Step 7

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

Block 21 - Note: Step 8

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

Block 22 - Note: Step 9

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

Block 23 - Note: Step 10

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

Block 24 - Note: Step 11

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

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

3. Summary Table

Workflow Recreate Instagram reels with Gemini 2.0 analysis & minimax video generation
Complexity advanced
Nodes 27
Categories Content Creation, Multimodal AI
Author Aditya Malur
Published 18 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9863/9863.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 Recreate Instagram reels with Gemini 2.0 analysis & minimax video generation do?

This n8n template demonstrates how to automatically download an Instagram Reel, analyze its content using AI video understanding, and regenerate a similar video using AI video generation models. Th...

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.