graph TD
A[Start AdCampaignSetupAgent] --> B{Need Budget Recommendation?}
B -->|Yes| C[Skill #223: Budget Analysis]
B -->|No| D[Use Provided Budget]
C --> E[Calculate Recommended Budget]
E --> F[Generate Budget Report]
D --> G[Prepare Budget Parameters]
F --> H[Skill #190: JSON Config Generator]
G --> H
H --> I[Process Campaign Parameters]
I --> J[Add Targeting Parameters]
J --> K[Add Schedule Parameters]
K --> L[Add Budget Allocation]
L --> M[Generate campaign_config.json]
M --> N[Validate JSON Structure]
N --> O{JSON Valid?}
O -->|Yes| P[Save Final Config File]
O -->|No| Q[Error Handling]
Q --> H
P --> R[End AdCampaignSetupAgent]
style A fill:#f9f,stroke:#333
style R fill:#f9f,stroke:#333