- AI for Ecommerce and Amazon Sellers
- Posts
- Guide: Building a Viral TikTok Script Machine with AI
Guide: Building a Viral TikTok Script Machine with AI
A full SOP inside

From Our Sponsor:
The AI Shortcut to Amazon Listing Images (Free Guide)
Nobody started selling on Amazon because they love creating listing images.
You started because you found a product, saw an opportunity, and went for it. The listing images were just another thing on the endless list between "figure out FBA shipping" and "why is my ACoS so high."
But here's the thing β images are where most purchase decisions happen. And right now, yours are probably built on whatever you could pull together between everything else you're managing.
An AI tool just made this the easiest part of your entire operation. It pulls your reviews, analyzes your competitors, and generates a full image set based on what actually drives purchases β not guesswork, not templates, not generic lifestyle shots.
7 images. 8 minutes. No team required.
Guide: Building a Viral TikTok Script Machine with AI
Most TikTok creators operate on instinct β posting content and hoping something sticks. The problem isn't effort, it's the lack of a systematic approach to understanding what actually drives virality in a given niche.
This framework replaces guesswork with a data-driven content engine. By combining Genspark's download capabilities with Gemini's video analysis and Claude's pattern synthesis, you can build a structured library of what's already working β then generate high-quality scripts on demand based on real, repeatable patterns.
The result is a compounding system: every analysis you complete makes your next script better.
What You'll Need
Genspark (genspark.ai) with the Download Agent feature enabled
Gemini (any tier with video upload capability)
Claude for pattern synthesis and script generation
A list of competitor or category-leading TikTok video URLs
A spreadsheet or Notion database to house your pattern library
Step 1: Download Competitor TikTok Videos
Use Genspark's Download Agent to collect videos at scale without manual effort.
How to execute:
Open Genspark and select the Download Agent feature
Paste your competitor TikTok URLs directly into the agent β multiple URLs can be processed simultaneously
Genspark automatically creates a folder and downloads all videos to a single organised location
No manual downloading or third-party tools required
What to look for when selecting videos: Focus on content that has significantly outperformed the account's typical engagement β not just high-view counts in isolation. Prioritise videos from direct competitors, category leaders, and adjacent niches targeting the same audience.
Deliverable: A downloaded folder of 10β20 high-performing competitor videos ready for analysis.
Step 2: Analyse Each Video with Gemini
Upload each downloaded video to Gemini and run a structured analysis using the prompt below.
Video Analysis Prompt
You are a TikTok expert. Here's a viral TikTok video. First transcribe
this video word for word. Then provide an in-depth analysis of the
following elements: length of video, camera position, visual hook, are
there any specific visual elements in the video that increase engagement?Gemini will return:
Full word-for-word transcript of the video
Total video length
Camera position and framing approach
Visual hook breakdown (what appears in the first 1β3 seconds)
Engagement elements such as text overlays, dynamic captions, and on-screen graphics
The "secret factor" β Gemini's assessment of why this specific video performed
Pro tip: Run this prompt without modification first, then follow up with targeted questions if you need deeper analysis on a specific element (e.g., "Why does the hook structure work for this audience?").
Deliverable: A structured analysis document for each video.
P.S: Iβve found that uploading each video individually reduces chances of hallucinations.
Step 3: Build a Viral Pattern Library
Repeat Step 2 across your full video collection to identify repeatable patterns across your niche β not just individual anomalies.
For each video, capture the following fields in your library:
Field | What to Record |
|---|---|
Hook Type | Visual hook and audio hook separately |
Hook Overlay Style | Text style, placement, timing |
Transcript / Value Proposition | Core message and how it's framed |
Camera Setup | Distance, angle, movement |
Engagement Elements | Overlays, captions, b-roll, effects |
Why It Went Viral | Gemini's reasoning + your own assessment |
What you're building toward: A pattern library that reveals which hook types dominate your niche, which camera setups your audience responds to, and which value propositions appear most frequently in high-performing content. The goal is to stop making blind guesses and start identifying repeatable structures.
Aim for a minimum of 10 analysed videos before moving to script generation β the more patterns you capture, the stronger Claude's output will be.
Deliverable: A populated pattern library in spreadsheet or database format.
Step 4: Feed the Library into Claude to Generate Scripts
With your pattern library complete, use Claude as your script generation engine.
How to execute:
Upload your full pattern library data (all rows and fields) into a Claude conversation
Provide context on your specific product, service, or topic
Use the prompt structure below to generate your first script
Script Generation Prompt
Here is a library of viral TikTok patterns I've collected and analysed
from [your niche/category]:
[Paste full pattern library]
Based on these patterns, generate a complete viral TikTok script for
[your product/topic/angle].
Include:
- Opening visual hook (what appears on screen in seconds 1β3)
- Word-for-word spoken script
- Text overlay copy and timing
- Camera position recommendation
- Suggested audio hook or sound direction
- Total estimated video length
Ground the script in the patterns from the library β don't invent
structures that don't appear in the data.What Claude will produce: A fully structured TikTok script built from real-world patterns rather than generic content advice β complete with overlays, hook framing, and camera direction.
Iteration tip: After generating your first script, ask Claude to produce two or three variations that emphasise different hook types or value propositions from your library. This gives you a ready-to-test batch rather than a single execution.
Deliverable: A set of production-ready TikTok scripts grounded in your pattern data.
Measurement and Iteration
After each video posts, record:
Views at 24 hours, 72 hours, and 7 days
Watch time / completion rate
Which hook type and structure was used
Whether it matched a dominant pattern from your library
Feed results back into the library β tag each pattern with its real-world performance data over time. Patterns that produce results in production become your highest-confidence templates for future scripts.
This is a compounding system. Every analysis you complete and every video you post makes your pattern library stronger and your next script more informed.
The Core Philosophy
The power of this framework isn't any single tool β it's the systematic approach. Genspark handles collection, Gemini handles analysis, and Claude handles synthesis and generation. Each stage builds on the last.
Most creators treat content as a creative guessing game. This framework treats it as a pattern recognition problem β and once you've mapped the patterns in your niche, generating strong content becomes a repeatable, scalable process rather than a weekly gamble.
Do You Love The AI For Ecommerce Sellers Newsletter?
You can help us!
Spread the word to your colleagues or friends who you think would benefit from our weekly insights π Simply forward this issue.
In addition, we are open to sponsorships. We have more than 65,000 subscribers with 75% of our readers based in the US. To get our rate card and more info, email us at [email protected]
The Quick Read:
Marketing just got a new gatekeeper: chatbots, so brands are cleaning old info, flooding the web with ultra-specific content, and learning Reddit finesse to win AEO/GEO visibility before the βfirst-moverβ window closes.
A dystopian macro memo where AI-driven productivity spikes while wages and spending collapse, triggering a self-reinforcing layoff loop that turns βGhost GDPβ into a systemic market crash as friction-based business models unravel.
Organic clicks are being squeezed from all sides: Similarweb data shows text ads and PLAs grabbing the biggest share gains across verticals, while AI Overviews surge and total click volume shrinks, pushing brands to buy visibility.
The real AI anxiety isnβt jobs, itβs dinner: as laborβs share trends toward zero, the article argues the urgent fight is who controls taxation, redistribution, and democratic power when a few AI owners can decide what society funds.
Perplexity is pitching βAI as the computerβ - a multi-model, workflow-building digital worker that spins up sub-agents to research, write, code, and run tasks for hours or months, aiming to remove the chat interface bottleneck for serious outcomes.Quick Reads
The Tools List:
ποΈ Just words - Optimize your product's copy for user growth.
π¨ Soona - AI-powered creative tools for e-commerce and UGC.
π€ Top GPTs - Gain access to the leading OpenAI GPT models without needing a Plus subscription.
π Zocket - AI social media ad platform
π₯ Pictory GPT - Effortlessly create captivating videos
π Copy AI - Generate content, such as blog headlines, emails, and social media posts using AI
About The Writer:

Jo Lambadjieva is an entrepreneur and AI expert in the e-commerce industry. She is the founder and CEO of Amazing Wave, an agency specializing in AI-driven solutions for e-commerce businesses. With over 13 years of experience in digital marketing, agency work, and e-commerce, Joanna has established herself as a thought leader in integrating AI technologies for business growth.
For Team and Agency AI training book an intro call here.
