graph TD
A[Input: Topic/Keywords] --> B[Input Validation]
C[Input: Script Instructions] --> B
B --> D{Valid Inputs?}
D -->|No| E[Return Error]
D -->|Yes| F[Initialize Script Generation]
F --> G[Generate Hook Text 0-4s]
G --> H[Generate CTA Text 5-9s]
H --> I[Generate Hashtags 10-14s]
I --> J[Combine Components]
J --> K[Format with Timings]
K --> L[Validate Length]
L --> M{Length 10-15s?}
M -->|No| N[Adjust Content]
N --> K
M -->|Yes| O[Output: short-promotional-script]