graph TD
A[User Input] --> B[Script Generation Flow]
B --> C[Process Input Parameters]
C --> D[Topic Analysis]
D --> E[Content Research]
E --> F[Structure Planning]
F --> G[Draft Script]
G --> H[Optimize for Voice]
H --> I[Format Check]
I --> J[Word Count Verification]
J --> K{Length OK?}
K -->|Yes| L[Final Script]
K -->|No| G
L --> M[Output Script]
subgraph ScriptMaster Process
C
D
E
F
G
H
I
J
K
L
end