graph TD
A[Start] --> B[Input: Amazon/Etsy URL]
B --> C[Subagent 1: Listing Data Extractor]
C --> C1[Extract URL Data]
C1 --> C2[Save Main Image URL]
C1 --> C3[Extract Title/Bullets/Description]
C2 --> D[Subagent 2: Keyword & Image Analysis]
C3 --> D
D --> D1[Analyze Image via Vision API]
D --> D2[Check Trademarks via USPTO API]
D1 --> D3[Generate Safe Keywords List]
D2 --> D3
D3 --> E[Subagent 3: Design Generator]
E --> E1[Generate Design via Ideogram API]
E1 --> E2[Remove Background]
E2 --> E3[Upscale to 4500x5400]
E3 --> E4[Convert to 300 DPI PNG]
D3 --> F[Subagent 4: Listing Text Creator]
F --> F1[Generate Title <60 chars]
F --> F2[Generate 2 Bullets <200 chars each]
F --> F3[Generate Description <1000 chars]
E4 --> G[Package Outputs]
F1 --> G
F2 --> G
F3 --> G
G --> H[Create Compliance Report]
H --> I[Generate API Usage Log]
I --> J[ZIP Final Package]
J --> K[End]