graph TD
A[Start: User Input Category] --> B[Crawl Amazon Best Sellers Page]
B --> C[Extract Product Data]
C --> D[Parse Names]
C --> E[Parse Prices]
C --> F[Parse Affiliate Links]
D --> G[Create Product List]
E --> G
F --> G
G --> H[Sort by Price]
H --> I[Select Highest Price]
I --> J[Format JSON Output]
J --> K[Return Product Info]
K --> L[End: bestseller-product-info]
subgraph Input Processing
A --> B
end
subgraph Data Extraction
B --> C
C --> D
C --> E
C --> F
end
subgraph Data Processing
G --> H
H --> I
end
subgraph Output Formatting
I --> J
J --> K
K --> L
end