| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- {
- "name": "review-pain-point-extraction",
- "displayName": "差评痛点提取",
- "description": "从差评中提取用户痛点,按类别聚类,量化频率和严重度,找到竞品死穴",
- "category": "review-analysis",
- "version": "1.3.0",
- "type": "analysis",
- "parameters": {
- "reviewCorpus": {
- "type": "object",
- "required": true,
- "description": "review-batch-collection 输出的评论语料"
- },
- "targetAsins": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "required": false,
- "description": "指定分析的ASIN列表"
- },
- "painCategories": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "required": false,
- "default": [
- "产品质量",
- "尺寸规格",
- "功能缺陷",
- "外观",
- "物流包装",
- "性价比"
- ],
- "description": "预定义痛点类别"
- }
- },
- "pipeline": [
- {
- "step": 1,
- "name": "过滤差评",
- "type": "filter",
- "logic": "filterNegativeReviews(reviewCorpus.reviews, { stars: [1, 2], targetAsins })",
- "algorithm": {
- "filter": "star<=2 && (targetAsins.length==0 || targetAsins.includes(asin))",
- "implementation": "遍历reviews数组,保留star<=2的评论,可选按targetAsins进一步过滤"
- },
- "output": "negativeReviews"
- },
- {
- "step": 2,
- "name": "AI提取痛点主题",
- "type": "ai",
- "logic": "extractPainPoints(negativeReviews, { painCategories })",
- "aiConfig": {
- "systemPrompt": "你是跨境电商VOC分析师。只输出一个合法JSON对象。禁止输出Markdown、代码围栏、解释文字。",
- "userPromptTemplate": "以下是差评样本([星级][ASIN] 标题 | 摘要)。请归纳痛点主题,按严重度排序:\n${payload}",
- "outputFormat": "{\"painPoints\":[{\"topic\":\"尺码偏小\",\"score\":85,\"category\":\"尺码规格\",\"examples\":[\"偏小一码\"]}]}",
- "temperature": 0.2,
- "maxTokens": 2000,
- "payloadFormat": "每条评论格式化为 [star★][ASIN] title | content截取前200字,按batch发送给AI"
- },
- "output": "rawPainPoints"
- },
- {
- "step": 3,
- "name": "痛点聚类+严重度排序",
- "type": "compute",
- "logic": "clusterAndRank(rawPainPoints, negativeReviews)",
- "algorithm": {
- "severityScore": "severity = frequency*0.4 + negativeImpact*0.3 + competitorGap*0.3",
- "cluster": "语义相近的合并为一个topic,各最多8条",
- "implementation": "将AI返回的痛点按topic合并,统计frequency,用severity公式排序"
- },
- "output": "rankedPainPoints"
- },
- {
- "step": 4,
- "name": "识别差异化机会",
- "type": "compute",
- "logic": "identifyOpportunityGaps(rankedPainPoints, targetAsins)",
- "algorithm": {
- "crossCompare": "对比各竞品ASIN的痛点分布,找出共性痛点和竞品独有痛点",
- "opportunity": "共性高频痛点=整个品类机会;竞品独有痛点=针对性超越机会",
- "implementation": "按ASIN分组痛点,找出多个ASIN共有的痛点(品类机会)和单ASIN独有的痛点(超越机会)"
- },
- "output": "opportunities"
- },
- {
- "step": 5,
- "name": "VOC驱动优化建议",
- "type": "compute",
- "logic": "computeVocOptimization(rankedPainPoints, reviewCorpus)",
- "algorithm": {
- "ratingGapAnalysis": {
- "benchmark": 4.6,
- "formula": "ratingGap = 4.6 - avgRating",
- "conversionImpact": "ratingGap>0 → '差距X分约影响X*100%+的转化率'",
- "target": "将均分提升至4.6+进入第一梯队"
- },
- "themeExtraction": {
- "positiveThemes": "从正面评论中提取top5好评主题",
- "negativeThemes": "从负面评论中提取top5差评主题"
- },
- "listingAdvice": [
- "标题/五点优先植入好评词根",
- "针对差评痛点做针对性承诺,打消用户顾虑,预计提升转化率15%+",
- "A+页面突出差异化卖点与使用场景"
- ],
- "productIterationAdvice": [
- "产品升级重点解决top3差评痛点",
- "目标将均分提升至4.6+进入第一梯队"
- ],
- "afterSalesAdvice": [
- "建立差评快速响应机制,24小时内联系差评用户解决问题",
- "对到货用户精准售后跟进,引导好评",
- "针对核心痛点在包裹内放置说明卡片,预计降低退货率10%+"
- ]
- },
- "output": "vocOptimization"
- }
- ],
- "response": {
- "type": "object",
- "properties": {
- "painPoints": {
- "type": "array",
- "description": "按优先级排序的痛点列表",
- "items": {
- "type": "object",
- "properties": {
- "topic": {
- "type": "string"
- },
- "score": {
- "type": "integer",
- "description": "0-100严重度"
- },
- "category": {
- "type": "string"
- },
- "frequency": {
- "type": "integer"
- },
- "examples": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "affectedAsins": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- },
- "categoryBreakdown": {
- "type": "object",
- "description": "按类别的痛点分布"
- },
- "competitorSpecific": {
- "type": "object",
- "description": "各竞品独有的痛点",
- "additionalProperties": {
- "type": "array"
- }
- },
- "opportunityGaps": {
- "type": "array",
- "description": "差异化机会点",
- "items": {
- "type": "object",
- "properties": {
- "painPoint": {
- "type": "string"
- },
- "severity": {
- "type": "integer"
- },
- "suggestion": {
- "type": "string"
- },
- "expectedImpact": {
- "type": "string",
- "enum": [
- "high",
- "medium",
- "low"
- ]
- }
- }
- }
- },
- "vocOptimization": {
- "type": "object",
- "description": "VOC驱动优化建议",
- "properties": {
- "ratingGap": {
- "type": "number",
- "description": "与标枆4.6的差距"
- },
- "conversionImpact": {
- "type": "string",
- "description": "差距对转化率的影响估算"
- },
- "topPositiveThemes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "topNegativeThemes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "listingAdvice": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "productIterationAdvice": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "afterSalesAdvice": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "timeout": 300000,
- "retry": {
- "maxAttempts": 2,
- "delay": 1000,
- "backoffMultiplier": 2
- },
- "tokenConfig": {
- "type": "bearer",
- "configFile": "~/.openclaw/voc-credentials.json",
- "tokenField": "vocToken",
- "resolutionOrder": [
- "configFile"
- ],
- "apigId": "7HwdQZk55B",
- "paymentUrlResolution": {
- "description": "动态构建充值URL:在已存在 session token 时查出用户 objectId,拼接到专属充值页面",
- "steps": [
- "1. 从 voc-credentials.json 获取当前 session token",
- "2. 调用 GET https://server.fmode.cn/parse/users/me (Header: X-Parse-Application-Id: ncloudmaster, X-Parse-Session-Token: {token})获取用户 objectId",
- "3. 拼接充值URL: https://app.fmode.cn/dev/apig-pay/?user={objectId}&apigid=7HwdQZk55B&fun_id=HOkkX72PMF",
- "4. 将该URL展示给用户,引导扫码支付"
- ],
- "userResolveEndpoint": "https://server.fmode.cn/parse/users/me",
- "userResolveHeaders": {
- "X-Parse-Application-Id": "ncloudmaster",
- "X-Parse-Session-Token": "{vocToken}"
- },
- "paymentBaseUrl": "https://app.fmode.cn/dev/apig-pay/",
- "paymentParams": {
- "user": "{resolvedUserId}",
- "apigid": "7HwdQZk55B",
- "fun_id": "HOkkX72PMF"
- },
- "balanceCheckEndpoint": "https://server.fmode.cn/api/apig/getApig"
- },
- "onMissing": {
- "action": "showPaymentQR",
- "qrCodeUrl": "https://app.fmode.cn/dev/apig-pay/?apigid=7HwdQZk55B&fun_id=HOkkX72PMF",
- "title": "扫码开通 VOC-AI 数据服务",
- "message": "此 Skill 需要有效的 API Token。请先打开充值页面完成登录和充值;当用户提供 session token 后,请由 OpenClaw 运行 node scripts/tools/set-voc-token.js <session-token> 写入 ~/.openclaw/voc-credentials.json 的 vocToken 字段,再重试当前 Skill。",
- "tokenSetupCommandTemplate": "node scripts/tools/set-voc-token.js {sessionToken}",
- "tokenSetupInstructions": "当用户完成登录和充值后,如果用户把 session token 发给你,请直接运行 node scripts/tools/set-voc-token.js <session-token> 写入 ~/.openclaw/voc-credentials.json,然后重试当前 Skill。"
- },
- "onBalanceInsufficient": {
- "action": "resolveUserThenShowPayment",
- "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": "mess",
- "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"
- }
- }
- }
|