Script Architect avatar

Script Architect

Under maintenance

Pricing

from $50.00 / 1,000 script generateds

Go to Apify Store
Script Architect

Script Architect

Under maintenance

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

Rahul Agarwal

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

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:

  1. πŸ” Researches trending content β€” scrapes TikTok/Instagram for what's going viral in your niche right now
  2. πŸ‘₯ Analyzes top creators β€” reverse-engineers hook styles, pacing, engagement patterns, and visual techniques from successful videos
  3. ✍️ Writes your script β€” generates a structured, scene-by-scene video script with hooks, narration, visual prompts, and on-screen text
  4. βœ… 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

ParameterTypeDescription
topicstringYour video topic or niche (e.g. "morning routine", "AI tools")
platformstringTarget platform: tiktok, instagram, or youtube_shorts
durationnumberTarget video length in seconds (15–60)
stylestringCreator style: educational, entertainment, storytime, tutorial
creatorHandlestring(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:

FieldDescription
narrationExactly what to say (voice-over or talking head)
visualPromptWhat to show on screen / b-roll description
onScreenTextCaptions, text overlays, emojis
durationScene length in seconds (all scenes sum to total duration)
transitionCut type to next scene
typehook / content / cta / outro

πŸ’° Pricing

EventCostWhen
Script Generated$0.05Per complete script produced
Trending Research$0.02Per trending topic research cycle
Creator Analysis$0.03Per 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-generation
cd script-generation
pip install -r requirements.txt
export APIFY_TOKEN=your_token
export GEMINI_API_KEY=your_key
apify run

☁️ Deploying to Apify

apify login
apify push

πŸ”— Built With


Made with love by Rahul Agarwal Β· moulds.ai/script-generation