graph TD
A[User Input] --> B[Topic/Description]
B --> C[Parse Input Requirements]
C --> D[Validate Input Length]
D --> E[Content Category Analysis]
E --> F[Research Context]
F --> G[Script Structure Planning]
G --> H[Generate First Draft]
H --> I[Word Count Check]
I --> J{Meets Length?}
J -->|No| K[Adjust Content]
K --> I
J -->|Yes| L[Quality Check]
L --> M{Passes Check?}
M -->|No| N[Revise Script]
N --> L
M -->|Yes| O[Format Output]
O --> P[Final Script]
P --> Q[Return Script to Main Agent]