What This Workflow Does
This automation solves a critical problem for content creators and digital marketers: understanding why certain videos go viral. Instead of guessing what makes successful TikTok or Instagram Reels work, this workflow performs forensic analysis using AI to give you a detailed blueprint.
It takes any public Instagram Reel or TikTok URL, downloads the video through Apify's scraping service, converts it to a format AI can understand, and uses Google's Gemini 2.5 Pro vision model to generate what we call a "Generative Manifest." This is an extremely detailed prompt that could be used to recreate similar content with AI video tools like Google Veo or Sora.
The business value is substantial: what would take a human analyst 5-10 hours of frame-by-frame analysis happens automatically in minutes. This gives creators, agencies, and brands a competitive edge in content strategy without proportional increases in labor costs.
How It Works
Step 1: Video URL Input & Platform Detection
The workflow starts with a web form where you input either TikTok or Instagram Reel URLs. It automatically detects which platform the content comes from and routes it through the appropriate scraping path.
Step 2: Automated Video Scraping with Apify
Using Apify's reliable web scraping infrastructure, the workflow downloads the video content while respecting platform terms of service. This happens in the background without manual intervention.
Step 3: Video Processing & AI Preparation
The downloaded video is converted to base64 format and prepared for analysis by Google's Gemini vision model. This technical step ensures the AI receives optimal input for accurate analysis.
Step 4: Comprehensive AI Analysis with Gemini 2.5 Pro
Google Gemini performs forensic analysis including: visual medium identification, color grading breakdown, shot-by-shot deconstruction with timing, camera movement details, subject description, and environmental analysis.
Step 5: Results Delivery & Optional Slack Integration
The generated "Generative Manifest" is output as a detailed text document. Optionally, it can be sent to a Slack channel for team collaboration and immediate action.
Who This Is For
This automation is ideal for:
- Content Creators who want to reverse-engineer successful content in their niche
- Digital Marketing Agencies needing to analyze competitor content at scale
- Social Media Managers looking to improve content strategy with data-driven insights
- AI Video Enthusiasts wanting detailed prompts for generation tools
- Brands seeking to understand what resonates with their target audience
What You'll Need
- Apify Account with API access for video scraping (free tier available)
- Google Cloud Account with Gemini API enabled (credits often available for new users)
- Public Video URLs from TikTok or Instagram (private accounts cannot be analyzed)
- Optional: Slack Workspace for receiving analysis results automatically
- n8n Instance (cloud or self-hosted) to run the automation
Quick Setup Guide
- Import the Template: Download the JSON file and import it into your n8n instance
- Configure API Credentials: Add your Apify API key and Google Gemini authentication
- Set Up Optional Integrations: Configure Slack OAuth if you want results delivered there
- Test with Sample URLs: Use public TikTok or Instagram Reel URLs to verify the workflow
- Customize Analysis Depth: Adjust the prompt in the "set_base_prompt" node for your specific needs
- Schedule or Trigger: Set up the web form trigger or schedule regular analysis runs
Pro tip: Start with 3-5 videos from creators you admire in your niche. Compare the AI-generated manifests to identify common patterns in successful content. These patterns become your content creation checklist.
Key Benefits
Save 5-10 hours per video analysis. What would take a human analyst most of a day happens automatically while you focus on creating content.
Eliminate guesswork from content strategy. Get data-driven insights about what actually works rather than relying on intuition or anecdotal evidence.
Scale competitor research without scaling headcount. Analyze dozens of competitor videos weekly without adding analyst positions to your team.
Create better AI video generation prompts. The detailed "Generative Manifest" outputs are perfect for tools like Google Veo, Sora, or Runway ML.
Improve team collaboration with automated reporting. Send analysis directly to Slack where your creative team can immediately act on insights.