Education (3): research-to-quiz, student-analysis, lesson-plan Healthcare (3): policy-compliance, meeting-minutes, data-report Design Shantou (4): trend-to-design, competitor-research, client-communication, supply-chain-collect
249 lines
7.5 KiB
YAML
249 lines
7.5 KiB
YAML
# ZCLAW Pipeline - 供应链信息采集
|
||
# 输入采购需求,自动采集供应商信息并生成比价分析
|
||
|
||
apiVersion: zclaw/v1
|
||
kind: Pipeline
|
||
metadata:
|
||
name: supply-chain-collect
|
||
displayName: 供应链信息采集
|
||
category: design
|
||
industry: design-shantou
|
||
description: 输入采购需求,自动采集和整理供应商信息,生成比价分析和采购建议
|
||
tags:
|
||
- 汕头
|
||
- 供应链
|
||
- 采购
|
||
- 比价
|
||
icon: 🏭
|
||
author: ZCLAW
|
||
version: 1.0.0
|
||
|
||
spec:
|
||
inputs:
|
||
- name: material_type
|
||
type: select
|
||
required: true
|
||
label: 采购类别
|
||
options:
|
||
- 塑料原料(ABS/PP/PE)
|
||
- 电子元件
|
||
- 五金配件
|
||
- 包装材料
|
||
- 面料
|
||
- 辅料(拉链/纽扣/魔术贴)
|
||
- 模具加工
|
||
- 印刷服务
|
||
- 其他
|
||
|
||
- name: specifications
|
||
type: text
|
||
required: true
|
||
label: 规格要求
|
||
placeholder: |
|
||
描述所需材料的详细规格,例如:
|
||
- ABS塑料,注塑级,白色,需通过EN71认证
|
||
- 或:230T涤纶面料,幅宽150cm,防水处理
|
||
|
||
- name: quantity
|
||
type: string
|
||
required: false
|
||
label: 采购量
|
||
placeholder: 例如:500kg/月 或 10000件
|
||
|
||
- name: quality_requirements
|
||
type: multi-select
|
||
required: false
|
||
label: 质量要求
|
||
default:
|
||
- ISO认证
|
||
options:
|
||
- ISO认证
|
||
- 环保认证
|
||
- 出口认证(EN71/ASTM)
|
||
- 食品级
|
||
- 阻燃要求
|
||
- 无特殊要求
|
||
|
||
- name: preferred_region
|
||
type: select
|
||
required: false
|
||
label: 供应商地域
|
||
default: 不限
|
||
options:
|
||
- 汕头本地
|
||
- 广东省内
|
||
- 长三角
|
||
- 不限
|
||
|
||
steps:
|
||
# Step 1: 需求解析
|
||
- id: parse_requirements
|
||
description: 解析采购需求为结构化规格
|
||
action:
|
||
type: llm_generate
|
||
template: |
|
||
解析以下采购需求:
|
||
|
||
采购类别: {{material_type}}
|
||
规格要求:
|
||
```
|
||
{{specifications}}
|
||
```
|
||
采购量: {{quantity}}
|
||
质量要求: {{quality_requirements}}
|
||
|
||
请生成 JSON 格式:
|
||
{
|
||
"material_category": "材料大类",
|
||
"detailed_specs": [
|
||
{"spec_name": "规格项", "spec_value": "要求值", "tolerance": "容差"}
|
||
],
|
||
"quality_standards": ["标准1", "标准2"],
|
||
"estimated_monthly_volume": "月采购量估计",
|
||
"critical_parameters": ["关键参数1", "关键参数2"],
|
||
"substitute_acceptable": "是否接受替代品"
|
||
}
|
||
input:
|
||
material_type: ${inputs.material_type}
|
||
specifications: ${inputs.specifications}
|
||
quantity: ${inputs.quantity}
|
||
quality_requirements: ${inputs.quality_requirements}
|
||
json_mode: true
|
||
temperature: 0.3
|
||
max_tokens: 2000
|
||
|
||
# Step 2: 供应商画像
|
||
- id: supplier_profiling
|
||
description: 生成理想供应商画像和市场概况
|
||
action:
|
||
type: llm_generate
|
||
template: |
|
||
为以下采购需求生成理想供应商画像:
|
||
|
||
需求规格: ${steps.parse_requirements.output}
|
||
地域偏好: {{preferred_region}}
|
||
|
||
请生成 JSON 格式:
|
||
{
|
||
"ideal_supplier_profile": {
|
||
"company_type": "工厂/贸易公司/均可",
|
||
"min_years_in_business": 3,
|
||
"production_capacity": "产能要求",
|
||
"certifications_required": ["必需认证1"],
|
||
"preferred_location": "优先地区",
|
||
"moq": "起订量要求"
|
||
},
|
||
"market_overview": {
|
||
"supplier_density": "供应商密度(丰富/一般/稀缺)",
|
||
"price_range": "市场价格区间估计",
|
||
"lead_time_range": "交货周期范围",
|
||
"market_trends": "市场趋势"
|
||
},
|
||
"potential_sources": [
|
||
{"source": "渠道", "description": "说明", "reliability": "可靠性"}
|
||
]
|
||
}
|
||
input:
|
||
requirements: ${steps.parse_requirements.output}
|
||
preferred_region: ${inputs.preferred_region}
|
||
json_mode: true
|
||
temperature: 0.5
|
||
max_tokens: 2500
|
||
|
||
# Step 3: 评估标准制定
|
||
- id: evaluation_criteria
|
||
description: 制定供应商评估标准
|
||
action:
|
||
type: llm_generate
|
||
template: |
|
||
为以下采购需求制定供应商评估标准:
|
||
|
||
需求规格: ${steps.parse_requirements.output}
|
||
供应商画像: ${steps.supplier_profiling.output}
|
||
|
||
请生成 JSON 格式:
|
||
{
|
||
"evaluation_dimensions": [
|
||
{
|
||
"dimension": "价格竞争力",
|
||
"weight": 30,
|
||
"scoring_criteria": "评分标准",
|
||
"data_needed": "需要收集的数据"
|
||
},
|
||
{
|
||
"dimension": "质量保证",
|
||
"weight": 30,
|
||
"scoring_criteria": "",
|
||
"data_needed": ""
|
||
},
|
||
{
|
||
"dimension": "交货能力",
|
||
"weight": 20,
|
||
"scoring_criteria": "",
|
||
"data_needed": ""
|
||
},
|
||
{
|
||
"dimension": "服务响应",
|
||
"weight": 10,
|
||
"scoring_criteria": "",
|
||
"data_needed": ""
|
||
},
|
||
{
|
||
"dimension": "资质认证",
|
||
"weight": 10,
|
||
"scoring_criteria": "",
|
||
"data_needed": ""
|
||
}
|
||
],
|
||
"must_have_requirements": ["必要条件1", "必要条件2"],
|
||
"nice_to_have": ["加分项1"],
|
||
"red_flags": ["风险信号1", "风险信号2"]
|
||
}
|
||
input:
|
||
requirements: ${steps.parse_requirements.output}
|
||
supplier_profile: ${steps.supplier_profiling.output}
|
||
json_mode: true
|
||
temperature: 0.4
|
||
max_tokens: 2000
|
||
|
||
# Step 4: 生成采购报告
|
||
- id: generate_report
|
||
description: 生成供应链信息采集报告
|
||
action:
|
||
type: llm_generate
|
||
template: |
|
||
生成供应链信息采集报告:
|
||
|
||
采购需求: ${steps.parse_requirements.output}
|
||
供应商画像: ${steps.supplier_profiling.output}
|
||
评估标准: ${steps.evaluation_criteria.output}
|
||
|
||
请生成 JSON 格式报告:
|
||
{
|
||
"title": "供应链信息采集报告",
|
||
"executive_summary": "200字摘要",
|
||
"specification_summary": "规格摘要",
|
||
"market_intelligence": "市场情报摘要",
|
||
"evaluation_framework": "评估框架摘要",
|
||
"next_steps": [
|
||
{"step": "下一步行动", "timeline": "时间线", "owner": "负责人"}
|
||
],
|
||
"preview_text": "300字报告预览"
|
||
}
|
||
input:
|
||
requirements: ${steps.parse_requirements.output}
|
||
suppliers: ${steps.supplier_profiling.output}
|
||
criteria: ${steps.evaluation_criteria.output}
|
||
json_mode: true
|
||
temperature: 0.5
|
||
max_tokens: 2000
|
||
|
||
outputs:
|
||
requirements: ${steps.parse_requirements.output}
|
||
supplier_profile: ${steps.supplier_profiling.output}
|
||
evaluation_criteria: ${steps.evaluation_criteria.output}
|
||
report: ${steps.generate_report.output}
|
||
|
||
on_error: stop
|
||
timeout_secs: 240
|