| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- {
- "name": "competitor-pricing-analysis",
- "displayName": "竞品定价策略分析",
- "description": "分析竞品定价策略,包括5分位价格带分布、黄金价格带评分、毛利估算、促销建议和盈亏平衡销量分析",
- "category": "competitor-analysis",
- "version": "1.3.0",
- "type": "orchestration",
- "parameters": {
- "categoryKeyword": {
- "type": "string",
- "required": true,
- "description": "品类关键词"
- },
- "competitorAsins": {
- "type": "array",
- "items": { "type": "string" },
- "required": true,
- "description": "竞品ASIN列表"
- },
- "ownPrice": {
- "type": "number",
- "required": false,
- "description": "自身产品当前价格,用于对比定位"
- },
- "domain": {
- "type": "integer",
- "required": false,
- "default": 1,
- "description": "Amazon站点(1=美国)"
- }
- },
- "pipeline": [
- {
- "step": 1,
- "name": "搜索品类Top100产品价格数据",
- "api": {
- "service": "SorftimeApiService.searchProductsByQuery",
- "endpoint": "/api/ProductQuery",
- "method": "POST",
- "forwardUrl": "https://server.fmode.cn/api/voc-ecom/forward",
- "headers": { "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7" },
- "requestBody": { "Page": 1, "Query": "1", "QueryType": "7", "Pattern": "${categoryKeyword}" },
- "queryParams": { "domain": "${domain}" }
- },
- "output": "categoryProducts",
- "responseExtract": "Array<{ Asin, Title, Price, Rating, RatingsCount, MonthlySales, Brand, BSR }>"
- },
- {
- "step": 2,
- "name": "批量获取竞品详细定价信息",
- "forEach": "competitorAsins",
- "api": {
- "service": "SorftimeApiService.getProductDetail",
- "endpoint": "/api/ProductRequest",
- "method": "POST",
- "forwardUrl": "https://server.fmode.cn/api/voc-ecom/forward",
- "headers": { "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7" },
- "requestBody": { "ASIN": "${asin}", "Trend": 1, "QueryTrendStartDt": "", "QueryTrendEndDt": "" },
- "queryParams": { "domain": "${domain}" }
- },
- "output": "competitorDetails",
- "responseExtract": "{ Title, Brand, SalesPrice, ListPrice, CouponInfo, FBAFee, Ratings, RatingsCount, MonthlySales }"
- },
- {
- "step": 3,
- "name": "获取竞品历史价格趋势",
- "forEach": "competitorAsins",
- "api": {
- "service": "SorftimeApiService.getMonitorData",
- "endpoint": "/api/MonitorQuery",
- "method": "POST",
- "forwardUrl": "https://server.fmode.cn/api/voc-ecom/forward",
- "headers": { "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7" },
- "requestBody": { "ASIN": "${asin}" },
- "queryParams": { "domain": "${domain}" }
- },
- "output": "priceHistory",
- "responseExtract": "{ PriceHistory, RankHistory }"
- },
- {
- "step": 4,
- "name": "5分位价格带分析",
- "type": "compute",
- "logic": "analyzePriceBands(categoryProducts)",
- "algorithm": {
- "quintile": "按P20/P40/P60/P80划分为低价带/中低/黄金中价/中高/高价带",
- "perBand": "每带统计: skuCount, avgSales, avgRating, avgBsr",
- "goldenBandScore": "bandScore = avgSales×0.5 + avgRating×20 + (skuCount>0?10:0),最高分为量利平衡最优带"
- },
- "output": "priceBands"
- },
- {
- "step": 5,
- "name": "竞品定价策略识别+毛利估算",
- "type": "compute",
- "logic": "analyzeCompetitorPricing(competitorDetails, priceHistory, priceBands, ownPrice)",
- "algorithm": {
- "pricingStrategy": "渗透定价(低于P20)/跟随定价(黄金带内)/溢价定价(高于P80)",
- "marginEstimate": "15%佣金+$5FBA+30%采购成本 → grossMargin%, 盈亏平衡销量",
- "ownPosition": "自身价格在哪个价格带的哪个百分位",
- "optimalPrice": "goldenBandMin + (goldenBandMax-goldenBandMin)*0.6 * min(1.15, max(0.85, selfRating/bandAvgRating))",
- "promotionAdvice": "价格战风险检测,优先多件折扣/满减替代降价"
- },
- "output": "pricingAnalysis"
- }
- ],
- "response": {
- "type": "object",
- "properties": {
- "priceBands": {
- "type": "array",
- "description": "5分位价格带分布",
- "items": {
- "type": "object",
- "properties": {
- "range": { "type": "string" },
- "label": { "type": "string" },
- "productCount": { "type": "integer" },
- "avgRating": { "type": "number" },
- "avgSales": { "type": "integer" },
- "isGolden": { "type": "boolean" }
- }
- }
- },
- "competitorPricing": {
- "type": "array",
- "description": "竞品定价详情",
- "items": {
- "type": "object",
- "properties": {
- "asin": { "type": "string" },
- "brand": { "type": "string" },
- "currentPrice": { "type": "number" },
- "listPrice": { "type": "number" },
- "coupon": { "type": "number" },
- "pricingStrategy": { "type": "string" },
- "priceHistory": { "type": "array" },
- "estimatedMargin": { "type": "number" }
- }
- }
- },
- "ownPricePosition": {
- "type": "object",
- "properties": {
- "band": { "type": "string" },
- "percentile": { "type": "number" },
- "competitiveness": { "type": "string" }
- }
- },
- "recommendation": {
- "type": "object",
- "properties": {
- "optimalRange": { "type": "array", "items": { "type": "number" } },
- "goldenBand": { "type": "string" },
- "strategy": { "type": "string" },
- "reasons": { "type": "array", "items": { "type": "string" } }
- }
- },
- "marginEstimate": {
- "type": "object",
- "properties": {
- "currentMargin": { "type": "number" },
- "suggestedMargin": { "type": "number" },
- "breakEvenSales": { "type": "integer" }
- }
- },
- "promotionAdvice": { "type": "array", "items": { "type": "string" } }
- }
- },
- "timeout": 120000,
- "retry": {
- "maxAttempts": 2,
- "delay": 2000,
- "backoffMultiplier": 2
- }
- }
|