api-config.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. {
  2. "name": "social-trend-analysis",
  3. "displayName": "社媒趋势与热度分析",
  4. "description": "综合TikTok和Instagram数据,分析品类社媒趋势、热度走向和内容生态",
  5. "category": "social-voc",
  6. "version": "1.0.0",
  7. "type": "analysis",
  8. "parameters": {
  9. "tiktokCategoryVoc": {
  10. "type": "object",
  11. "required": true,
  12. "description": "tiktok-category-voc 输出数据"
  13. },
  14. "tiktokBrandVoc": {
  15. "type": "object",
  16. "required": true,
  17. "description": "tiktok-brand-voc 输出数据"
  18. },
  19. "instagramBrandVoc": {
  20. "type": "object",
  21. "required": true,
  22. "description": "instagram-brand-voc 输出数据"
  23. },
  24. "categoryKeyword": {
  25. "type": "string",
  26. "required": true,
  27. "description": "品类关键词"
  28. }
  29. },
  30. "pipeline": [
  31. {
  32. "step": 1,
  33. "name": "跨平台热度对比",
  34. "type": "compute",
  35. "logic": "comparePlatforms(tiktokCategoryVoc, instagramBrandVoc)",
  36. "algorithm": {
  37. "tiktokHeat": "totalPlayCount + avgEngagementRate + hashtagViewCount",
  38. "instagramHeat": "totalFollowers + avgEngagementRate + avgLikeCount",
  39. "comparison": "对比两个平台的品类热度/互动质量/内容形式偏好"
  40. },
  41. "output": "platformComparison"
  42. },
  43. {
  44. "step": 2,
  45. "name": "趋势话题识别",
  46. "type": "compute",
  47. "logic": "identifyTrends(tiktokCategoryVoc, tiktokBrandVoc, instagramBrandVoc)",
  48. "algorithm": {
  49. "topicMerge": "合并TikTok视频desc高频词 + IG帖子caption高频hashtag",
  50. "trendScore": "trendScore = viewCount*0.3 + engagementRate*0.3 + recentGrowth*0.4",
  51. "classify": "分类为: 产品趋势/使用场景/内容形式/季节性热点"
  52. },
  53. "output": "trends"
  54. },
  55. {
  56. "step": 3,
  57. "name": "品牌社媒综合排名",
  58. "type": "compute",
  59. "logic": "rankBrandSocial(tiktokBrandVoc, instagramBrandVoc)",
  60. "algorithm": {
  61. "socialScore": "socialScore = tkFollowers*0.2 + tkEngagement*0.2 + igFollowers*0.2 + igEngagement*0.2 + postFrequency*0.1 + contentQuality*0.1",
  62. "ranking": "按socialScore降序排名",
  63. "insights": "每个品牌的社媒策略特点: TikTok偏重型/IG偏重型/双平台均衡型"
  64. },
  65. "output": "brandRanking"
  66. },
  67. {
  68. "step": 4,
  69. "name": "内容机会发现",
  70. "type": "compute",
  71. "logic": "findContentOpportunities(tiktokCategoryVoc, instagramBrandVoc)",
  72. "algorithm": {
  73. "gapAnalysis": "品类热门话题 vs 品牌已覆盖话题 → 发现未覆盖热点",
  74. "formatGap": "当前品类爆款内容形式 vs 品牌已采用形式",
  75. "timingOpportunity": "热门发布时间 vs 品牌当前发布时间"
  76. },
  77. "output": "opportunities"
  78. },
  79. {
  80. "step": 5,
  81. "name": "优先级行动清单",
  82. "type": "compute",
  83. "logic": "computeActions(platformComparison, trends, brandRanking, opportunities)",
  84. "algorithm": {
  85. "priorityRules": [
  86. { "priority": "highest", "condition": "未覆盖热门话题存在", "action": "立即跟进未覆盖话题,发布相关内容", "deadline": "3天内" },
  87. { "priority": "high", "condition": "互动率低于品类平均", "action": "优化内容形式,参考品类爆款视频结构", "deadline": "7天内" },
  88. { "priority": "high", "condition": "发布频率低于竞品", "action": "提升发布频率至竞品平均水平", "deadline": "7天内" },
  89. { "priority": "medium", "condition": "双平台不均衡", "action": "在弱势平台增加内容布局", "deadline": "15天内" },
  90. { "priority": "medium", "condition": "always", "action": "建立KOL合作清单,筛选高互动率中腰部达人", "deadline": "15天内" }
  91. ]
  92. },
  93. "output": "actionItems"
  94. }
  95. ],
  96. "response": {
  97. "type": "object",
  98. "properties": {
  99. "platformComparison": {
  100. "type": "object",
  101. "description": "平台热度对比",
  102. "properties": {
  103. "tiktok": { "type": "object", "properties": { "totalPlays": { "type": "integer" }, "avgEngagement": { "type": "number" } } },
  104. "instagram": { "type": "object", "properties": { "totalFollowers": { "type": "integer" }, "avgEngagement": { "type": "number" } } },
  105. "dominantPlatform": { "type": "string" },
  106. "insight": { "type": "string" }
  107. }
  108. },
  109. "trendingTopics": {
  110. "type": "array",
  111. "description": "趋势话题列表",
  112. "items": {
  113. "type": "object",
  114. "properties": {
  115. "topic": { "type": "string" },
  116. "trendScore": { "type": "number" },
  117. "category": { "type": "string" },
  118. "platforms": { "type": "array" }
  119. }
  120. }
  121. },
  122. "brandSocialRanking": {
  123. "type": "array",
  124. "description": "品牌社媒排名",
  125. "items": {
  126. "type": "object",
  127. "properties": {
  128. "brand": { "type": "string" },
  129. "socialScore": { "type": "number" },
  130. "strategyType": { "type": "string" }
  131. }
  132. }
  133. },
  134. "contentOpportunities": {
  135. "type": "array",
  136. "description": "内容机会点",
  137. "items": {
  138. "type": "object",
  139. "properties": {
  140. "opportunity": { "type": "string" },
  141. "platform": { "type": "string" },
  142. "priority": { "type": "string", "enum": ["high", "medium", "low"] }
  143. }
  144. }
  145. },
  146. "audienceInsights": {
  147. "type": "object",
  148. "description": "受众洞察",
  149. "properties": {
  150. "topCommentThemes": { "type": "array" },
  151. "sentimentDistribution": { "type": "object" },
  152. "engagementPatterns": { "type": "object" }
  153. }
  154. },
  155. "actionItems": {
  156. "type": "array",
  157. "description": "优先级行动清单",
  158. "items": {
  159. "type": "object",
  160. "properties": {
  161. "priority": { "type": "string", "enum": ["highest", "high", "medium", "low"] },
  162. "action": { "type": "string" },
  163. "deadline": { "type": "string" },
  164. "expectedResult": { "type": "string" }
  165. }
  166. }
  167. }
  168. }
  169. },
  170. "timeout": 30000,
  171. "retry": {
  172. "maxAttempts": 2,
  173. "delay": 1000,
  174. "backoffMultiplier": 2
  175. }
  176. }