| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- {
- "name": "asin-reverse-keywords",
- "displayName": "ASIN 反查关键词",
- "description": "根据 ASIN 反向查询该产品关联的搜索关键词列表,包括搜索排名、搜索量等。用于竞品关键词策略分析、广告关键词挖掘。",
- "category": "voc",
- "version": "1.3.0",
- "endpoint": {
- "method": "POST",
- "url": "https://server.fmode.cn/api/voc-ecom/forward",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer {{vocToken}}"
- }
- },
- "parameters": {
- "type": "object",
- "required": [
- "ASIN"
- ],
- "properties": {
- "ASIN": {
- "type": "string",
- "description": "Amazon 产品 ASIN(10位大写字母数字)",
- "pattern": "^[A-Z0-9]{10}$"
- },
- "domain": {
- "type": "integer",
- "description": "Amazon 站点 ID: 1=amazon.com",
- "default": 1
- }
- }
- },
- "requestTransform": {
- "template": {
- "path": "/api/ASINRequestKeyword",
- "method": "POST",
- "query": {
- "domain": "{{domain}}"
- },
- "body": {
- "ASIN": "{{ASIN}}"
- }
- }
- },
- "response": {
- "type": "array",
- "description": "关键词列表",
- "items": {
- "type": "object",
- "properties": {
- "Keyword": {
- "type": "string",
- "description": "关键词"
- },
- "SearchVolume": {
- "type": "integer",
- "description": "月搜索量"
- },
- "Rank": {
- "type": "integer",
- "description": "该ASIN在此关键词下的排名"
- },
- "CompetitorCount": {
- "type": "integer",
- "description": "竞争产品数"
- }
- }
- }
- },
- "usageExamples": [
- {
- "name": "反查竞品关键词",
- "input": {
- "ASIN": "B0B24QJ217",
- "domain": 1
- },
- "description": "查看 COCORRINA Reed Diffuser 排名靠前的搜索关键词"
- }
- ],
- "reportMapping": {
- "slides": [
- "广告关键词引擎(Slide15)"
- ],
- "dataPoints": [
- "竞品关键词列表",
- "搜索排名",
- "搜索量"
- ]
- },
- "timeout": 60000,
- "retry": {
- "maxAttempts": 3,
- "delay": 1000,
- "backoffMultiplier": 2
- },
- "tokenConfig": {
- "type": "bearer",
- "configFile": "~/.openclaw/voc-credentials.json",
- "tokenField": "vocToken",
- "currentToken": "r:858b3ee92314d5447d1fc3cdc10462d7",
- "resolutionOrder": ["configFile", "currentToken"],
- "onMissing": {
- "action": "showPaymentQR",
- "qrCodeUrl": "https://pwa.fmode.cn/apig-pay.html?user={{user}}&apigid={{apigid}}&fun_id=HOkkX72PMF",
- "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
- "pollingIntervalMs": 3000,
- "pollingTimeoutMs": 300000,
- "onPaymentSuccess": "retrySkillWithNewToken",
- "title": "扫码开通 VOC-AI 数据服务",
- "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
- },
- "onBalanceInsufficient": {
- "action": "showPaymentQR",
- "qrCodeUrl": "https://pwa.fmode.cn/apig-pay.html?user={{user}}&apigid={{apigid}}&fun_id=HOkkX72PMF",
- "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
- "pollingIntervalMs": 3000,
- "pollingTimeoutMs": 300000,
- "onPaymentSuccess": "retrySkillWithNewToken",
- "title": "VOC-AI Token 余额不足,请扫码充值",
- "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
- }
- },
- "errorHandling": {
- "balanceInsufficient": {
- "conditions": [
- { "responseField": "code", "operator": "in", "value": [-2, -3, -10, 402, 429] },
- { "responseField": "msg", "operator": "contains", "value": ["余额不足", "insufficient", "balance", "quota"] },
- { "responseField": "message", "operator": "contains", "value": ["余额不足", "insufficient", "balance"] }
- ],
- "matchMode": "any",
- "trigger": "tokenConfig.onBalanceInsufficient"
- },
- "unauthorized": {
- "conditions": [
- { "responseField": "code", "operator": "in", "value": [401, 403] },
- { "responseField": "msg", "operator": "contains", "value": ["unauthorized", "token", "invalid", "auth"] }
- ],
- "matchMode": "any",
- "trigger": "tokenConfig.onMissing"
- }
- }
- }
|