All resources
System·6 min read·Replit · Apify · OpenAI

Reel Decoder: The One-Prompt Replit App That Tells You Why Any Reel Went Viral

I used to rewatch viral reels on a loop, trying to reverse-engineer them by feel. Turns out the process is mechanical enough to be an app. Reel Decoder takes any public reel link, scrapes it, transcribes the audio, reads the on-screen text, then a GPT-4o brain running my rubric names the hook, the archetype, the emotional trigger, and scores it out of 100. I did not write a single line of code. Replit's agent built the whole thing from one prompt. Both prompts are below, exactly as I run them.

What you're building

One dark screen, one input box. Paste a public Instagram reel URL from any niche, hit Decode, and a three-stage pipeline runs. Stage one, Apify's Instagram reel scraper pulls the caption, the view count, and the video itself. Stage two, OpenAI Whisper transcribes the audio while GPT-4o vision reads the on-screen text from a few sampled frames. Stage three, all of it goes to GPT-4o running my scoring rubric as its system prompt. What comes back is a report card: Viral Score out of 100, the archetype, the exact hook quoted back at you, the emotional trigger, three bullets on why it spread, the comment gate and its trigger word if there is one, a predicted reach tier, and a Steal This remix line for your next script.

Step 1: Two keys, in Secrets

You need a Replit account and two keys: an Apify token for the scraping, and an OpenAI key for Whisper, the vision pass, and the brain. Both go into Replit Secrets under these exact names. Never paste a key into the prompt, the chat, or the code. Keys in code end up in screenshots and screen recordings. Secrets only.

Copy-paste this
APIFY_TOKEN
OPENAI_API_KEY

Step 2: The build prompt

Open Replit, start an Agent conversation, and paste this in word for word. It scaffolds the app, wires the whole pipeline, builds the UI, and puts it live. When the agent asks about credentials, point it at the two Secrets you just set. When it asks for the system prompt, give it the brain in the next step.

Copy-paste this
Build me a web app called Reel Decoder.

A user pastes any Instagram reel URL (any niche) and clicks Decode. The app then runs this pipeline:

1) Scrape the reel with the Apify Instagram reel scraper: caption, view count, and the video file. Use APIFY_TOKEN from Secrets.

2) Transcribe the audio with OpenAI Whisper, and read the on-screen text from a few sampled frames with GPT-4o vision. Use OPENAI_API_KEY from Secrets.

3) Send the transcript, the caption, and the on-screen text to GPT-4o, with my SYSTEM PROMPT as the brain. I will paste it in my next message.

4) Show a clean report card: Viral Score /100, Archetype, the Hook (quoted), the Emotional Trigger, Why It Spread (3 bullets), the Comment/CTA Gate + trigger word, Predicted Reach Tier, and a 'Steal This' remix line.

Dark modern UI, one big URL input, animated 'Scraping... Transcribing... Decoding...' progress steps, mobile-first. Deploy it live.

Step 3: The brain

The app is plumbing. This is the product. This system prompt is my rubric for why short-form travels: hook strength in the first two seconds, archetype, core emotion, retention mechanics, gates, shareability. When the agent asks for the system prompt, paste it exactly as written. Do not soften the last line. The entire value is that it refuses to flatter weak reels.

Copy-paste this
You are Reel Decoder, an expert on why short-form reels go viral in ANY niche. For the reel given, analyze the universal drivers of reach:

HOOK: do the first ~2 seconds stop the scroll with a concrete promise, pattern-break, or open loop?

ARCHETYPE: pick one: shock, transformation, listicle, story/POV, tutorial, challenge/trend, relatable callout, or flex/aspiration.

EMOTION: the core trigger (awe, outrage, curiosity, humor, status, fear, nostalgia, inspiration).

RETENTION: pacing, open loops, payoff timing, and whether it loops.

CTA/GATE: is there a comment/save/share trigger, and what's the word?

SHAREABILITY: is the payoff screenshot-, tag-, or save-able?

UNIVERSALITY: can anyone relate to or replicate it?

Score 0-100, weighting hook strength + emotional pull + shareability, with a bonus for a strong comment/save gate. Punchy sub-20s reels with one clear emotion and a 2-second concrete hook score highest. Slow or muddy openers score low.

Output JSON: viralScore, archetype, hook, emotion, whyItSpread[3], gate{present, triggerWord}, reachTier, stealThis.

Be specific and honest. Do not inflate weak reels.

How I actually run it

Don't start by decoding your own reels. You'll argue with the report. Decode the five biggest reels in your niche from the last month and read the reports side by side. The repeats are the lesson: the archetype that keeps winning, the emotion, the trigger words on the gates. Write your next script to that pattern and use the Steal This line as your starting point. Steal structure, never content. And be honest about the number. The score is a structured opinion, tuned to favor short reels with one clear emotion and a concrete hook. It will miss sometimes. It still beats vibes.

Copy-paste this
1. Pull the 5 biggest reels in your niche from the last 30 days.
2. Decode all 5.
3. Read the reports side by side. Circle the repeats: archetype, emotion, gate trigger words.
4. Write your next script to that pattern. Start from the Steal This line.
5. Steal structure, never content.

Costs, blind spots, and the line you don't cross

Every decode spends real money: one Apify run, one Whisper job, two GPT-4o calls. Cents per reel, real money at volume. Set spend limits on both keys before you hand the link to anyone. Know the blind spots. Vision samples a few frames, so text that flashes for half a second can slip past it, and a muddy audio mix gives you a muddy transcript. When the score surprises you, watch the reel before you trust the report. Last thing, and I mean it: public reels only. This is for studying formats creators chose to publish, not for monitoring people. No private accounts, no building files on individuals, and your keys live in Secrets, nowhere else.

Get the next one first

New prompts every week.

Free. The new drops and the tools behind them, before they hit the feed.

No spam · New issues Sunday · Unsubscribe anytime

Need it custom?

Want this built for you?

Tell me the idea and I’ll build it. An app, a tool, an automation. You don’t need to be technical.