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
227 lines
6.7 KiB
YAML
227 lines
6.7 KiB
YAML
# ZCLAW Pipeline - 客户沟通辅助
|
|
# 输入客户需求和沟通背景,生成专业沟通方案(邮件/报价单/产品推荐)
|
|
|
|
apiVersion: zclaw/v1
|
|
kind: Pipeline
|
|
metadata:
|
|
name: client-communication
|
|
displayName: 客户沟通辅助
|
|
category: design
|
|
industry: design-shantou
|
|
description: 输入客户需求和背景,自动生成专业沟通邮件、报价单、产品推荐书
|
|
tags:
|
|
- 汕头
|
|
- 客户沟通
|
|
- 报价
|
|
- 外贸
|
|
icon: 💬
|
|
author: ZCLAW
|
|
version: 1.0.0
|
|
|
|
spec:
|
|
inputs:
|
|
- name: client_background
|
|
type: text
|
|
required: true
|
|
label: 客户背景
|
|
placeholder: |
|
|
客户公司名、国家、主营业务
|
|
例如:美国 ABC Toys Inc., 主营益智玩具零售
|
|
|
|
- name: inquiry_details
|
|
type: text
|
|
required: true
|
|
label: 询盘内容
|
|
placeholder: 粘贴客户询盘原文或描述客户需求
|
|
|
|
- name: communication_type
|
|
type: multi-select
|
|
required: false
|
|
label: 生成内容
|
|
default:
|
|
- reply_email
|
|
- quotation
|
|
- product_recommendation
|
|
options:
|
|
- reply_email
|
|
- quotation
|
|
- product_recommendation
|
|
- follow_up_plan
|
|
|
|
- name: language
|
|
type: select
|
|
required: false
|
|
label: 输出语言
|
|
default: English
|
|
options:
|
|
- English
|
|
- 中文
|
|
- 双语
|
|
|
|
- name: our_products
|
|
type: text
|
|
required: false
|
|
label: 我方产品
|
|
placeholder: 简述可供推荐的产品线和特点
|
|
|
|
steps:
|
|
# Step 1: 客户需求分析
|
|
- id: analyze_inquiry
|
|
description: 分析客户询盘和需求
|
|
action:
|
|
type: llm_generate
|
|
template: |
|
|
分析以下客户询盘:
|
|
|
|
客户背景:
|
|
```
|
|
{{client_background}}
|
|
```
|
|
|
|
询盘内容:
|
|
```
|
|
{{inquiry_details}}
|
|
```
|
|
|
|
请生成 JSON 格式分析:
|
|
{
|
|
"client_profile": {
|
|
"company": "公司名",
|
|
"country": "国家",
|
|
"industry": "行业",
|
|
"business_type": "进口商/分销商/零售商",
|
|
"estimated_size": "规模估计"
|
|
},
|
|
"requirements": [
|
|
{"requirement": "具体需求", "priority": "高/中/低", "detail": "详细说明"}
|
|
],
|
|
"pain_points": ["痛点1", "痛点2"],
|
|
"budget_indicator": "预算水平判断",
|
|
"urgency": "紧急程度",
|
|
"decision_factors": ["决策因素1", "决策因素2"]
|
|
}
|
|
input:
|
|
client_background: ${inputs.client_background}
|
|
inquiry_details: ${inputs.inquiry_details}
|
|
json_mode: true
|
|
temperature: 0.4
|
|
max_tokens: 2000
|
|
|
|
# Step 2: 产品推荐匹配
|
|
- id: match_products
|
|
description: 匹配推荐产品
|
|
action:
|
|
type: llm_generate
|
|
template: |
|
|
基于客户需求,匹配推荐产品:
|
|
|
|
客户需求分析: ${steps.analyze_inquiry.output}
|
|
我方产品: {{our_products}}
|
|
|
|
请生成 JSON 格式推荐:
|
|
{
|
|
"recommendations": [
|
|
{
|
|
"product": "产品名称",
|
|
"match_reason": "匹配理由",
|
|
"specs": "规格参数",
|
|
"suggested_price": "建议报价(FOB)",
|
|
"moq": "最小起订量",
|
|
"lead_time": "交货周期",
|
|
"certifications": "相关认证",
|
|
"competitive_edge": "竞争优势"
|
|
}
|
|
],
|
|
"cross_sell_opportunities": ["交叉销售机会1"],
|
|
"upsell_possibilities": ["向上销售可能1"]
|
|
}
|
|
input:
|
|
analysis: ${steps.analyze_inquiry.output}
|
|
our_products: ${inputs.our_products}
|
|
json_mode: true
|
|
temperature: 0.6
|
|
max_tokens: 2500
|
|
|
|
# Step 3: 生成沟通内容
|
|
- id: generate_communications
|
|
description: 生成专业沟通内容
|
|
action:
|
|
type: llm_generate
|
|
template: |
|
|
生成专业客户沟通内容:
|
|
|
|
客户分析: ${steps.analyze_inquiry.output}
|
|
产品推荐: ${steps.match_products.output}
|
|
输出语言: {{language}}
|
|
生成类型: {{communication_type}}
|
|
|
|
请生成 JSON 格式:
|
|
{
|
|
"reply_email": {
|
|
"subject": "邮件主题",
|
|
"body": "邮件正文(专业、简洁、有吸引力)",
|
|
"call_to_action": "行动号召"
|
|
},
|
|
"quotation": {
|
|
"header": "报价单抬头",
|
|
"items": [
|
|
{"item": "产品", "description": "描述", "qty": 0, "unit_price": 0, "amount": 0}
|
|
],
|
|
"terms": "贸易条款",
|
|
"validity": "报价有效期",
|
|
"payment_terms": "付款条件",
|
|
"notes": "备注"
|
|
},
|
|
"product_recommendation": {
|
|
"title": "推荐书标题",
|
|
"sections": ["章节1概述", "产品亮点", "合作优势"],
|
|
"closing": "结束语"
|
|
}
|
|
}
|
|
input:
|
|
analysis: ${steps.analyze_inquiry.output}
|
|
products: ${steps.match_products.output}
|
|
language: ${inputs.language}
|
|
communication_type: ${inputs.communication_type}
|
|
json_mode: true
|
|
temperature: 0.7
|
|
max_tokens: 4000
|
|
|
|
# Step 4: 跟进计划
|
|
- id: follow_up_plan
|
|
description: 生成客户跟进计划
|
|
action:
|
|
type: llm_generate
|
|
template: |
|
|
生成客户跟进计划:
|
|
|
|
客户: ${steps.analyze_inquiry.output.client_profile}
|
|
紧急度: ${steps.analyze_inquiry.output.urgency}
|
|
|
|
请生成 JSON 格式:
|
|
{
|
|
"follow_up_steps": [
|
|
{"day": 0, "action": "立即行动", "channel": "邮件/WhatsApp/电话"},
|
|
{"day": 3, "action": "第一次跟进", "channel": ""},
|
|
{"day": 7, "action": "第二次跟进", "channel": ""},
|
|
{"day": 14, "action": "深度跟进", "channel": ""}
|
|
],
|
|
"relationship_building": ["关系维护建议1", "关系维护建议2"],
|
|
"cultural_notes": "文化注意事项"
|
|
}
|
|
input:
|
|
client_profile: ${steps.analyze_inquiry.output.client_profile}
|
|
urgency: ${steps.analyze_inquiry.output.urgency}
|
|
json_mode: true
|
|
temperature: 0.5
|
|
max_tokens: 1500
|
|
|
|
outputs:
|
|
inquiry_analysis: ${steps.analyze_inquiry.output}
|
|
product_match: ${steps.match_products.output}
|
|
communications: ${steps.generate_communications.output}
|
|
follow_up: ${steps.follow_up_plan.output}
|
|
|
|
on_error: stop
|
|
timeout_secs: 240
|