name: brand-context-builder description: VOC工作坊建档技能,支持两种模式:品牌研究模式(采集品牌信息)和产品分析模式(采集产品列表+分析维度)。验证输入格式,生成并持久化上下文文件,供后续所有分析技能引用。 version: 2.0.0
brand-context-builder
作为 VOC 工作坊的第一个环节,通过结构化对话采集客户信息。支持两种模式:
后续所有分析技能从记忆文件读取上下文,避免重复询问。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| analysisMode | string | 否 | "brand-research"(品牌模式) / "product-analysis"(产品模式) / "auto"(自动识别,默认) |
| mode | string | 否 | "full"(完整建档,默认) / "update"(增量更新) |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| brandName | string | 条件 | 品牌英文名,brand-research模式必填 |
| categoryKeywords | string[] | 条件 | 品类核心关键词,brand-research模式必填,至少1个 |
| amazonDomain | integer | 否 | Amazon站点 1=US 2=UK 3=DE 4=JP,默认1 |
| brandAsins | string[] | 条件 | 品牌代表ASIN,brand-research模式必填,3-5个 |
| knownCompetitors | string[] | 否 | 已知竞品品牌名 |
| competitorAsins | string[] | 否 | 已知竞品ASIN |
| tiktokKeywords | string[] | 否 | TikTok搜索关键词(Session 4 补充) |
| douyinKeywords | string[] | 否 | 抖音搜索关键词(Session 4 补充) |
| workshopGoal | string | 条件 | 分析目标,brand-research模式必填 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| products | array | 条件 | 产品列表,product-analysis模式必填 |
| products[].input | string | ✅ | 用户原始输入(URL/ASIN/产品名) |
| products[].platform | string | 否 | 自动识别: "amazon" / "tmall" / "taobao" / "name" |
| selectedDimensions | string[] | 否 | 选中的分析维度编号,默认"3" |
| vocSubDimensions | string[] | 否 | VOC子维度,默认全部 |
B0 开头"ASIN格式不正确,应为B0开头的10位字母数字组合,如 B0CJ5K1234"brand-context.json,如有则提示"已有建档,是否覆盖?"memory/brand-context.jsonmemory/analysis-request.json → mode: "brand-research", 所有维度开启memory/workshop-progress.jsonmemory/calibration-notes.jsonproduct-detail-query 获取标题和品类product-search 搜索Amazon对标产品,请用户确认选择memory/analysis-request.jsonmemory/brand-context.json(categoryKeywords = 组关键词)memory/workshop-progress.jsonanalysis-request.json 或 brand-context.json| 输入格式 | 识别规则 | 处理方式 |
|---|---|---|
https://www.amazon.com/dp/B0XXXXXXXX |
URL含 amazon.com/dp/ |
提取ASIN,直接查询 |
B0XXXXXXXX |
正则 ^B0[A-Z0-9]{8}$ |
直接作为ASIN查询 |
https://detail.tmall.com/item.htm?id=xxx |
URL含 tmall.com |
提取产品名→翻译→Amazon搜索桥接 |
https://item.taobao.com/item.htm?id=xxx |
URL含 taobao.com |
同天猫逻辑 |
https://detail.1688.com/offer/xxx.html |
URL含 1688.com |
同天猫逻辑 |
全身气动按摩床垫 |
中文文本 | 翻译为英文→Amazon搜索桥接 |
massage gun |
英文文本 | 直接用于Amazon搜索 |
{
"success": true,
"analysisMode": "brand-research",
"brandContext": {
"clientId": "自动生成UUID",
"brandName": "COCORRINA",
"categoryKeywords": ["reed diffuser", "aroma diffuser"],
"amazonDomain": 1,
"amazonDomainLabel": "amazon.com",
"brandAsins": ["B0CJ5KXXXX", "B0DJ6LYYYY"],
"knownCompetitors": ["NEST New York"],
"competitorAsins": [],
"confirmedCompetitors": [],
"tiktokKeywords": [],
"douyinKeywords": [],
"workshopGoal": "想了解品类机会和用户真正在意什么",
"createdAt": "2025-06-15T09:00:00Z",
"updatedAt": "2025-06-15T09:00:00Z",
"completeness": {
"brandName": true,
"categoryKeywords": true,
"amazonDomain": true,
"brandAsins": true,
"workshopGoal": true
}
},
"readyForSession1": true,
"missingFields": []
}
{
"success": true,
"analysisMode": "product-analysis",
"analysisRequest": {
"clientId": "自动生成UUID",
"clientName": "健衡康复",
"mode": "product-analysis",
"products": [
{
"productId": "p1",
"platform": "tmall",
"originalName": "全身气动按摩床垫",
"bridgedAsin": "B0DRYQTZNM",
"bridgedSearchKeyword": "air pressure massage mattress",
"title": "RENPHO Air Pressure Massage Mat...",
"category": "Massage Equipment",
"status": "ready"
},
{
"productId": "p2",
"platform": "amazon",
"asin": "B0DRYQTZNM",
"title": "...",
"category": "Massage Equipment",
"status": "ready"
}
],
"productGroups": [
{
"groupId": "g1",
"categoryKeyword": "massage mattress",
"categoryLabel": "按摩床垫",
"productIds": ["p1", "p2"]
}
],
"selectedDimensions": {
"categoryLandscape": false,
"competitorComparison": true,
"reviewVoc": true,
"socialMedia": false,
"userPersona": false,
"fullReport": true
},
"vocSubDimensions": {
"voiceClassification": true,
"painPointInsight": true,
"featureSatisfaction": true,
"scenarioDashboard": true
}
},
"readyForAnalysis": true,
"totalProducts": 6,
"totalGroups": 3
}
brand-context-builder (本技能)
↓ 输出 brand-context.json + analysis-request.json(mode=brand-research)
├→ category-landscape (读取 categoryKeywords, amazonDomain)
├→ brand-profile (读取 brandName, brandAsins, categoryKeywords)
├→ competitor-discovery (读取 brandName, brandAsins, knownCompetitors)
├→ review-batch-collection (读取 brandAsins + competitorAsins)
├→ tiktok-category-voc (读取 tiktokKeywords / categoryKeywords)
├→ user-persona (读取 categoryKeywords)
├→ voc-proposal (读取 brandName, categoryKeywords)
└→ html-report-generator(读取 brandName)
brand-context-builder (本技能)
↓ 输出 analysis-request.json(mode=product-analysis) + brand-context.json(per group)
│
├→ [per product] product-detail-query (获取产品详情, Amazon产品)
├→ [per tmall] product-search (跨平台桥接搜索, 天猫/淘宝产品)
│
├→ [per group, if dim1] category-landscape (读取 group.categoryKeyword)
├→ [per group, if dim2] competitor-discovery + comparison
├→ [per product, if dim3] review-batch-collection → VOC分析链
│ ├→ review-sentiment-analysis → Prompt 3A → voiceClassification
│ ├→ review-pain-point-extraction → Prompt 3B → painPointInsight
│ ├→ [Agent合成] Prompt 3C → featureSatisfaction
│ └→ [Agent合成] Prompt 3D → scenarioDashboard
├→ [per group, if dim4] tiktok/instagram 社媒技能
├→ [per group, if dim5] user-persona
└→ [if dim6] voc-proposal + html-report-generator
阶段零「需求收集+建档」— 工作坊启动后的第一件事,在任何分析开始之前完成。 支持品牌研究和产品分析两种入口。