graph TD
A[User Input] --> B[Task Assignment]
B --> C{Script Generation}
C --> D[Analyze Topic]
D --> E[Research Key Points]
E --> F[Draft Script Structure]
F --> G[Write Introduction]
F --> H[Develop Main Points]
F --> I[Create Conclusion]
G --> J[Compile Draft]
H --> J
I --> J
J --> K[Review Length]
K --> L{Length Check}
L -->|100-300 words| M[Final Script]
L -->|Too Long/Short| J
M --> N[Format Output]
N --> O[Return Script]
style C fill:#f9f,stroke:#333
style L fill:#bbf,stroke:#333