Skill Amazon Review Request

# skill-amazon-review-request

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Skill Amazon Review Request" with this command: npx skills add zero2ai-hub/skill-amazon-review-request

skill-amazon-review-request

Sends Amazon review requests for eligible Shipped orders via SP-API Messaging API. Hardened with retry logic, deduplication, eligibility window enforcement, and dry-run mode.

Prerequisites

  • SP-API credentials in ~/amazon-sp-api.json:
    {
      "refreshToken": "...",
      "clientId": "...",
      "clientSecret": "...",
      "marketplaceId": "A2VIGQ35RCS4UG"
    }
    
  • Or set env vars: SP_API_REFRESH_TOKEN, SP_API_CLIENT_ID, SP_API_CLIENT_SECRET, SP_API_MARKETPLACE_ID
  • SP-API app must have Messaging permission granted

Usage

# Dry run — see what would be sent (no requests made)
node scripts/request-reviews.js --dry-run

# Live run
node scripts/request-reviews.js

Behavior

FeatureDetail
Eligibility windowOrders 5–30 days old only (Amazon's allowed window)
DeduplicationSkips orders already logged as sent in the tracking log
Retry logicUp to 3 attempts with 5s delay on 5xx / 429 responses
Rate limiting1.1s pause between requests
Dry-run--dry-run flag — logs what would be sent, no API calls
Tracking logdata/review-requests-log.json — per-order status, sentAt, attempts
Text logdata/review-requests.log — timestamped human-readable run log

Tracking Log Schema

data/review-requests-log.json:

[
  {
    "orderId": "123-4567890-1234567",
    "sentAt": "2026-03-01T10:00:00.000Z",
    "status": "sent",       // "sent" | "failed" | "skipped"
    "attempts": 1,
    "reason": "optional error string for failed/skipped"
  }
]

Summary Output

=== DONE | Sent: 12 | Skipped: 4 | Failed: 1 ===

Dry-run:

=== DONE [DRY RUN] | Would send: 15 | Skipped: 4 ===

Scheduling (Recommended)

Run daily via cron:

# 9am UAE time (UTC+4) = 5am UTC
0 5 * * * cd $HOME/.openclaw/workspace && node skills/skill-amazon-review-request/scripts/request-reviews.js >> data/review-requests-cron.log 2>&1

Region Note

Script targets sellingpartnerapi-eu.amazon.com (EU endpoint, covers UAE marketplace). Change to sellingpartnerapi-na.amazon.com or sellingpartnerapi-fe.amazon.com for other regions.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated