graph TD
A[Start SubAgent: AdCampaignSetupAgent] --> B[Input Campaign Requirements]
B --> C[Collect Base Parameters]
C --> C1[Campaign Duration: 7 days]
C --> C2[Peak Days: Thu-Sun]
C --> C3[Regions: UK/USA/Canada]
C --> C4[Demographics: 18-55]
C --> C5[Interests/Keywords]
C1 & C2 & C3 & C4 & C5 --> D{Need Budget Recommendation?}
D -->|Yes| E[Skill #223: Budget Analysis]
E --> E1[Analyze Conversion Target]
E1 --> E2[Consider Market Conditions]
E2 --> E3[Generate Budget Recommendation]
E3 --> F[Compile All Parameters]
D -->|No| F
F --> G[Skill #190: Generate JSON Config]
G --> G1[Structure Campaign Settings]
G1 --> G2[Format Budget Allocation]
G2 --> G3[Set Targeting Rules]
G3 --> G4[Define Schedule]
G4 --> H[Output: campaign_config.json]
H --> I[End SubAgent]
style A fill:#f9f,stroke:#333
style H fill:#9ff,stroke:#333
style I fill:#f9f,stroke:#333