AI-powered script breakdown tool for film/TV production. Extract characters, props, scenes, and storyboard shots from screenplays. Outputs HTML + Word reports with generation-ready AI prompts.
Paste/Upload Script โ AI Analysis โ Four-Step Breakdown
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Characters โ Props โ Scenes โ Storyboard
โ โ โ โ
Profile Card Info Card Dual Prompts 6-Module Shots
AI Prompt AI Prompt Wide+Topdown Timeline Chains
Each step outputs independent HTML and Word files as soon as it completes.
- Backend: Python 3.9+ / Flask / SSE real-time progress
- Frontend: Vanilla JS + CSS / Jinja2 templates
- AI: DeepSeek API (recommended) or Ollama local models
- Reports: python-docx (Word) / Jinja2 (HTML)
pip install -r requirements.txt
PORT=5005 python3 app.py
# Open http://localhost:5005| Provider | Required | How to Get |
|---|---|---|
| DeepSeek API | API Key | Sign up at platform.deepseek.com |
| Ollama | None | Install Ollama and start it locally |
Recommended model: deepseek-v4-flash (1M context window, fastest)
- Paste your script text or upload a
.txt/.docx/.pdffile - Select AI provider and fill in your API Key (if using DeepSeek)
- Click ๅผๅงๅๆ (Start Analysis)
- Watch the progress bar as it runs through all four steps
- Download HTML / Word reports
Reports are saved under outputs/<script-name>/:
outputs/ScriptName/
โโโ ่ง่ฒๆๅ.html Characters.html
โโโ ้ๅ
ทๆๅ.html Props.html
โโโ ๅบๆฏๆ่งฃ.html Scenes.html
โโโ ๅ้ๆ่งฃ.html Storyboard.html
โโโ *.docx (Word versions)
script-analyzer/
โโโ app.py # Flask routes + four-step generators
โโโ config.py # Model / API configuration
โโโ extractors/ # Extractors (prompt + parse logic)
โ โโโ base.py # Shared JSON repair base class
โ โโโ characters.py # Character extraction
โ โโโ props.py # Prop extraction
โ โโโ scenes.py # Scene breakdown
โ โโโ shots.py # Storyboard breakdown
โโโ services/
โ โโโ ai_service.py # AI calls (strategy pattern)
โ โโโ file_parser.py # PDF/Word/TXT parsing
โโโ reports/
โ โโโ html_report.py # HTML report generation
โ โโโ word_report.py # Word report generation
โโโ static/ # Frontend assets
โ โโโ index.html
โ โโโ js/app.js
โ โโโ css/style.css
โโโ templates/
โ โโโ report.html # Jinja2 report template
โโโ knowledge_base/ # JSON knowledge bases for prompts
โโโ utils/ # Utilities (SSE / text processing)
โโโ requirements.txt
Available via the "Advanced Parameters" panel or .env:
| Parameter | Default | Description |
|---|---|---|
PORT |
5000 | Server port |
max_tokens |
4000 | Max output tokens per AI call |
temperature |
0 | Generation randomness |
top_p |
0.95 | Nucleus sampling |
MIT
็ฒ่ดด/ไธไผ ๅงๆฌ โ AI ๅๆ โ ๅๆญฅๆ่งฃ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
่ง่ฒๆๅ โ ้ๅ
ทๆๅ โ ๅบๆฏๆ่งฃ โ ๅ้ๆ่งฃ
โ โ โ โ
่ง่ฒไฟกๆฏๅก ้ๅ
ทไฟกๆฏๅก ๅ็ๆ็คบ่ฏ ๅ
ญๆจกๅๅ้
่ง่ฒๆ็คบ่ฏ ้ๅ
ทๆ็คบ่ฏ ๅ
จๆฏ+ไฟฏ่ง ็ง็บงๅจไฝ้พ
ๆฏไธชๆญฅ้ชคๅฎๆๅๅณๆถ่พๅบ็ฌ็ซ็ HTML ๅ Word ๆไปถใ
- ๅ็ซฏ: Python 3.9+ / Flask / SSE ๅฎๆถ่ฟๅบฆๆจ้
- ๅ็ซฏ: ๅ็ JS + CSS / Jinja2 ๆจกๆฟ
- AI: ๆฏๆ DeepSeek API ๅ Ollama ๆฌๅฐๆจกๅ
- ๆฅๅ: python-docx (Word) / Jinja2 (HTML)
pip install -r requirements.txt
PORT=5005 python3 app.py
# ๆต่งๅจๆๅผ http://localhost:5005| ๆไพๅ | ้่ฆๅกซๅ | ่ฏดๆ |
|---|---|---|
| DeepSeek API๏ผๆจ่๏ผ | API Key | ๅฐ platform.deepseek.com ๅๅปบ |
| Ollama๏ผๆฌๅฐ๏ผ | ๆ | ้ๅ ๅฎ่ฃ ๅนถๅฏๅจ Ollama |
ๆจ่ๆจกๅ: deepseek-v4-flash๏ผ1M ไธไธๆ๏ผ้ๅบฆๆๅฟซ๏ผ
- ็ฒ่ดดๅงๆฌๆๅญๆไธไผ
.txt/.docx/.pdfๆไปถ - ้ๆฉ AI ๆไพๅๅนถๅกซๅ ฅ API Key๏ผDeepSeek๏ผ
- ็นๅป ๅผๅงๅๆ
- ็ญๅพ ่ฟๅบฆๆก่ตฐๅฎๅๆญฅๆ่งฃ
- ๆฅ็็ปๆ โ ไธ่ฝฝ HTML / Word ๆฅๅ
ๅๆๅฎๆๅ๏ผๆฅๅไฟๅญๅจ outputs/ๅงๆฌๅ/ ไธ๏ผ
outputs/ๅงๅ/
โโโ ่ง่ฒๆๅ.html ่ง่ฒๆๅ.docx
โโโ ้ๅ
ทๆๅ.html ้ๅ
ทๆๅ.docx
โโโ ๅบๆฏๆ่งฃ.html ๅบๆฏๆ่งฃ.docx
โโโ ๅ้ๆ่งฃ.html ๅ้ๆ่งฃ.docx
script-analyzer/
โโโ app.py # Flask ไธป่ทฏ็ฑ + ๅๆญฅ็ๆๅจ
โโโ config.py # ๆจกๅ / API ้
็ฝฎ
โโโ extractors/ # ๆๅๅจ๏ผprompt + ่งฃๆ้ป่พ๏ผ
โ โโโ base.py # ๅ
ฌๅ
ฑ JSON ไฟฎๅคๅบ็ฑป
โ โโโ characters.py # ่ง่ฒๆๅ
โ โโโ props.py # ้ๅ
ทๆๅ
โ โโโ scenes.py # ๅบๆฏๆ่งฃ
โ โโโ shots.py # ๅ้ๆ่งฃ
โโโ services/
โ โโโ ai_service.py # AI ่ฐ็จ๏ผ็ญ็ฅๆจกๅผ๏ผ
โ โโโ file_parser.py # PDF/Word/TXT ่งฃๆ
โโโ reports/
โ โโโ html_report.py # HTML ๆฅๅ็ๆ
โ โโโ word_report.py # Word ๆฅๅ็ๆ
โโโ static/ # ๅ็ซฏ้ๆ่ตๆบ
โ โโโ index.html
โ โโโ js/app.js
โ โโโ css/style.css
โโโ templates/
โ โโโ report.html # Jinja2 ๆฅๅๆจกๆฟ
โโโ knowledge_base/ # ็ฅ่ฏๅบ JSON
โโโ utils/ # ๅทฅๅ
ทๅฝๆฐ๏ผSSE / ๆๆฌๅค็๏ผ
โโโ requirements.txt
้่ฟ็ฝ้กต็้ข็ใ้ซ็บงๅๆฐใๆๅจ .env ไธญ่ฎพ็ฝฎ๏ผ
| ๅๆฐ | ้ป่ฎคๅผ | ่ฏดๆ |
|---|---|---|
PORT |
5000 | ๆๅก็ซฏๅฃ |
max_tokens |
4000 | AI ๅๆฌก่พๅบไธ้ |
temperature |
0 | ็ๆ้ๆบๆง |
top_p |
0.95 | ๆ ธ้ๆ ท |
MIT