graph TD
A[Start] --> B[Extract URL from User Input]
B --> C{Check URL Type}
C -->|Amazon| D[Parse Amazon URL]
C -->|Etsy| E[Parse Etsy URL]
D --> F[API Call: Real-Time Amazon Data]
E --> G[Web Scraping: Etsy Page]
F --> H[Extract Main Elements]
G --> H
H --> I[Title Processing]
H --> J[Bullet Points Processing]
H --> K[Description Processing]
H --> L[Main Image URL Extraction]
I --> M[Data Validation]
J --> M
K --> M
L --> M
M --> N[Format Data Structure]
N --> O[Error Check]
O -->|Error Found| P[Log Error]
P --> Q[Request Manual Review]
O -->|No Error| R[Prepare Output Package]
R --> S[Create JSON Output]
S --> T[End]