api-config.json 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. {
  2. "name": "product-deep-analysis",
  3. "displayName": "单品深度诊断",
  4. "description": "针对单个ASIN进行多维度深度分析:流量架构透视、定价策略、Listing优化、VOC痛点、广告策略、市场机会,并由AI生成核心诊断和运营建议",
  5. "version": "1.3.0",
  6. "category": "synthesis",
  7. "parameters": {
  8. "asin": {
  9. "type": "string",
  10. "required": true,
  11. "description": "目标ASIN"
  12. },
  13. "domain": {
  14. "type": "integer",
  15. "default": 1,
  16. "description": "Amazon站点: 1=US, 2=UK, 3=DE, 4=FR, 5=JP, 6=CA, 7=IT, 8=ES"
  17. },
  18. "includeReviews": {
  19. "type": "boolean",
  20. "default": true,
  21. "description": "是否采集评论用于VOC分析"
  22. },
  23. "reviewPages": {
  24. "type": "integer",
  25. "default": 3,
  26. "description": "评论采集页数(每页10条)"
  27. },
  28. "competitorAsins": {
  29. "type": "array",
  30. "items": { "type": "string" },
  31. "default": [],
  32. "description": "可选的竞品ASIN列表,用于对比分析"
  33. }
  34. },
  35. "pipeline": [
  36. {
  37. "step": 1,
  38. "name": "获取产品详情",
  39. "api": {
  40. "endpoint": "/api/ProductRequest",
  41. "method": "POST",
  42. "forwardUrl": "https://server.fmode.cn/api/voc-ecom/forward",
  43. "headers": { "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7" },
  44. "requestBody": { "ASIN": "${asin}", "Trend": 1, "QueryTrendStartDt": "", "QueryTrendEndDt": "" },
  45. "queryParams": { "domain": "${domain}" }
  46. },
  47. "output": "productDetail",
  48. "responseExtract": {
  49. "title": "Title",
  50. "brand": "Brand",
  51. "salesPrice": "SalesPrice (cents, /100→USD)",
  52. "ratings": "Ratings",
  53. "starDistribution": "{ fiveStartRatings, fourStartRatings, threeStartRatings, twoStartRatings, oneStartRatings } (百分比值)",
  54. "monthlySales": "ListingSalesVolumeOfMonthTrend (数组, 末值=最新月销)",
  55. "bsr": "BsrRank",
  56. "category": "Category (数组)",
  57. "feature": "Feature",
  58. "photo": "Photo (数组)",
  59. "variationASIN": "VariationASIN (数组)",
  60. "priceTrend": "PriceTrend (数组[date,cents,...])",
  61. "rankTrend": "RankTrend (数组[date,rank,...])",
  62. "salesTrend": "ListingSalesVolumeOfMonthTrend (数组[date,vol,...])"
  63. }
  64. },
  65. {
  66. "step": 2,
  67. "name": "ASIN反查关键词",
  68. "api": {
  69. "endpoint": "/api/ASINRequestKeyword",
  70. "method": "POST",
  71. "forwardUrl": "https://server.fmode.cn/api/voc-ecom/forward",
  72. "headers": { "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7" },
  73. "requestBody": { "ASIN": "${asin}" },
  74. "queryParams": { "domain": "${domain}" }
  75. },
  76. "output": "asinKeywords",
  77. "responseExtract": "Array<{ Keyword, KeywordCNName, SearchVolume, SearchRank, SPR, TitleDensity, ProductCount, ShareClickRate, ShareConversionRate, CPC, GrowthRate, Season, Top3Brand, Top3Asin, WordCount }>"
  78. },
  79. {
  80. "step": 3,
  81. "name": "获取监控数据(价格/排名趋势)",
  82. "api": {
  83. "endpoint": "/api/MonitorQuery",
  84. "method": "POST",
  85. "forwardUrl": "https://server.fmode.cn/api/voc-ecom/forward",
  86. "headers": { "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7" },
  87. "requestBody": { "ASIN": "${asin}" },
  88. "queryParams": { "domain": "${domain}" }
  89. },
  90. "output": "monitorData",
  91. "responseExtract": "{ PriceHistory, RankHistory, RatingHistory, ReviewCountHistory, SellerCount }"
  92. },
  93. {
  94. "step": 4,
  95. "name": "采集评论(可选)",
  96. "condition": "includeReviews == true",
  97. "loop": { "from": 1, "to": "${reviewPages}", "var": "pageIndex", "delay": 400 },
  98. "api": {
  99. "endpoint": "/api/ProductReviewsQuery",
  100. "method": "POST",
  101. "forwardUrl": "https://server.fmode.cn/api/voc-ecom/forward",
  102. "headers": { "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7" },
  103. "requestBody": { "ASIN": "${asin}", "PageIndex": "${pageIndex}" },
  104. "queryParams": { "domain": "${domain}" }
  105. },
  106. "output": "reviews",
  107. "responseExtract": "Array<{ Star, Title, Content, ReviewsDate, ReviewedCountry, IsVP, Helpful, ConsumerName, Asin, AsinProperty }>"
  108. },
  109. {
  110. "step": 5,
  111. "name": "流量架构分析(关键词维度)",
  112. "type": "compute",
  113. "logic": "analyzeKeywordTraffic(asinKeywords, productDetail)",
  114. "algorithm": {
  115. "competitionLevel": {
  116. "high": "ProductCount > 50000 或 CPC > $2.00",
  117. "medium": "ProductCount > 10000 或 CPC > $1.00",
  118. "low": "其余"
  119. },
  120. "valueScore": {
  121. "formula": "min(100, searchVolumeScore + growthScore + conversionScore + competitionReverse)",
  122. "searchVolume_30pts": ">100K→30, >10K→20, >1K→10, else→5",
  123. "growth_25pts": ">50%→25, >20%→20, >0%→10, ≤0%→0",
  124. "conversion_25pts": "ShareConversionRate >5%→25, >2%→15, >0%→5, else→0",
  125. "competitionReverse_20pts": "low→20, medium→10, high→0"
  126. },
  127. "trafficShare": "按SearchVolume计算各关键词的流量占比百分比",
  128. "diagnosis": {
  129. "perKeyword": "根据自然排名(SearchRank)、广告占比(CPC/竞争度)、转化效率(ShareConversionRate/ShareClickRate)生成诊断文本",
  130. "naturalVsAd": "自然排名<=#10→主要自然流量; 仅广告位→依赖广告; 混合→广告+自然",
  131. "conversionEfficiency": "ShareConversionRate/ShareClickRate >1.5→转化效率极高; <0.5→转化偏低需优化Listing"
  132. },
  133. "keywordClassification": {
  134. "core": "matchScore>=70 且 valueScore>=60",
  135. "secondary": "matchScore>=50 或 valueScore>=50",
  136. "longtail": "其余"
  137. }
  138. },
  139. "output": "keywordAnalysis"
  140. },
  141. {
  142. "step": 6,
  143. "name": "定价策略分析",
  144. "type": "compute",
  145. "logic": "analyzePricing(productDetail, competitorAsins)",
  146. "algorithm": {
  147. "priceBands": {
  148. "method": "按五分位划分价格带: 低价带(<P20)/中低价带(P20-P40)/黄金中价带(P40-P60)/中高价带(P60-P80)/高价带(>P80)",
  149. "perBand": "每个价格带计算: skuCount, pct(SKU占比), avgSales, avgRating, avgBsr",
  150. "goldenBandScoring": "bandScore = avgSales*0.5 + avgRating*20 + (skuCount>0?10:0), 最高分为黄金带",
  151. "isGolden": "标记量利平衡最优带"
  152. },
  153. "optimalPrice": {
  154. "formula": "goldenBandMin + (goldenBandMax-goldenBandMin)*0.6 * min(1.15, max(0.85, selfRating/bandAvgRating))",
  155. "range": "最优价格 ±5%"
  156. },
  157. "marginEstimate": {
  158. "commission": "15% Amazon佣金",
  159. "fba": "$5 FBA费用",
  160. "cogs": "30% 采购成本估算",
  161. "formula": "grossMargin = (price*(1-0.15) - 5 - price*0.30) / price * 100",
  162. "breakEvenSales": "avgSales * (currentMargin/suggestedMargin) * 0.85"
  163. },
  164. "positionStrategy": {
  165. "below": "评分高于带均值→提价获溢价; 否则→逐步调至带内",
  166. "within": "维持价格,优化Listing提升转化率",
  167. "above": "评分>=4.5→维持高价品牌定位; 否则→降至最优价附近"
  168. },
  169. "promotionAdvice": {
  170. "priceWarRisk": "价格带高度集中(spread<avgPrice*0.3)时不建议降价,优先「多件折扣」「满减策略」",
  171. "bundleDiscount": "2件9折/3件8折套装折扣,提升连带率"
  172. }
  173. },
  174. "output": "pricingAnalysis"
  175. },
  176. {
  177. "step": 7,
  178. "name": "Listing优化评估",
  179. "type": "compute",
  180. "logic": "evaluateListing(productDetail, keywordAnalysis)",
  181. "algorithm": {
  182. "dimensions": {
  183. "title": {
  184. "scoring": "基础40 + 评分>=4.0(+10) + 月销>100(+10) + 有核心词(+5), 上限75",
  185. "tips": "核心词放前65字符(移动端截断); 多词关键词核心词靠前; 高搜索量>50K作核心词, <5K作长尾"
  186. },
  187. "bullet": {
  188. "tips": "第1-2条融入核心词; 围绕搜索意图突出卖点; 竞品品牌占据的词需差异化; 旺季前强调季节卖点"
  189. },
  190. "searchTerm": {
  191. "tips": "填入变体和同义词; 避免重复标题已有词; 短词补长尾变体, 长尾补拆分短词"
  192. },
  193. "image": {
  194. "tips": "主图白底高清>=2000px; 场景图展示核心卖点; 信息图标注差异化特征; >=7张图+1视频"
  195. },
  196. "aPlus": {
  197. "tips": "品牌故事强化认知; 对比表格突出vs竞品优势; 场景图呼应关键词意图; 好评截图增强信任"
  198. }
  199. }
  200. },
  201. "output": "listingAnalysis"
  202. },
  203. {
  204. "step": 8,
  205. "name": "VOC痛点提取",
  206. "condition": "includeReviews == true && reviews.length > 0",
  207. "type": "compute",
  208. "logic": "extractPainPoints(reviews)",
  209. "algorithm": {
  210. "filter": "star<=2的差评",
  211. "tokenize": "split+toLowerCase, 过滤停用词(200+常见英文词/购物泛词/情感泛词), 最小词长>=5",
  212. "bigram": "提取相邻双词组合(如'broke easily','fell apart','poor quality')",
  213. "frequency": "按评论去重计频(每条评论每个词/短语最多计1次), 过滤出现>=2次的",
  214. "ranking": "bigram优先, 同类按频率降序, 取top8",
  215. "severity": "severity = min(100, freq/totalNeg*100*0.4 + rankBonus*0.3 + 30*0.3)",
  216. "impact": "severity>=70→high, >=40→medium, <40→low"
  217. },
  218. "output": "vocPainPoints"
  219. },
  220. {
  221. "step": 9,
  222. "name": "广告策略推荐",
  223. "type": "compute",
  224. "logic": "recommendAdStrategy(keywordAnalysis, productDetail)",
  225. "algorithm": {
  226. "bidSuggestion": {
  227. "formula": "suggestedBid = CPC * bidMultiplier",
  228. "multiplier": "valueScore>=70→1.2, >=40→1.0, <40→0.8"
  229. },
  230. "expectedAcos": "suggestedBid / (avgPrice * conversionRate) * 100",
  231. "matchType": {
  232. "high_competition": "精准匹配 - 先自动广告测试转化",
  233. "medium_competition": "短语+精准组合",
  234. "low_competition": "广泛匹配 - 抢流量积销量"
  235. },
  236. "dailyBudget": "valueScore>=70→$50, >=40→$30, <40→$15",
  237. "extraRules": {
  238. "growthOver30pct": "提前布局广告占位",
  239. "convClickRatioOver1_5": "转化效率极高,加大投放",
  240. "convClickRatioUnder0_5": "先优化Listing转化率再重点投放"
  241. }
  242. },
  243. "output": "adStrategy"
  244. },
  245. {
  246. "step": 10,
  247. "name": "综合健康评分",
  248. "type": "compute",
  249. "logic": "calcOverallScore(keywordAnalysis, pricingAnalysis, productDetail, reviews)",
  250. "algorithm": {
  251. "baseScore": 50,
  252. "keywordBonus_20": "核心词数*5, 上限20",
  253. "pricingBonus_20": "在最优带内→+20, 偏低→+10, 偏高→+5",
  254. "ratingBonus_15": ">=4.5→+15, >=4.0→+10, >=3.5→+5",
  255. "reviewBonus_10": ">100条→+10, >30条→+5",
  256. "cap": 100,
  257. "verdict": {
  258. "strong": ">=80分: 产品综合竞争力强",
  259. "potential": ">=60分: 产品有提升空间",
  260. "needFix": "<60分: 产品需要重点优化"
  261. }
  262. },
  263. "output": "overallScore"
  264. },
  265. {
  266. "step": 11,
  267. "name": "AI生成核心诊断与运营建议",
  268. "type": "ai",
  269. "logic": "generateDiagnosis(overallScore, keywordAnalysis, pricingAnalysis, listingAnalysis, vocPainPoints, adStrategy, productDetail, monitorData)",
  270. "aiConfig": {
  271. "systemPrompt": "你是一名资深的亚马逊跨境电商运营专家,精通选品、Listing优化、关键词策略、定价策略和广告投放。请基于提供的算法分析结果和数据,给出深度专业的中文建议,使用Markdown格式输出。你的建议应该:具体可执行、有数据支撑、考虑ROI、分优先级排序。",
  272. "userPromptTemplate": "# 智能推荐分析请求\n综合健康分:${overallScore}/100\n目标ASIN:${asin}\n品类:${category}\n当前价格:$${currentPrice}\n当前评分:${currentRating}\n当前月销:${currentMonthlySales}\n\n## 关键词分析结果\n${keywordSummary}\n\n## 定价分析结果\n${pricingSummary}\n\n## VOC痛点分析\n${vocSummary}\n\n## 请基于以上算法分析结果,输出以下内容:\n1. **核心诊断** — 当前产品的核心优势和瓶颈(季节性/功能性/流量结构)\n2. **流量架构透视** — 关键词表格(关键词/流量占比/月搜索量/竞争分析诊断)\n3. **运营建议(Action Plan)** — 广告策略PPC/Listing优化SEO&CRO/备货节奏\n4. **30天行动计划** — 按周排列的可执行任务清单",
  273. "outputFormat": "Markdown格式,包含核心诊断/流量架构透视表格/运营建议(PPC+Listing+备货)/行动计划",
  274. "temperature": 0.5,
  275. "maxTokens": 8000,
  276. "promptPattern": "system约束专家角色+Markdown输出 + user注入算法结果摘要 + 指定输出章节结构"
  277. },
  278. "output": "aiDiagnosis"
  279. }
  280. ],
  281. "response": {
  282. "type": "object",
  283. "properties": {
  284. "productSummary": {
  285. "type": "object",
  286. "description": "产品基本信息摘要",
  287. "properties": {
  288. "asin": { "type": "string" },
  289. "title": { "type": "string" },
  290. "brand": { "type": "string" },
  291. "price": { "type": "number", "description": "美元" },
  292. "rating": { "type": "number" },
  293. "monthlySales": { "type": "integer" },
  294. "bsr": { "type": "integer" },
  295. "category": { "type": "string" }
  296. }
  297. },
  298. "overallScore": {
  299. "type": "object",
  300. "description": "综合健康评分",
  301. "properties": {
  302. "score": { "type": "integer", "description": "0-100" },
  303. "verdict": { "type": "string" },
  304. "breakdown": {
  305. "type": "object",
  306. "properties": {
  307. "keyword": { "type": "integer" },
  308. "pricing": { "type": "integer" },
  309. "rating": { "type": "integer" },
  310. "review": { "type": "integer" }
  311. }
  312. }
  313. }
  314. },
  315. "keywordAnalysis": {
  316. "type": "object",
  317. "description": "流量架构透视",
  318. "properties": {
  319. "topKeywords": {
  320. "type": "array",
  321. "description": "关键词流量表",
  322. "items": {
  323. "type": "object",
  324. "properties": {
  325. "keyword": { "type": "string" },
  326. "keywordCN": { "type": "string" },
  327. "trafficShare": { "type": "number", "description": "流量占比%" },
  328. "searchVolume": { "type": "integer", "description": "月搜索量" },
  329. "searchRank": { "type": "integer", "description": "自然排名" },
  330. "competitionLevel": { "type": "string", "enum": ["low", "medium", "high"] },
  331. "valueScore": { "type": "integer", "description": "0-100" },
  332. "diagnosis": { "type": "string", "description": "竞争分析诊断文本" },
  333. "priority": { "type": "string", "enum": ["core", "secondary", "longtail"] }
  334. }
  335. }
  336. },
  337. "trafficStructure": {
  338. "type": "object",
  339. "description": "流量结构摘要",
  340. "properties": {
  341. "organicPct": { "type": "number", "description": "自然流量占比" },
  342. "adPct": { "type": "number", "description": "广告流量占比" },
  343. "topKeywordConcentration": { "type": "number", "description": "Top5关键词流量集中度" }
  344. }
  345. }
  346. }
  347. },
  348. "pricingAnalysis": {
  349. "type": "object",
  350. "description": "定价策略分析",
  351. "properties": {
  352. "currentPrice": { "type": "number" },
  353. "optimalPrice": { "type": "number" },
  354. "recommendedRange": { "type": "object", "properties": { "min": { "type": "number" }, "max": { "type": "number" } } },
  355. "currentPosition": { "type": "string", "enum": ["below", "within", "above"] },
  356. "bandName": { "type": "string" },
  357. "goldenBand": { "type": "string", "description": "量利平衡最优带名称" },
  358. "priceStrategy": { "type": "string" },
  359. "marginEstimate": {
  360. "type": "object",
  361. "properties": {
  362. "currentMargin": { "type": "number", "description": "当前毛利率%" },
  363. "suggestedMargin": { "type": "number" },
  364. "breakEvenSales": { "type": "integer" }
  365. }
  366. },
  367. "promotionAdvice": { "type": "array", "items": { "type": "string" } }
  368. }
  369. },
  370. "listingAnalysis": {
  371. "type": "array",
  372. "description": "Listing优化评估",
  373. "items": {
  374. "type": "object",
  375. "properties": {
  376. "dimension": { "type": "string", "enum": ["title", "bullet", "searchTerm", "image", "a+content"] },
  377. "currentScore": { "type": "integer" },
  378. "potentialScore": { "type": "integer" },
  379. "tips": { "type": "array", "items": { "type": "string" } },
  380. "keywordsToAdd": { "type": "array", "items": { "type": "string" } },
  381. "priority": { "type": "string", "enum": ["high", "medium", "low"] }
  382. }
  383. }
  384. },
  385. "vocPainPoints": {
  386. "type": "array",
  387. "description": "VOC痛点(差评关键词)",
  388. "items": {
  389. "type": "object",
  390. "properties": {
  391. "painPoint": { "type": "string" },
  392. "severity": { "type": "integer", "description": "0-100" },
  393. "frequency": { "type": "integer" },
  394. "suggestion": { "type": "string" },
  395. "expectedImpact": { "type": "string", "enum": ["high", "medium", "low"] }
  396. }
  397. }
  398. },
  399. "adStrategy": {
  400. "type": "array",
  401. "description": "广告策略推荐",
  402. "items": {
  403. "type": "object",
  404. "properties": {
  405. "keyword": { "type": "string" },
  406. "matchType": { "type": "string", "enum": ["exact", "phrase", "broad"] },
  407. "suggestedBid": { "type": "number" },
  408. "expectedAcos": { "type": "number" },
  409. "dailyBudget": { "type": "number" },
  410. "priority": { "type": "string", "enum": ["high", "medium", "low"] },
  411. "reason": { "type": "string" }
  412. }
  413. }
  414. },
  415. "aiDiagnosis": {
  416. "type": "string",
  417. "description": "AI生成的核心诊断与运营建议(Markdown格式),包含: 核心诊断/流量架构透视表格/运营建议(PPC+Listing+备货)/30天行动计划"
  418. }
  419. }
  420. },
  421. "timeout": 300000,
  422. "retry": {
  423. "maxAttempts": 2,
  424. "delay": 3000,
  425. "backoffMultiplier": 2
  426. }
  427. }