Claude code automation: find a viral video format and remake it as an AI video
Updated
This Claude Code automation turns live video data into AI videos in six prompts: connect Claude to Virlo, find the format already going viral in your niche, write a story-first script, build a realistic on-camera character, generate the clip with Seedance and finish it in CapCut. Virlo picks which format to make so you don't waste a generation; the AI side costs about $0.15 per finished Seedance clip.
- The 6 prompts that go from live video data to a finished AI video
- The realism block to paste into every Seedance prompt
- How to turn one winning video into 5 to 12 variations
What does this Claude Code automation do?
This Claude Code automation finds a video format that is already going viral in your niche and recreates it as an AI video. You don't invent the idea: Claude reads the data, picks the format, writes the script and hands you a generation prompt.
AI video quality is no longer the bottleneck. Videos made entirely with AI already pull six-figure views: one walked through a tool as an AI avatar and did 101K views, another ran an AI presenter beside a demo and did 80K. What matters now is knowing which format is going viral, and being able to make one in minutes. Virlo handles the first part; the AI tools handle the second.
| Step | What happens | Tool |
|---|---|---|
| 1. Find the format | Pull what's going viral in your niche | Virlo, through Claude |
| 2. Write the script | Story-first, beat by beat | Claude |
| 3. Build the character | A real-looking on-camera person | GPT Image 2 or Nano Banana, Topaz |
| 4. Generate the video | 15-second clips with realism specs | Seedance on fal.ai or Replicate |
| 5. Post it | Trending sound, before your niche catches on | CapCut, then TikTok or Instagram |
The low cost is the point: you can test a dozen AI videos for the price of one human creator video and let the views tell you which one won. For the wider AI UGC playbook, see AI UGC.
How do you connect Claude Code to live TikTok and Instagram data?
Connect Claude Code to Virlo's MCP server with a Virlo API key, and Claude can pull live TikTok and Instagram data into the chat. Create a Virlo account, copy your virlo_tkn_ key at dev.virlo.ai, then paste this prompt and follow it. The Virlo for Claude Code page covers the one-line terminal setup too.
Goal:
- connect you to Virlo so you can pull live TikTok and Instagram
data straight into this chat
Tool:
- Virlo MCP server: https://dev.virlo.ai/api/mcp/mcp
- my key starts with virlo_tkn_ (I'll paste it where you tell me)
Process:
- ask which Claude client I'm using (Claude Desktop, Claude Code,
Cursor, Windsurf, or other)
- show me exactly where to paste my key for that client
- have me restart, then test by pulling trending videos in a
niche I name
Important:
- don't print my key back to me
- one action at a time, explain each in a single line
Start.claude mcp add --transport http virlo https://dev.virlo.ai/api/mcp/mcpHow does Claude find the video format going viral in your niche?
Claude pulls the top viral videos in your niche from the last 7 to 14 days, ranked by how far they beat the creator's following, and names the one format to recreate. Every generation then has a proven structure behind it.
Using Virlo, find the video formats going viral in [my niche] right
now.
- pull the top viral videos in [my niche] from the last 7-14 days,
ranked by how far they punched above the creator's following
- for the strongest 3, tell me: the format (green screen, talking
head, split screen, faceless screen-record, before/after, etc.),
the exact hook in the first 3 seconds, and why it's working
- pick the ONE format I should recreate as an AI video, and tell me
the trending sound to put on it
Rank it. Don't pad.You can check the same signals by hand on Outliers and trends, and compare named formats in viral video formats.
How should the script for an AI video be structured?
Open on a specific problem, not the product: a video that leads with the product looks like an ad and gets buried. The script earns the watch first and introduces the product as a discovery after the 8-second mark.
Write me a script for a [duration, e.g. 20-second] AI video in the
[format from step 2] format, for [my product / offer].
Structure it story-first, beat by beat:
- 0-3s: a specific problem the viewer is living (not "are you
struggling with X" - a real, specific moment)
- 3-12s: name the failed alternatives they've already tried
- 12-20s: why those normally don't work
- 20-35s: introduce the thing as a discovery, not a pitch
- 35-50s: the specific result, with an oddly exact number
- last 5s: a casual recommendation, not a hard sell
Rules:
- never mention the product before the 8-second mark
- write the spoken dialogue inline, attributed (e.g. she looks at
the camera and says, "...")
- pack the dialogue dense (chain ideas with commas, no long pauses);
I'll slow it 0.75x in post so a 15s generation reads as ~20s
- at the end, output the full video-generation prompt in brackets,
ready to paste into SeedanceFor opening lines that already work, pull from viral hooks or TikTok hook ideas.
How do you make an AI character look real?
Build the face first, because the video model is only as good as the image you feed it. Ask for phone-photo realism, keep the best 1 or 2 of 6 to 8 variants, upscale, then make an angle set from the same image so the face stays identical across clips.
Write me a GPT Image 2 prompt for the on-camera person in this video:
a real-looking [age / look / vibe] person in a [setting].
Make them look like a real phone photo, not a studio shot: visible
skin texture and pores, natural uneven lighting, casual framing.
Then tell me the workflow:
- generate 6-8 variants, I pick the 1-2 that pass the "real test"
(reads as a real person in 2 seconds)
- upscale the keeper in Topaz
- generate a front / side / three-quarter angle set from that same
upscaled image so the face stays identical across clipsIf a real product has to appear in frame, generate the person without it, screenshot the best hand position, then upload that frame with a clean product photo and ask Claude to write the integration prompt.
How do you generate an AI video that doesn't look fake?
AI video looks fake when you accept the model's glossy default. Paste the script's bracketed prompt into Seedance (on fal.ai or Replicate, about $0.15 a clip) and add this block to every prompt.
[your subject + setting + action + camera move from step 3]
realistic skin texture, visible pores around nose and cheeks, natural
slight unevenness, no filter quality.
handheld phone camera feel, casual slightly unsteady framing, filmed in
a real environment, not a professional set, organic not studio quality,
slight imperfections, authentic phone footage aesthetic.
soft warm window light from camera-left, casting natural shadows across
the face, no harsh highlights, skin properly illuminated without
overexposure.
[scene clutter: e.g. messy bed and a charger cable behind her / dish
rack and a coffee mug on the counter / AirPods case on the dashboard]
subtle natural handheld motion mimicking a propped-up phone, slight
micro-shake, organic camera drift, no static locked-off framing.
warm and conversational at the open, a flicker of surprise at the
midpoint, settling into measured authenticity at the close, natural
blinks and small head movements.
maintain exact appearance from @image1, no drift, no deformation, no
jitter, face stable, stable picture throughout.
4K, sharp clarity, natural color grading, no blur, no ghosting,
no flickering.
no background music, no captions, no text overlay, no on-screen text
of any kind, no logos.| Rule | Why |
|---|---|
| 15 seconds per generation | For longer videos, generate clip 2 from a frame of clip 1 so the face matches, then stitch |
| No on-screen text in the prompt | Seedance can't spell; add captions in post |
| Name 2-4 real-brand props per scene | The shape and color of a Stanley cup, AirPods case or Red Bull sell the realism even if the logo renders slightly off |
How do you finish and post the AI video?
Two to three minutes in CapCut closes the last 10%:
- A light film-grain overlay and a touch of extra camera shake
- A warm iPhone color grade
- The trending sound Virlo gave you in prompt 2 (a sound inside its push window distributes faster)
- Captions in the platform's native style
- One full watch with the sound off before you post, since most people see it muted first
Then post it while the format is still rising, and reply to the people already getting attention in that format. When a video hits, multiply it instead of starting over:
This video performed well (data attached / pasted). Write me 5
variations that keep the same format, the same emotional arc, and the
same hook structure, but change the specific details, examples, and
the on-screen scene. Each one should target a slightly different slice
of the audience. Keep the closing CTA the same.One winner becomes 6 to 12 videos posted over the next few days. The edge is learning faster, not making better videos than everyone else. To run the research half of this every day without prompts, set up a marketing agent.
Want the format research on autopilot? A marketing agent watches your niche and flags the formats going viral every day.
How this resource was made
- Source
- The original "Claude Code automation finds, analyzes and generates viral videos" resource (June 2026): its six prompts, realism block and finishing steps. Seedance clip cost as stated in that resource.
- How this page is made
- Written by the Virlo team from the original resource; prompts are word for word except that the connection prompt now names TikTok and Instagram only.
- Limitations
- Third-party tool prices and model behaviour (Seedance, GPT Image 2, Topaz) change often; check them before you budget.
- As of
- (first published June 21, 2026)
Source: Virlo, Claude code automation: find a viral video format and remake it as an AI video, November 2026, virlo.ai/resources/claude-code-automation
Want the full list?
Virlo shows which TikTok and Instagram formats are going viral in your niche, so every AI video starts from proof. Virlo is social listening for TikTok and Instagram Reels: start a 7-day free trial at app.virlo.ai and see real videos from your niche before you pay.
Frequently asked questions
What can you automate with Claude Code?
Any repeatable research and writing chain. This one finds a viral format with Virlo, writes the script and builds generation prompts for an AI video.
How do I connect Claude Code to TikTok data?
Add Virlo's MCP server (https://dev.virlo.ai/api/mcp/mcp) with your Virlo key, or run one claude mcp add command. Claude can then pull live TikTok and Instagram videos.
Can AI videos go viral?
Yes. Videos made entirely with AI have pulled six-figure views, such as an AI avatar tool walkthrough at 101K and an AI presenter with a demo at 80K.
How much does an AI video cost to make?
On the AI side, about $0.15 per finished Seedance clip on fal.ai or Replicate, plus the image and upscaling tools you already use.
How long should each AI video generation be?
15 seconds. For longer videos, generate the next clip from a frame of the last one so the face matches, then stitch them.
Why shouldn't the script mention the product early?
Opening on the product looks like an ad and gets scrolled past. The script opens on a specific problem and names the product after the 8-second mark.
How do I stop an AI video looking fake?
Override the glossy default in every prompt: skin texture, handheld phone feel, natural window light, scene clutter, stable face and no on-screen text.
Should I add text in Seedance?
No. Seedance can't spell reliably, so add captions in CapCut after generating.
What do I do when one AI video works?
Ask Claude for 5 variations with the same format, arc and hook structure, and post 6 to 12 versions over the next few days.
Related free resources
- Claude code for social media: build an agent that finds, vets and t...
- Claude Code for marketing: a 50-agent social media team in one folder
- AI UGC: how to find the viral AI UGC accounts in your niche and cop...
- Viral video formats: 5 TikTok and Instagram formats to copy, and a ...
- AI UGC agent: find your niche's proven hooks and get a script to fi...
- Agency content system: viral concepts for every client, every Monday
- All Virlo resources
- TikTok trends this week
Run this on your own niche
Virlo shows which TikTok and Instagram formats are going viral in your niche, so every AI video starts from proof.
7-day free trial, easy to cancel.