{ "name": "social-trend-analysis", "displayName": "社媒趋势与热度分析", "description": "综合TikTok和Instagram数据,分析品类社媒趋势、热度走向和内容生态", "category": "social-voc", "version": "1.3.0", "type": "analysis", "parameters": { "tiktokCategoryVoc": { "type": "object", "required": true, "description": "tiktok-category-voc 输出数据" }, "tiktokBrandVoc": { "type": "object", "required": true, "description": "tiktok-brand-voc 输出数据" }, "instagramBrandVoc": { "type": "object", "required": true, "description": "instagram-brand-voc 输出数据" }, "categoryKeyword": { "type": "string", "required": true, "description": "品类关键词" } }, "pipeline": [ { "step": 1, "name": "跨平台热度对比", "type": "compute", "logic": "comparePlatforms(tiktokCategoryVoc, instagramBrandVoc)", "algorithm": { "tiktokHeat": "totalPlayCount + avgEngagementRate + hashtagViewCount", "instagramHeat": "totalFollowers + avgEngagementRate + avgLikeCount", "comparison": "对比两个平台的品类热度/互动质量/内容形式偏好" }, "output": "platformComparison" }, { "step": 2, "name": "趋势话题识别", "type": "compute", "logic": "identifyTrends(tiktokCategoryVoc, tiktokBrandVoc, instagramBrandVoc)", "algorithm": { "topicMerge": "合并TikTok视频desc高频词 + IG帖子caption高频hashtag", "trendScore": "trendScore = viewCount*0.3 + engagementRate*0.3 + recentGrowth*0.4", "classify": "分类为: 产品趋势/使用场景/内容形式/季节性热点" }, "output": "trends" }, { "step": 3, "name": "品牌社媒综合排名", "type": "compute", "logic": "rankBrandSocial(tiktokBrandVoc, instagramBrandVoc)", "algorithm": { "socialScore": "socialScore = tkFollowers*0.2 + tkEngagement*0.2 + igFollowers*0.2 + igEngagement*0.2 + postFrequency*0.1 + contentQuality*0.1", "ranking": "按socialScore降序排名", "insights": "每个品牌的社媒策略特点: TikTok偏重型/IG偏重型/双平台均衡型" }, "output": "brandRanking" }, { "step": 4, "name": "内容机会发现", "type": "compute", "logic": "findContentOpportunities(tiktokCategoryVoc, instagramBrandVoc)", "algorithm": { "gapAnalysis": "品类热门话题 vs 品牌已覆盖话题 → 发现未覆盖热点", "formatGap": "当前品类爆款内容形式 vs 品牌已采用形式", "timingOpportunity": "热门发布时间 vs 品牌当前发布时间" }, "output": "opportunities" }, { "step": 5, "name": "优先级行动清单", "type": "compute", "logic": "computeActions(platformComparison, trends, brandRanking, opportunities)", "algorithm": { "priorityRules": [ { "priority": "highest", "condition": "未覆盖热门话题存在", "action": "立即跟进未覆盖话题,发布相关内容", "deadline": "3天内" }, { "priority": "high", "condition": "互动率低于品类平均", "action": "优化内容形式,参考品类爆款视频结构", "deadline": "7天内" }, { "priority": "high", "condition": "发布频率低于竞品", "action": "提升发布频率至竞品平均水平", "deadline": "7天内" }, { "priority": "medium", "condition": "双平台不均衡", "action": "在弱势平台增加内容布局", "deadline": "15天内" }, { "priority": "medium", "condition": "always", "action": "建立KOL合作清单,筛选高互动率中腰部达人", "deadline": "15天内" } ] }, "output": "actionItems" } ], "response": { "type": "object", "properties": { "platformComparison": { "type": "object", "description": "平台热度对比", "properties": { "tiktok": { "type": "object", "properties": { "totalPlays": { "type": "integer" }, "avgEngagement": { "type": "number" } } }, "instagram": { "type": "object", "properties": { "totalFollowers": { "type": "integer" }, "avgEngagement": { "type": "number" } } }, "dominantPlatform": { "type": "string" }, "insight": { "type": "string" } } }, "trendingTopics": { "type": "array", "description": "趋势话题列表", "items": { "type": "object", "properties": { "topic": { "type": "string" }, "trendScore": { "type": "number" }, "category": { "type": "string" }, "platforms": { "type": "array" } } } }, "brandSocialRanking": { "type": "array", "description": "品牌社媒排名", "items": { "type": "object", "properties": { "brand": { "type": "string" }, "socialScore": { "type": "number" }, "strategyType": { "type": "string" } } } }, "contentOpportunities": { "type": "array", "description": "内容机会点", "items": { "type": "object", "properties": { "opportunity": { "type": "string" }, "platform": { "type": "string" }, "priority": { "type": "string", "enum": [ "high", "medium", "low" ] } } } }, "audienceInsights": { "type": "object", "description": "受众洞察", "properties": { "topCommentThemes": { "type": "array" }, "sentimentDistribution": { "type": "object" }, "engagementPatterns": { "type": "object" } } }, "actionItems": { "type": "array", "description": "优先级行动清单", "items": { "type": "object", "properties": { "priority": { "type": "string", "enum": [ "highest", "high", "medium", "low" ] }, "action": { "type": "string" }, "deadline": { "type": "string" }, "expectedResult": { "type": "string" } } } } } }, "timeout": 120000, "retry": { "maxAttempts": 2, "delay": 1000, "backoffMultiplier": 2 }, "tokenConfig": { "type": "bearer", "configFile": "~/.openclaw/voc-credentials.json", "tokenField": "vocToken", "resolutionOrder": [ "configFile" ], "apigId": "Vo3ROWEvDy", "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=Vo3ROWEvDy&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": "Vo3ROWEvDy", "fun_id": "HOkkX72PMF" }, "balanceCheckEndpoint": "https://server.fmode.cn/api/apig/getApig" }, "onMissing": { "action": "showPaymentQR", "qrCodeUrl": "https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF", "title": "扫码开通 VOC-AI 数据服务", "message": "此 Skill 需要有效的 API Token。请先打开充值页面完成登录和充值;当用户提供 session token 后,请由 OpenClaw 运行 node scripts/tools/set-voc-token.js 写入 ~/.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 写入 ~/.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" } } }