Back to Catalog

Recreate Instagram reels with Gemini 2.0 analysis & minimax video generation

Aditya MalurAditya Malur
606 views
2/3/2026
Official Page

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.

n8n Chat-Triggered Workflow Example

This n8n workflow demonstrates a basic structure for processing chat messages, applying conditional logic, and performing an HTTP request, potentially with a delay. It serves as a foundational example for building more complex chat-driven automations.

What it does

This workflow is designed to react to incoming chat messages and perform actions based on their content.

  1. Listens for Chat Messages: The workflow is triggered whenever a chat message is received.
  2. Edits Fields: It then processes the incoming message, likely extracting or setting specific fields for further use.
  3. Conditional Logic: The workflow evaluates the processed message using an "If" condition. This allows for branching logic based on the message's content or other derived data.
  4. Waits (Conditional): If the "If" condition evaluates to true, the workflow introduces a delay using a "Wait" node. This can be useful for pacing responses or allowing time for external processes.
  5. Makes an HTTP Request (Conditional): Following the optional wait, an HTTP request is made. This could be used to interact with external APIs, send data, or trigger other services.

Prerequisites/Requirements

  • n8n Instance: A running n8n instance to host and execute the workflow.
  • Chat Service Integration: The Chat Trigger node requires configuration with a chat service (e.g., Telegram, Slack, Mattermost) to receive messages.
  • API Endpoints: If the HTTP Request node is intended to interact with an external API, you will need the relevant API endpoint and any required authentication.

Setup/Usage

  1. Import the Workflow:
    • Copy the provided JSON code.
    • In your n8n instance, click on "Workflows" in the left sidebar.
    • Click "New" -> "Import from JSON" and paste the JSON code.
  2. Configure the Chat Trigger Node (When chat message received):
    • Click on the "When chat message received" node.
    • Select or create the appropriate credential for your chat service (e.g., Telegram Bot API, Slack API).
    • Configure any specific settings required by your chat service.
  3. Configure the Edit Fields Node:
    • Click on the "Edit Fields" node.
    • Define any fields you want to add, remove, or modify based on the incoming chat message data.
  4. Configure the If Node:
    • Click on the "If" node.
    • Set up your desired conditions based on the data from the "Edit Fields" node. This will determine which branch of the workflow is executed.
  5. Configure the Wait Node (Optional):
    • Click on the "Wait" node.
    • Adjust the "Wait For" duration as needed if you want to introduce a delay in the true branch of the "If" condition.
  6. Configure the HTTP Request Node (Optional):
    • Click on the "HTTP Request" node.
    • Set the "URL", "Method", "Headers", and "Body" according to the external API you wish to interact with.
    • Add any necessary authentication credentials.
  7. Activate the Workflow:
    • Once all nodes are configured, click the "Activate" toggle in the top right corner of the workflow editor to enable it.

Now, when a message is received by your configured chat service, the workflow will trigger, process the message, apply the conditional logic, and potentially wait and make an HTTP request based on your configurations.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

AI-powered code review with linting, red-marked corrections in Google Sheets & Slack

Advanced Code Review Automation (AI + Lint + Slack) Who’s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting — all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0–10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow — reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why it’s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n — combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.

higashiyama By higashiyama
90

Daily cash flow reports with Google Sheets, Slack & Email for finance teams

Simplify financial oversight with this automated n8n workflow. Triggered daily, it fetches cash flow and expense data from a Google Sheet, analyzes inflows and outflows, validates records, and generates a comprehensive daily report. The workflow sends multi-channel notifications via email and Slack, ensuring finance professionals stay updated with real-time financial insights. 💸📧 Key Features Daily automation keeps cash flow tracking current. Analyzes inflows and outflows for actionable insights. Multi-channel alerts enhance team visibility. Logs maintain a detailed record in Google Sheets. Workflow Process The Every Day node triggers a daily check at a set time. Get Cash Flow Data retrieves financial data from a Google Sheet. Analyze Inflows & Outflows processes the data to identify trends and totals. Validate Records ensures all entries are complete and accurate. If records are valid, it branches to: Sends Email Daily Report to finance team members. Send Slack Alert to notify the team instantly. Logs to Sheet appends the summary data to a Google Sheet for tracking. Setup Instructions Import the workflow into n8n and configure Google Sheets OAuth2 for data access. Set the daily trigger time (e.g., 9:00 AM IST) in the "Every Day" node. Test the workflow by adding sample cash flow data and verifying reports. Adjust analysis parameters as needed for specific financial metrics. Prerequisites Google Sheets OAuth2 credentials Gmail API Key for email reports Slack Bot Token (with chat:write permissions) Structured financial data in a Google Sheet Google Sheet Structure: Create a sheet with columns: Date Cash Inflow Cash Outflow Category Notes Updated At Modification Options Customize the "Analyze Inflows & Outflows" node to include custom financial ratios. Adjust the "Validate Records" filter to flag anomalies or missing data. Modify email and Slack templates with branded formatting. Integrate with accounting tools (e.g., Xero) for live data feeds. Set different trigger times to align with your financial review schedule. Discover more workflows – Get in touch with us

Oneclick AI SquadBy Oneclick AI Squad
619