Script Architect
Pricing
from $50.00 / 1,000 script generateds
Script Architect
AI-powered script writer for TikTok, Instagram Reels & YouTube Shorts. Generates viral short-form video scripts with hooks, scene breakdowns & captions β powered by Gemini 2.0 Flash + LangGraph.
Pricing
from $50.00 / 1,000 script generateds
Rating
0.0
(0)
Developer

Rahul Agarwal
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share
π¬ Script Architect
AI-powered short-form video script generator for TikTok, Instagram Reels & YouTube Shorts β built on Apify + LangGraph + Gemini 2.0 Flash.
Stop staring at a blank screen. Script Architect researches what's trending, studies top creators in your niche, and writes you a fully structured, ready-to-film video script β complete with hooks, scene-by-scene breakdowns, dialogue, visual prompts, and captions.
β¨ What It Does
Script Architect is a fully autonomous AI agent that:
- π Researches trending content β scrapes TikTok/Instagram for what's going viral in your niche right now
- π₯ Analyzes top creators β reverse-engineers hook styles, pacing, engagement patterns, and visual techniques from successful videos
- βοΈ Writes your script β generates a structured, scene-by-scene video script with hooks, narration, visual prompts, and on-screen text
- β Validates everything β Pydantic validators enforce duration math, scene sequencing, and output quality before delivery
π How It Works
The agent runs as a LangGraph state machine with four coordinated nodes:
Input β Trending Research β Creator Analysis β Script Generation β Validated Output
Each node is powered by Gemini 2.0 Flash with specialized prompts for its task. All research is done via live Apify sub-actors with real data.
π₯ Input
| Parameter | Type | Description |
|---|---|---|
topic | string | Your video topic or niche (e.g. "morning routine", "AI tools") |
platform | string | Target platform: tiktok, instagram, or youtube_shorts |
duration | number | Target video length in seconds (15β60) |
style | string | Creator style: educational, entertainment, storytime, tutorial |
creatorHandle | string | (Optional) A creator handle to analyze for style reference |
π€ Output
Each run produces a structured script object:
{"title": "5 AI Tools That Will 10x Your Productivity","hook": "You are working 10 hours a day and still falling behind β here is why.","totalDuration": 45,"scenes": [{"sceneNumber": 1,"duration": 5,"type": "hook","narration": "You are working 10 hours a day and still falling behind. Here is why.","visualPrompt": "Close-up of tired person at laptop, clock ticking in corner","onScreenText": "Sound familiar?","transition": "quick_cut"}],"caption": "5 AI tools that changed my workflow forever #productivity #aitools","hashtags": ["#productivity", "#aitools", "#worksmarter"],"trendingInsights": { "topHooks": [], "avgDuration": 42 },"creatorAnalysis": { "hookStyle": "question", "pacing": "fast" }}
ποΈ Scene Structure
Every scene includes:
| Field | Description |
|---|---|
narration | Exactly what to say (voice-over or talking head) |
visualPrompt | What to show on screen / b-roll description |
onScreenText | Captions, text overlays, emojis |
duration | Scene length in seconds (all scenes sum to total duration) |
transition | Cut type to next scene |
type | hook / content / cta / outro |
π° Pricing
| Event | Cost | When |
|---|---|---|
| Script Generated | $0.05 | Per complete script produced |
| Trending Research | $0.02 | Per trending topic research cycle |
| Creator Analysis | $0.03 | Per creator style profile analyzed |
A typical run (1 script + research + creator analysis) costs ~$0.10
π οΈ Running Locally
git clone https://github.com/moulds-ai/script-generationcd script-generationpip install -r requirements.txtexport APIFY_TOKEN=your_tokenexport GEMINI_API_KEY=your_keyapify run
βοΈ Deploying to Apify
apify loginapify push
π Built With
- Apify Platform β scraping infrastructure & actor orchestration
- LangGraph β agentic state machine framework
- Gemini 2.0 Flash β fast, multimodal AI reasoning
- Pydantic β output validation & schema enforcement
Made with love by Rahul Agarwal Β· moulds.ai/script-generation