graph TD
A[Start] --> B[Select Subagent Based on Task]
B --> C{Select Processing Path}
C --> D[Path 1: Amazon URL]
C --> E[Path 2: ASIN]
C --> F[Path 3: Etsy URL]
D --> G[Extract Amazon Listing Data]
E --> H[Use ASIN API Endpoint]
F --> I[Extract Etsy Listing Data]
G --> J[Parse HTML Content]
H --> J
I --> J
J --> K[Extract Key Elements]
K --> L[Title]
K --> M[Bullet Points]
K --> N[Description]
K --> O[Main Image URL]
L --> P[Data Validation]
M --> P
N --> P
O --> P
P --> Q[Format Data Structure]
Q --> R[Create JSON Output]
R --> S[Verify Data Completeness]
S --> T{Data Complete?}
T -->|Yes| U[Return Structured Data]
T -->|No| V[Log Error]
V --> B
U --> W[End]