graph TD
A[Start - Product URL Input] --> B[Task #226: Extract Data]
B --> C{Valid URL?}
C -->|No| D[Error: Invalid URL]
D --> Z[End - Error State]
C -->|Yes| E[Call Real-Time Amazon API]
E --> F{API Response OK?}
F -->|No| G[Error: API Failed]
G --> Z
F -->|Yes| H[Extract Required Fields]
H --> I[raw-extracted-data]
I --> J[Task #223: Transform Data]
J --> K[Parse Raw Data]
K --> L[Create JSON Structure]
L --> M{JSON Valid?}
M -->|No| N[Error: Invalid JSON]
N --> Z
M -->|Yes| O[extracted-product-details]
O --> P[End - Success State]
subgraph API Dependencies
E --> Q[API Key Check]
Q --> R[Rate Limit Check]
end
subgraph Data Fields
H --> S[Title]
H --> T[Bullets]
H --> U[Description]
H --> V[Image URL]
end