report_generation.workflow.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. {
  2. "name": "competitive_analysis_report",
  3. "displayName": "竞品分析报告生成",
  4. "description": "端到端编排:从输入行业关键词和竞品品牌,到自动采集数据、AI 分析、生成 HTML 幻灯片报告。覆盖市场全景、竞品对标、VOC 用户洞察、社媒热度、趋势雷达、执行策略等完整报告内容。",
  5. "version": "1.0.0",
  6. "input": {
  7. "type": "object",
  8. "required": ["industryName", "categoryKeywords", "competitorBrands"],
  9. "properties": {
  10. "industryName": {
  11. "type": "string",
  12. "description": "行业名称,如 '香薰'、'宠物用品'、'家居收纳'",
  13. "example": "香薰"
  14. },
  15. "categoryKeywords": {
  16. "type": "array",
  17. "description": "品类搜索关键词列表(每个关键词对应一个子品类)",
  18. "items": { "type": "string" },
  19. "example": ["scented candle", "aroma diffuser", "candle warmer", "car diffuser", "reed diffuser"]
  20. },
  21. "competitorBrands": {
  22. "type": "array",
  23. "description": "竞品品牌列表,每个品牌包含名称和社媒账号",
  24. "items": {
  25. "type": "object",
  26. "properties": {
  27. "name": { "type": "string", "description": "品牌名称" },
  28. "positioning": { "type": "string", "description": "品牌定位标签,如 '高端标杆'、'可持续标杆'" },
  29. "instagramUsername": { "type": "string", "description": "Instagram 用户名" },
  30. "tiktokUsername": { "type": "string", "description": "TikTok 用户名" },
  31. "sampleAsins": { "type": "array", "items": { "type": "string" }, "description": "品牌代表性 ASIN 列表" }
  32. }
  33. },
  34. "example": [
  35. { "name": "NEST New York", "positioning": "高端标杆", "instagramUsername": "nestnewyork", "tiktokUsername": "nestnewyork", "sampleAsins": ["B07GZXX3Q9"] },
  36. { "name": "Paddywax", "positioning": "可持续标杆", "instagramUsername": "paddywax", "tiktokUsername": "paddywax", "sampleAsins": ["B09MRGV1QY"] },
  37. { "name": "SpaRoom", "positioning": "待提升", "instagramUsername": "sparoom", "tiktokUsername": "", "sampleAsins": [] }
  38. ]
  39. },
  40. "vocAsins": {
  41. "type": "array",
  42. "description": "用于 VOC 深度分析的 ASIN 列表(通常选品类 Top3 畅销品)",
  43. "items": { "type": "string" },
  44. "example": ["B0B24QJ217", "B0DJHP1FCS", "B0CSVRWJ1H"]
  45. },
  46. "trendKeywords": {
  47. "type": "array",
  48. "description": "趋势雷达追踪的关键词列表",
  49. "items": { "type": "string" },
  50. "example": ["candle warmer lamp aesthetic", "reed diffuser natural oil", "aroma diffuser jellyfish", "organic scented candle gift", "car diffuser essential oil USB"]
  51. },
  52. "domain": {
  53. "type": "integer",
  54. "description": "Amazon 站点: 1=US, 2=UK, 3=DE",
  55. "default": 1
  56. },
  57. "reviewPages": {
  58. "type": "integer",
  59. "description": "每个 VOC ASIN 抓取的评论页数(每页约10条)",
  60. "default": 10
  61. }
  62. }
  63. },
  64. "stages": [
  65. {
  66. "id": "stage_1",
  67. "name": "品类市场数据采集",
  68. "description": "并行搜索各品类关键词,获取 Top 产品列表和基础数据",
  69. "parallel": true,
  70. "steps": [
  71. {
  72. "id": "1.1",
  73. "name": "品类产品搜索",
  74. "skill": "product_search",
  75. "iterate": "input.categoryKeywords",
  76. "iterateAs": "keyword",
  77. "input": {
  78. "Pattern": "{{keyword}}",
  79. "Page": 1,
  80. "domain": "{{input.domain}}"
  81. },
  82. "output": "categoryProducts[{{keyword}}]",
  83. "description": "对每个品类关键词执行产品搜索,获取产品列表"
  84. },
  85. {
  86. "id": "1.2",
  87. "name": "品类产品详情补全",
  88. "skill": "product_detail_query",
  89. "dependsOn": ["1.1"],
  90. "iterate": "categoryProducts[*].topAsins[:20]",
  91. "iterateAs": "asin",
  92. "input": {
  93. "ASIN": "{{asin}}",
  94. "domain": "{{input.domain}}",
  95. "Trend": 1
  96. },
  97. "output": "productDetails[{{asin}}]",
  98. "rateLimit": { "maxConcurrent": 5, "delayMs": 200 },
  99. "description": "批量获取 Top20 产品详情(价格/评分/销量/品牌)"
  100. },
  101. {
  102. "id": "1.3",
  103. "name": "品类销量数据",
  104. "skill": "asin_sales_volume",
  105. "dependsOn": ["1.1"],
  106. "iterate": "categoryProducts[*].topAsins[:10]",
  107. "iterateAs": "asin",
  108. "input": {
  109. "ASIN": "{{asin}}",
  110. "domain": "{{input.domain}}"
  111. },
  112. "output": "salesData[{{asin}}]",
  113. "rateLimit": { "maxConcurrent": 3, "delayMs": 300 },
  114. "description": "获取 Top10 产品销量用于计算周均销售额"
  115. }
  116. ],
  117. "aggregation": {
  118. "output": "marketOverview",
  119. "logic": "对每个品类汇总: 周均销量、周均销售额、均价、品牌数、增长率、中国卖家占比"
  120. }
  121. },
  122. {
  123. "id": "stage_2",
  124. "name": "竞品品牌数据采集",
  125. "description": "采集竞品品牌的产品数据和社媒数据",
  126. "parallel": true,
  127. "steps": [
  128. {
  129. "id": "2.1",
  130. "name": "竞品产品详情",
  131. "skill": "product_detail_query",
  132. "iterate": "input.competitorBrands[*].sampleAsins",
  133. "iterateAs": "asin",
  134. "input": {
  135. "ASIN": "{{asin}}",
  136. "domain": "{{input.domain}}",
  137. "Trend": 1
  138. },
  139. "output": "competitorProducts[{{asin}}]",
  140. "description": "获取竞品代表性产品的详情"
  141. },
  142. {
  143. "id": "2.2",
  144. "name": "竞品 Instagram 画像",
  145. "skill": "instagram_user_info",
  146. "iterate": "input.competitorBrands",
  147. "iterateAs": "brand",
  148. "condition": "brand.instagramUsername != ''",
  149. "input": {
  150. "username": "{{brand.instagramUsername}}"
  151. },
  152. "output": "igProfiles[{{brand.name}}]",
  153. "description": "获取竞品 IG 粉丝数、帖子数等"
  154. },
  155. {
  156. "id": "2.3",
  157. "name": "竞品 TikTok 画像",
  158. "skill": "tiktok_user_profile",
  159. "iterate": "input.competitorBrands",
  160. "iterateAs": "brand",
  161. "condition": "brand.tiktokUsername != ''",
  162. "input": {
  163. "uniqueId": "{{brand.tiktokUsername}}"
  164. },
  165. "output": "tiktokProfiles[{{brand.name}}]",
  166. "description": "获取竞品 TikTok 粉丝数、获赞数"
  167. },
  168. {
  169. "id": "2.4",
  170. "name": "竞品 IG 帖子分析",
  171. "skill": "instagram_user_posts",
  172. "dependsOn": ["2.2"],
  173. "iterate": "igProfiles",
  174. "iterateAs": "profile",
  175. "input": {
  176. "user_id": "{{profile.user.pk}}",
  177. "count": 12
  178. },
  179. "output": "igPosts[{{profile.user.username}}]",
  180. "description": "获取竞品最近帖子分析内容策略"
  181. }
  182. ],
  183. "aggregation": {
  184. "output": "competitorBenchmark",
  185. "logic": "整合每个品牌的: 产品数据(价格/评分/SKU数) + IG(粉丝/帖子/互动率) + TikTok(粉丝/获赞)"
  186. }
  187. },
  188. {
  189. "id": "stage_3",
  190. "name": "VOC 评论采集与分析",
  191. "description": "抓取目标产品评论并进行 AI 情感分析",
  192. "steps": [
  193. {
  194. "id": "3.1",
  195. "name": "评论批量抓取",
  196. "skill": "product_reviews_query",
  197. "iterate": "input.vocAsins",
  198. "iterateAs": "asin",
  199. "repeatPages": "input.reviewPages",
  200. "input": {
  201. "ASIN": "{{asin}}",
  202. "PageIndex": "{{pageIndex}}",
  203. "domain": "{{input.domain}}"
  204. },
  205. "output": "rawReviews[{{asin}}]",
  206. "rateLimit": { "maxConcurrent": 2, "delayMs": 500 },
  207. "description": "逐页抓取每个 ASIN 的评论(每页约10条,默认10页≈100条/ASIN)"
  208. },
  209. {
  210. "id": "3.2",
  211. "name": "AI 情感分类与痛点提取",
  212. "type": "ai_analysis",
  213. "dependsOn": ["3.1"],
  214. "input": {
  215. "reviews": "{{rawReviews}}",
  216. "systemPrompt": "你是一名专业的亚马逊产品评论分析师。请对以下用户评论进行深度分析。",
  217. "userPrompt": "请对以下 {{reviewCount}} 条用户评论进行分析,输出 JSON 格式结果:\n\n1. **情感分类**: 每条评论标记为 positive/negative/neutral\n2. **痛点提取**: 列出 Top5 痛点及占比(如 '化学味/人工感 30.5%'),每个痛点附带代表性原文\n3. **喜爱点提取**: 列出 Top5 好评亮点及占比\n4. **使用场景**: 提取用户提到的使用场景及占比(如 '浴室 48.7%')\n5. **关键洞察**: 3-5 条核心商业洞察\n\n评论数据:\n{{reviewsText}}"
  218. },
  219. "output": "vocAnalysis",
  220. "outputSchema": {
  221. "totalReviews": "integer",
  222. "positiveRate": "number",
  223. "negativeRate": "number",
  224. "painPoints": [{ "name": "string", "percentage": "number", "quote": "string" }],
  225. "highlights": [{ "name": "string", "percentage": "number" }],
  226. "usageScenes": [{ "scene": "string", "percentage": "number" }],
  227. "insights": ["string"]
  228. },
  229. "description": "AI 自动提取痛点/喜爱点/场景分布"
  230. }
  231. ]
  232. },
  233. {
  234. "id": "stage_4",
  235. "name": "社媒热度与趋势数据",
  236. "description": "采集 TikTok 品类热度和关键词趋势",
  237. "parallel": true,
  238. "steps": [
  239. {
  240. "id": "4.1",
  241. "name": "TikTok 品类视频搜索",
  242. "skill": "tiktok_video_search",
  243. "iterate": "input.categoryKeywords",
  244. "iterateAs": "keyword",
  245. "input": {
  246. "keyword": "{{keyword}}",
  247. "count": 20
  248. },
  249. "output": "tiktokVideos[{{keyword}}]",
  250. "description": "搜索每个品类在 TikTok 的视频,统计总播放量"
  251. },
  252. {
  253. "id": "4.2",
  254. "name": "关键词搜索趋势",
  255. "skill": "keyword_search_trend",
  256. "iterate": "input.trendKeywords",
  257. "iterateAs": "keyword",
  258. "input": {
  259. "keyword": "{{keyword}}",
  260. "domain": "{{input.domain}}"
  261. },
  262. "output": "keywordTrends[{{keyword}}]",
  263. "description": "获取飙升关键词的搜索量趋势"
  264. },
  265. {
  266. "id": "4.3",
  267. "name": "关键词搜索量查询",
  268. "skill": "keyword_search",
  269. "iterate": "input.trendKeywords",
  270. "iterateAs": "keyword",
  271. "input": {
  272. "keyword": "{{keyword}}",
  273. "domain": "{{input.domain}}"
  274. },
  275. "output": "keywordData[{{keyword}}]",
  276. "description": "获取关键词搜索量和竞争度"
  277. },
  278. {
  279. "id": "4.4",
  280. "name": "TikTok 达人搜索",
  281. "skill": "tiktok_user_search",
  282. "iterate": "input.categoryKeywords[:3]",
  283. "iterateAs": "keyword",
  284. "input": {
  285. "keyword": "{{keyword}}",
  286. "count": 10
  287. },
  288. "output": "tiktokInfluencers[{{keyword}}]",
  289. "description": "搜索品类相关达人用于红人推荐"
  290. }
  291. ],
  292. "aggregation": {
  293. "output": "socialTrends",
  294. "logic": "汇总: 品类TikTok总播放量排名 + 飙升关键词Top5 + 红人推荐列表"
  295. }
  296. },
  297. {
  298. "id": "stage_5",
  299. "name": "广告关键词分析",
  300. "description": "基于 VOC 痛点和品类数据生成广告关键词推荐",
  301. "dependsOn": ["stage_3", "stage_4"],
  302. "steps": [
  303. {
  304. "id": "5.1",
  305. "name": "竞品 ASIN 反查关键词",
  306. "skill": "asin_reverse_keywords",
  307. "iterate": "input.vocAsins",
  308. "iterateAs": "asin",
  309. "input": {
  310. "ASIN": "{{asin}}",
  311. "domain": "{{input.domain}}"
  312. },
  313. "output": "asinKeywords[{{asin}}]",
  314. "description": "反查竞品排名靠前的搜索关键词"
  315. },
  316. {
  317. "id": "5.2",
  318. "name": "AI 广告关键词推荐",
  319. "type": "ai_analysis",
  320. "dependsOn": ["5.1"],
  321. "input": {
  322. "vocAnalysis": "{{vocAnalysis}}",
  323. "asinKeywords": "{{asinKeywords}}",
  324. "keywordData": "{{keywordData}}",
  325. "systemPrompt": "你是一名亚马逊广告优化专家。",
  326. "userPrompt": "基于以下数据,为该品类推荐高转化广告关键词:\n\n## VOC 痛点\n{{vocAnalysis.painPoints}}\n\n## 竞品关键词\n{{asinKeywords}}\n\n## 关键词搜索量\n{{keywordData}}\n\n请输出 JSON 格式,每个关键词包含: keyword, searchVolume, competition, suggestedBid, vocMatchScore(基于痛点匹配度0-100), reason"
  327. },
  328. "output": "adKeywordRecommendations",
  329. "description": "AI 结合 VOC 痛点生成 VOC 匹配度排序的广告关键词"
  330. }
  331. ]
  332. },
  333. {
  334. "id": "stage_6",
  335. "name": "AI 综合分析与策略生成",
  336. "description": "整合所有数据生成执行策略、Listing 优化、总结",
  337. "dependsOn": ["stage_1", "stage_2", "stage_3", "stage_4", "stage_5"],
  338. "steps": [
  339. {
  340. "id": "6.1",
  341. "name": "AI 执行策略生成",
  342. "type": "ai_analysis",
  343. "input": {
  344. "marketOverview": "{{marketOverview}}",
  345. "competitorBenchmark": "{{competitorBenchmark}}",
  346. "vocAnalysis": "{{vocAnalysis}}",
  347. "socialTrends": "{{socialTrends}}",
  348. "systemPrompt": "你是一名资深跨境电商战略顾问,擅长制定市场进入策略。",
  349. "userPrompt": "基于以下{{input.industryName}}行业数据,生成分阶段执行策略(JSON格式):\n\n## 市场全景\n{{marketOverview}}\n\n## 竞品对标\n{{competitorBenchmark}}\n\n## VOC 用户洞察\n{{vocAnalysis}}\n\n## 社媒趋势\n{{socialTrends}}\n\n请输出:\n1. shortTerm (1-3个月): 3条行动项\n2. midTerm (3-6个月): 3条行动项\n3. longTerm (6-12个月): 3条行动项\n4. vocDrivenPriorities: 基于VOC的产品开发优先级\n5. keyConclusions: 3大关键行动总结"
  350. },
  351. "output": "strategyPlan"
  352. },
  353. {
  354. "id": "6.2",
  355. "name": "AI Listing 优化建议",
  356. "type": "ai_analysis",
  357. "input": {
  358. "vocAnalysis": "{{vocAnalysis}}",
  359. "competitorProducts": "{{competitorProducts}}",
  360. "systemPrompt": "你是亚马逊 Listing 优化专家,精通 A9 算法和消费者心理学。",
  361. "userPrompt": "基于 VOC 分析结果,为{{input.industryName}}品类生成 Listing 优化方案(JSON格式):\n\n## VOC 痛点与喜爱点\n{{vocAnalysis}}\n\n## 竞品 Listing 参考\n{{competitorProducts}}\n\n请输出:\n1. currentTitle: 竞品当前标题(举例)\n2. optimizedTitle: AI 优化标题\n3. titleRationale: 优化依据(引用VOC数据)\n4. bulletPoints: 5条优化后的 Bullet Points(每条标注对应的VOC数据支撑)\n5. searchTerms: 建议后台搜索词"
  362. },
  363. "output": "listingOptimization"
  364. },
  365. {
  366. "id": "6.3",
  367. "name": "品类机会矩阵评估",
  368. "type": "ai_analysis",
  369. "input": {
  370. "marketOverview": "{{marketOverview}}",
  371. "socialTrends": "{{socialTrends}}",
  372. "vocAnalysis": "{{vocAnalysis}}",
  373. "systemPrompt": "你是一名电商品类分析专家。",
  374. "userPrompt": "基于以下数据,为每个品类生成综合机会评估矩阵(JSON格式):\n\n## 品类市场数据\n{{marketOverview}}\n\n## TikTok 热度\n{{socialTrends.tiktokPlayCounts}}\n\n请输出每个品类的: categoryName, marketSize(1-5星), growth(1-5星), socialHeat(1-5星), competition(低/中/高/极高), chineseSeller(%), recommendation(最优先/高优先/推荐/需谨慎/可考虑), reason"
  375. },
  376. "output": "categoryMatrix"
  377. }
  378. ]
  379. },
  380. {
  381. "id": "stage_7",
  382. "name": "报告渲染",
  383. "description": "将所有数据注入 HTML 模板生成最终报告",
  384. "dependsOn": ["stage_6"],
  385. "steps": [
  386. {
  387. "id": "7.1",
  388. "name": "组装报告数据",
  389. "type": "data_transform",
  390. "input": {
  391. "industryName": "{{input.industryName}}",
  392. "marketOverview": "{{marketOverview}}",
  393. "competitorBenchmark": "{{competitorBenchmark}}",
  394. "vocAnalysis": "{{vocAnalysis}}",
  395. "socialTrends": "{{socialTrends}}",
  396. "adKeywordRecommendations": "{{adKeywordRecommendations}}",
  397. "strategyPlan": "{{strategyPlan}}",
  398. "listingOptimization": "{{listingOptimization}}",
  399. "categoryMatrix": "{{categoryMatrix}}"
  400. },
  401. "output": "reportData",
  402. "transform": {
  403. "slides": [
  404. {
  405. "id": "cover",
  406. "title": "{{industryName}}行业竞品与B端线索分析报告",
  407. "subtitle": "基于Amazon电商数据 · TikTok/Instagram社媒数据 · {{vocAnalysis.totalReviews}}条用户评论VOC分析",
  408. "date": "{{currentDate}}"
  409. },
  410. {
  411. "id": "toc",
  412. "sections": ["核心执行摘要", "品类市场全景分析", "核心竞品深度对标", "全渠道用户VOC与需求洞察", "B端高价值线索与品类矩阵", "市场拓展与落地执行建议", "总结与展望", "AI-VOC 智能系统展示"]
  413. },
  414. {
  415. "id": "executive_summary",
  416. "metrics": "从 marketOverview 提取 Top4 核心指标卡片",
  417. "coreFindings": "从 vocAnalysis + marketOverview 提取5条核心发现",
  418. "coreValues": "从 strategyPlan 提取5条核心价值"
  419. },
  420. {
  421. "id": "market_overview",
  422. "revenueChart": "从 marketOverview 生成品类周均销售额柱状图数据",
  423. "growthChart": "从 marketOverview 生成品类增长率横向柱状图数据",
  424. "dataTable": "品类数据表: 品类/周均销量/周均销售额/均价/品牌数/增长率/中国卖家占比"
  425. },
  426. {
  427. "id": "competitor_benchmark",
  428. "brands": "从 competitorBenchmark 生成3个品牌卡片(IG粉丝/TikTok/Amazon SKU/策略)",
  429. "radarChart": "从 competitorBenchmark 生成竞品能力雷达图(品牌知名度/社媒粉丝/内容质量/产品线宽度/价格竞争力)"
  430. },
  431. {
  432. "id": "voc_insights",
  433. "painPoints": "从 vocAnalysis.painPoints 生成痛点进度条",
  434. "highlights": "从 vocAnalysis.highlights 生成好评进度条",
  435. "scenesChart": "从 vocAnalysis.usageScenes 生成使用场景饼图"
  436. },
  437. {
  438. "id": "category_matrix",
  439. "opportunityTable": "从 categoryMatrix 生成品类机会评估表格",
  440. "tiktokChart": "从 socialTrends 生成 TikTok 热度排名柱状图",
  441. "seasonality": "从 marketOverview 提取季节性规律"
  442. },
  443. {
  444. "id": "strategy",
  445. "shortTerm": "从 strategyPlan.shortTerm 生成1-3月行动项",
  446. "midTerm": "从 strategyPlan.midTerm 生成3-6月行动项",
  447. "longTerm": "从 strategyPlan.longTerm 生成6-12月行动项",
  448. "vocPriorities": "从 strategyPlan.vocDrivenPriorities 生成VOC驱动优先级标签"
  449. },
  450. {
  451. "id": "conclusion",
  452. "topCategory": "最优先品类(从 categoryMatrix 取排名第1)",
  453. "socialDividend": "最具社媒红利品类",
  454. "differentiator": "最大差异化机会(从 vocAnalysis 取最大痛点)",
  455. "keyActions": "从 strategyPlan.keyConclusions 取3大关键行动"
  456. }
  457. ]
  458. }
  459. },
  460. {
  461. "id": "7.2",
  462. "name": "渲染 HTML 报告",
  463. "type": "template_render",
  464. "input": {
  465. "template": "report_template.html",
  466. "data": "{{reportData}}"
  467. },
  468. "output": "finalReport",
  469. "description": "使用 Chart.js 渲染图表,注入数据到 HTML 幻灯片模板"
  470. }
  471. ]
  472. }
  473. ],
  474. "errorHandling": {
  475. "retryPolicy": {
  476. "maxRetries": 3,
  477. "backoffMs": [1000, 3000, 10000],
  478. "retryableErrors": ["TIMEOUT", "RATE_LIMIT", "CAPTCHA_BLOCKED"]
  479. },
  480. "fallbacks": {
  481. "product_search": "当 ProductQuery 被验证码拦截(code=-10)时,回退到批量 product_detail_query",
  482. "tiktok_*": "TikHub 接口失败时,跳过该数据点,在报告中标注 '社媒数据暂不可用'",
  483. "instagram_*": "IG 接口失败时,跳过该品牌的社媒数据"
  484. },
  485. "timeout": {
  486. "perStep": 30000,
  487. "perStage": 120000,
  488. "total": 600000
  489. }
  490. },
  491. "output": {
  492. "type": "object",
  493. "properties": {
  494. "report": {
  495. "type": "string",
  496. "format": "html",
  497. "description": "完整的 HTML 幻灯片报告文件"
  498. },
  499. "rawData": {
  500. "type": "object",
  501. "description": "所有中间数据的 JSON 快照(可用于二次分析)"
  502. },
  503. "metadata": {
  504. "type": "object",
  505. "properties": {
  506. "generatedAt": { "type": "string", "format": "datetime" },
  507. "totalApiCalls": { "type": "integer" },
  508. "totalReviewsAnalyzed": { "type": "integer" },
  509. "dataFreshness": { "type": "string" },
  510. "errors": { "type": "array", "description": "执行过程中的错误/警告列表" }
  511. }
  512. }
  513. }
  514. },
  515. "billing": {
  516. "description": "计费逻辑",
  517. "items": [
  518. { "type": "sorftime_api_call", "unit": "次", "description": "每次 Sorftime API 调用计1次" },
  519. { "type": "tikhub_api_call", "unit": "次", "description": "每次 TikHub API 调用计1次" },
  520. { "type": "ai_analysis_token", "unit": "千token", "description": "AI 分析消耗的 token 数" },
  521. { "type": "report_generation", "unit": "份", "description": "每生成1份报告计1次" }
  522. ],
  523. "estimatedCalls": {
  524. "sorftime": "品类数×20(产品详情) + vocAsins×reviewPages(评论) + trendKeywords(关键词) ≈ 130-200次",
  525. "tikhub": "品类数(视频搜索) + 品牌数×2(IG+TikTok) + 品类数(达人搜索) ≈ 20-30次",
  526. "ai": "3次大型分析(VOC/策略/Listing) + 2次中型(关键词/矩阵) ≈ 50K-100K tokens"
  527. }
  528. }
  529. }