graph TD
A[TrackingSetupAgent Start] --> B[Input Processing]
B --> C{Split Tasks}
C -->|UTM Documentation| D[Task 1: Generate UTM Docs]
C -->|Tracking Code| E[Task 2: Generate Pixel Code]
D --> F[Process Campaign Details]
F --> G[Define UTM Structure]
G --> H[Create Implementation Guide]
H --> I[Output tracking_details.txt]
E --> J[Define Event Listeners]
J --> K[Set Conversion Triggers]
K --> L[Add Geographic Filters]
L --> M[Output tiktok_mastery_pixel.js]
I --> N[Validation Check 1]
M --> O[Validation Check 2]
N --> P[Final Output Collection]
O --> P
P --> Q[TrackingSetupAgent Complete]
style A fill:#f9f,stroke:#333
style Q fill:#9f9,stroke:#333