api-config.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "name": "brand-context-builder",
  3. "displayName": "品牌上下文建档",
  4. "description": "VOC工作坊品牌建档技能,通过结构化问答采集客户品牌信息,验证格式,生成并持久化品牌上下文文件供后续分析技能引用。",
  5. "category": "workshop",
  6. "version": "1.0.0",
  7. "type": "conversational",
  8. "parameters": {
  9. "type": "object",
  10. "required": [],
  11. "properties": {
  12. "mode": {
  13. "type": "string",
  14. "description": "建档模式: full=完整建档(默认), update=增量更新",
  15. "enum": ["full", "update"],
  16. "default": "full"
  17. },
  18. "brandName": {
  19. "type": "string",
  20. "description": "品牌英文名称"
  21. },
  22. "categoryKeywords": {
  23. "type": "array",
  24. "items": { "type": "string" },
  25. "description": "品类核心英文关键词,至少1个,建议2-3个"
  26. },
  27. "amazonDomain": {
  28. "type": "integer",
  29. "description": "Amazon站点: 1=US(默认) 2=UK 3=DE 4=JP",
  30. "default": 1,
  31. "enum": [1, 2, 3, 4]
  32. },
  33. "brandAsins": {
  34. "type": "array",
  35. "items": { "type": "string", "pattern": "^B0[A-Z0-9]{8}$" },
  36. "description": "品牌代表性ASIN列表,3-5个,B0开头10位"
  37. },
  38. "knownCompetitors": {
  39. "type": "array",
  40. "items": { "type": "string" },
  41. "description": "已知竞品品牌名(可选)"
  42. },
  43. "competitorAsins": {
  44. "type": "array",
  45. "items": { "type": "string" },
  46. "description": "已知竞品ASIN(可选)"
  47. },
  48. "tiktokKeywords": {
  49. "type": "array",
  50. "items": { "type": "string" },
  51. "description": "TikTok搜索关键词(可选,Session 4补充)"
  52. },
  53. "douyinKeywords": {
  54. "type": "array",
  55. "items": { "type": "string" },
  56. "description": "抖音搜索关键词(可选,Session 4补充)"
  57. },
  58. "workshopGoal": {
  59. "type": "string",
  60. "description": "客户希望通过分析解决的核心问题"
  61. }
  62. }
  63. },
  64. "validation": {
  65. "asinFormat": {
  66. "pattern": "^B0[A-Z0-9]{8}$",
  67. "errorMessage": "ASIN格式不正确,应为B0开头的10位字母数字组合,如 B0CJ5K1234"
  68. },
  69. "domainMapping": {
  70. "1": "amazon.com",
  71. "2": "amazon.co.uk",
  72. "3": "amazon.de",
  73. "4": "amazon.co.jp"
  74. }
  75. },
  76. "output": {
  77. "type": "object",
  78. "description": "品牌上下文对象,写入 memory/brand-context.json",
  79. "properties": {
  80. "success": { "type": "boolean" },
  81. "brandContext": { "type": "object" },
  82. "readyForSession1": { "type": "boolean" },
  83. "missingFields": { "type": "array" }
  84. }
  85. },
  86. "memoryFiles": {
  87. "write": [
  88. "memory/brand-context.json",
  89. "memory/workshop-progress.json",
  90. "memory/calibration-notes.json"
  91. ],
  92. "read": []
  93. },
  94. "usageExamples": [
  95. {
  96. "name": "完整建档",
  97. "input": {
  98. "mode": "full",
  99. "brandName": "COCORRINA",
  100. "categoryKeywords": ["reed diffuser", "aroma diffuser"],
  101. "amazonDomain": 1,
  102. "brandAsins": ["B0CJ5KXXXX", "B0DJ6LYYYY", "B0EK7MZZZZ"],
  103. "workshopGoal": "想了解品类机会和用户真正在意什么"
  104. },
  105. "description": "新客户首次建档,采集全部必要信息"
  106. },
  107. {
  108. "name": "增量更新-补充竞品",
  109. "input": {
  110. "mode": "update",
  111. "knownCompetitors": ["NEST New York", "Yankee Candle"],
  112. "competitorAsins": ["B0AAAA1111", "B0BBBB2222"]
  113. },
  114. "description": "Session 2 后补充确认的竞品信息"
  115. },
  116. {
  117. "name": "增量更新-补充社媒关键词",
  118. "input": {
  119. "mode": "update",
  120. "tiktokKeywords": ["reed diffuser", "#homedecor"],
  121. "douyinKeywords": ["香薰", "无火香薰"]
  122. },
  123. "description": "Session 4 前补充社媒搜索关键词"
  124. }
  125. ],
  126. "reportMapping": {
  127. "brandName": "品牌名称",
  128. "categoryKeywords": "品类关键词",
  129. "amazonDomain": "Amazon站点",
  130. "brandAsins": "品牌ASIN",
  131. "workshopGoal": "分析目标",
  132. "completeness": "建档完整度"
  133. },
  134. "tokenConfig": {
  135. "required": false
  136. },
  137. "errorHandling": {
  138. "conditions": []
  139. }
  140. }