Skip to main content

Clone viral TikTok & Instagram reels with Apify and Gemini 2.5 Pro

Workflow preview

Workflow preview
100%
Clone viral TikTok & Instagram reels with Apify and Gemini 2.5 Pro preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Reverse engineer short form videos from Instagram and TikTok using Gemini AI Who's it for Content creators, AI video enthusiasts, and digital marketers who want to analyze successful short form vid...

Best for

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

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.switch, n8n-nodes-base.httprequest, n8n-nodes-base.extractfromfile, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.slack, n8n-nodes-base.converttofile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Clone viral TikTok & Instagram reels with Apify and Gemini 2.5 Pro
Workflow name
Clone viral TikTok & Instagram reels with Apify and Gemini 2.5 Pro

Reverse engineer short-form videos from Instagram and TikTok using Gemini AI

Who's it for

Content creators, AI video enthusiasts, and digital marketers who want to analyze successful short-form videos and understand their production techniques. Perfect for anyone looking to reverse-engineer viral content or create detailed prompts for AI video generation tools like Google Veo or Sora.

How it works

This automation takes any Instagram Reel or TikTok URL and performs a forensic analysis of the video content. The workflow downloads the video, converts it to base64, and uses Google's Gemini 2.5 Pro vision API to generate an extremely detailed "Generative Manifest" - a comprehensive prompt that could be used to recreate the video with AI tools.

The analysis includes:

  • Visual medium identification (film stock, camera sensor, lens characteristics)
  • Color grading and lighting breakdown
  • Shot-by-shot deconstruction with precise timing
  • Camera movement and framing details
  • Subject description and action choreography
  • Environmental and atmospheric details

How to set up

  1. Configure API credentials:

    • Add your Apify API key for video scraping
    • Set up Google Gemini API authentication
  2. Set up Slack integration (optional):

    • Configure Slack OAuth for result sharing
    • Update the channel ID where results should be posted
  3. Access the form:

    • The workflow creates a web form where you can input video URLs
    • Form accepts both Instagram Reel and TikTok URLs

Requirements

  • Apify account with API access for video scraping
  • Google Cloud account with Gemini API enabled
  • Slack workspace (optional, for sharing results)
  • Videos must be publicly accessible (no private accounts)

How to customize the workflow

  • Modify the analysis prompt: Edit the "set_base_prompt" node to adjust the depth and focus of the video analysis
  • Add different platforms: Extend the switch node to handle other video platforms
  • Integrate with other tools: Replace Slack with email, Discord, or other notification systems

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 - form_trigger

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

Block 2 - switch_platform

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 3 - scrape_ig_reel

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

Block 4 - download_ig_reel

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

Block 5 - scrape_tiktok

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

Block 6 - download_tiktok

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

Block 7 - tiktok_to_base64

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

Block 8 - set_tiktok_result

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

Block 9 - analyze_tiktok

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

Block 10 - set_base_prompt

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

Block 11 - build_final_tiktok_prompt

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

Block 12 - build_final_ig_prompt

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

Block 13 - ig_to_base64

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

Block 14 - analyze_ig_reel

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

Block 15 - set_ig_result

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - send_prompt_msg

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 20 - Convert to File

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

Block 21 - upload_file

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 22 - Sticky Note3

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

3. Summary Table

Workflow Clone viral TikTok & Instagram reels with Apify and Gemini 2.5 Pro
Complexity advanced
Nodes 22
Categories Content Creation, AI Summarization
Author Lucas Walter
Published 17 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6104/6104.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 Clone viral TikTok & Instagram reels with Apify and Gemini 2.5 Pro do?

Reverse engineer short form videos from Instagram and TikTok using Gemini AI Who's it for Content creators, AI video enthusiasts, and digital marketers who want to analyze successful short form vid...

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, AI Summarization use case.