api-config.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. {
  2. "name": "review-pain-point-extraction",
  3. "displayName": "差评痛点提取",
  4. "description": "从差评中提取用户痛点,按类别聚类,量化频率和严重度,找到竞品死穴",
  5. "category": "review-analysis",
  6. "version": "1.0.0",
  7. "type": "analysis",
  8. "parameters": {
  9. "reviewCorpus": {
  10. "type": "object",
  11. "required": true,
  12. "description": "review-batch-collection 输出的评论语料"
  13. },
  14. "targetAsins": {
  15. "type": "array",
  16. "items": { "type": "string" },
  17. "required": false,
  18. "description": "指定分析的ASIN列表"
  19. },
  20. "painCategories": {
  21. "type": "array",
  22. "items": { "type": "string" },
  23. "required": false,
  24. "default": ["产品质量", "尺寸规格", "功能缺陷", "外观", "物流包装", "性价比"],
  25. "description": "预定义痛点类别"
  26. }
  27. },
  28. "pipeline": [
  29. {
  30. "step": 1,
  31. "name": "过滤差评",
  32. "type": "filter",
  33. "logic": "filterNegativeReviews(reviewCorpus.reviews, { stars: [1, 2], targetAsins })",
  34. "algorithm": {
  35. "filter": "star<=2 && (targetAsins.length==0 || targetAsins.includes(asin))",
  36. "implementation": "遍历reviews数组,保留star<=2的评论,可选按targetAsins进一步过滤"
  37. },
  38. "output": "negativeReviews"
  39. },
  40. {
  41. "step": 2,
  42. "name": "AI提取痛点主题",
  43. "type": "ai",
  44. "logic": "extractPainPoints(negativeReviews, { painCategories })",
  45. "aiConfig": {
  46. "systemPrompt": "你是跨境电商VOC分析师。只输出一个合法JSON对象。禁止输出Markdown、代码围栏、解释文字。",
  47. "userPromptTemplate": "以下是差评样本([星级][ASIN] 标题 | 摘要)。请归纳痛点主题,按严重度排序:\n${payload}",
  48. "outputFormat": "{\"painPoints\":[{\"topic\":\"尺码偏小\",\"score\":85,\"category\":\"尺码规格\",\"examples\":[\"偏小一码\"]}]}",
  49. "temperature": 0.2,
  50. "maxTokens": 2000,
  51. "payloadFormat": "每条评论格式化为 [star★][ASIN] title | content截取前200字,按batch发送给AI"
  52. },
  53. "output": "rawPainPoints"
  54. },
  55. {
  56. "step": 3,
  57. "name": "痛点聚类+严重度排序",
  58. "type": "compute",
  59. "logic": "clusterAndRank(rawPainPoints, negativeReviews)",
  60. "algorithm": {
  61. "severityScore": "severity = frequency*0.4 + negativeImpact*0.3 + competitorGap*0.3",
  62. "cluster": "语义相近的合并为一个topic,各最多8条",
  63. "implementation": "将AI返回的痛点按topic合并,统计frequency,用severity公式排序"
  64. },
  65. "output": "rankedPainPoints"
  66. },
  67. {
  68. "step": 4,
  69. "name": "识别差异化机会",
  70. "type": "compute",
  71. "logic": "identifyOpportunityGaps(rankedPainPoints, targetAsins)",
  72. "algorithm": {
  73. "crossCompare": "对比各竞品ASIN的痛点分布,找出共性痛点和竞品独有痛点",
  74. "opportunity": "共性高频痛点=整个品类机会;竞品独有痛点=针对性超越机会",
  75. "implementation": "按ASIN分组痛点,找出多个ASIN共有的痛点(品类机会)和单ASIN独有的痛点(超越机会)"
  76. },
  77. "output": "opportunities"
  78. },
  79. {
  80. "step": 5,
  81. "name": "VOC驱动优化建议",
  82. "type": "compute",
  83. "logic": "computeVocOptimization(rankedPainPoints, reviewCorpus)",
  84. "algorithm": {
  85. "ratingGapAnalysis": {
  86. "benchmark": 4.6,
  87. "formula": "ratingGap = 4.6 - avgRating",
  88. "conversionImpact": "ratingGap>0 → '差距X分约影响X*100%+的转化率'",
  89. "target": "将均分提升至4.6+进入第一梯队"
  90. },
  91. "themeExtraction": {
  92. "positiveThemes": "从正面评论中提取top5好评主题",
  93. "negativeThemes": "从负面评论中提取top5差评主题"
  94. },
  95. "listingAdvice": [
  96. "标题/五点优先植入好评词根",
  97. "针对差评痛点做针对性承诺,打消用户顾虑,预计提升转化率15%+",
  98. "A+页面突出差异化卖点与使用场景"
  99. ],
  100. "productIterationAdvice": [
  101. "产品升级重点解决top3差评痛点",
  102. "目标将均分提升至4.6+进入第一梯队"
  103. ],
  104. "afterSalesAdvice": [
  105. "建立差评快速响应机制,24小时内联系差评用户解决问题",
  106. "对到货用户精准售后跟进,引导好评",
  107. "针对核心痛点在包裹内放置说明卡片,预计降低退货率10%+"
  108. ]
  109. },
  110. "output": "vocOptimization"
  111. }
  112. ],
  113. "response": {
  114. "type": "object",
  115. "properties": {
  116. "painPoints": {
  117. "type": "array",
  118. "description": "按优先级排序的痛点列表",
  119. "items": {
  120. "type": "object",
  121. "properties": {
  122. "topic": { "type": "string" },
  123. "score": { "type": "integer", "description": "0-100严重度" },
  124. "category": { "type": "string" },
  125. "frequency": { "type": "integer" },
  126. "examples": { "type": "array", "items": { "type": "string" } },
  127. "affectedAsins": { "type": "array", "items": { "type": "string" } }
  128. }
  129. }
  130. },
  131. "categoryBreakdown": {
  132. "type": "object",
  133. "description": "按类别的痛点分布"
  134. },
  135. "competitorSpecific": {
  136. "type": "object",
  137. "description": "各竞品独有的痛点",
  138. "additionalProperties": { "type": "array" }
  139. },
  140. "opportunityGaps": {
  141. "type": "array",
  142. "description": "差异化机会点",
  143. "items": {
  144. "type": "object",
  145. "properties": {
  146. "painPoint": { "type": "string" },
  147. "severity": { "type": "integer" },
  148. "suggestion": { "type": "string" },
  149. "expectedImpact": { "type": "string", "enum": ["high", "medium", "low"] }
  150. }
  151. }
  152. },
  153. "vocOptimization": {
  154. "type": "object",
  155. "description": "VOC驱动优化建议",
  156. "properties": {
  157. "ratingGap": { "type": "number", "description": "与标枆4.6的差距" },
  158. "conversionImpact": { "type": "string", "description": "差距对转化率的影响估算" },
  159. "topPositiveThemes": { "type": "array", "items": { "type": "string" } },
  160. "topNegativeThemes": { "type": "array", "items": { "type": "string" } },
  161. "listingAdvice": { "type": "array", "items": { "type": "string" } },
  162. "productIterationAdvice": { "type": "array", "items": { "type": "string" } },
  163. "afterSalesAdvice": { "type": "array", "items": { "type": "string" } }
  164. }
  165. }
  166. }
  167. },
  168. "timeout": 60000,
  169. "retry": {
  170. "maxAttempts": 2,
  171. "delay": 1000,
  172. "backoffMultiplier": 2
  173. }
  174. }