fix(amazon-shopping): verify prime and delivery filters
This commit is contained in:
+32
-1
@@ -17,6 +17,7 @@ cd ~/.openclaw/workspace/skills/amazon-shopping
|
||||
scripts/search-products 'USB-C charger under $30' --limit 10 --json
|
||||
scripts/search-products '100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars' --limit 5 --markdown
|
||||
scripts/search-products 'USB-C cable with over 1000 reviews and rating over 4 stars' --limit 3 --json --skip-details
|
||||
scripts/search-products 'sofa bed of 77 inches or wider, 4 stars or higher, 200+ reviews, shipped with Prime, delivery by tomorrow, top 10 by price' --limit 10 --json --markdown
|
||||
```
|
||||
|
||||
Use `--dry-run` to parse a request and show planned filters without navigating to Amazon:
|
||||
@@ -73,7 +74,7 @@ scripts/search-products 'USB-C charger under $30' --dry-run --json
|
||||
For a live smoke after install or update:
|
||||
|
||||
```bash
|
||||
scripts/search-products '100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars' --limit 5 --json
|
||||
scripts/search-products '100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars' --limit 5 --json --markdown
|
||||
```
|
||||
|
||||
## Dependency
|
||||
@@ -86,6 +87,18 @@ Each result includes the product ASIN, title, source URL, price, unit price when
|
||||
|
||||
Unknown or hidden fields stay unknown. The skill does not invent delivery dates, star histograms, prices, or review counts.
|
||||
|
||||
Markdown output uses a fixed table intended for direct user-facing answers:
|
||||
|
||||
```markdown
|
||||
## Best Matches
|
||||
|
||||
| # | Product | Price | Rating | Reviews | Width | Prime | Delivery | Link |
|
||||
|---|---|---:|---:|---:|---:|---|---|---|
|
||||
| 1 | Example Sofa Bed | $399.99 | 4.3 stars | 250 | 83" OK | Prime OK | FREE delivery Tomorrow OK | [Amazon](https://www.amazon.com/dp/ASIN) |
|
||||
```
|
||||
|
||||
The `OK` / `NO` marker is only attached to columns that correspond to requested filters. For example, `Prime OK` means the helper found a Prime signal on the search card or detail page; `not verified NO` means the product did not pass a requested Prime filter.
|
||||
|
||||
## Filters
|
||||
|
||||
Supported request filters include:
|
||||
@@ -94,11 +107,29 @@ Supported request filters include:
|
||||
- minimum review count
|
||||
- maximum product price
|
||||
- maximum unit price
|
||||
- minimum width in inches
|
||||
- Prime delivery
|
||||
- delivery by today, tomorrow, or overnight
|
||||
- sort by price
|
||||
- result limit
|
||||
- maximum search pages
|
||||
|
||||
`over 200 reviews` and `more than 4.5 stars` are strict comparisons. `at least 200 reviews` and `4.5 stars or better` are inclusive comparisons.
|
||||
|
||||
Examples of supported natural-language filters:
|
||||
|
||||
- `77 inches or wider`
|
||||
- `shipped with Prime`
|
||||
- `delivery by tomorrow`
|
||||
- `overnight shipping`
|
||||
- `top 10 by price`
|
||||
|
||||
Equivalent CLI flags:
|
||||
|
||||
```bash
|
||||
scripts/search-products 'sofa bed beige' --min-rating 4 --min-reviews 200 --min-width 77 --require-prime --delivery-by tomorrow --sort-by price --limit 10 --markdown
|
||||
```
|
||||
|
||||
## Guardrails
|
||||
|
||||
This skill is for operator-directed product research, not purchasing automation.
|
||||
|
||||
Reference in New Issue
Block a user