客户支持
2 工作流2 响应格式3 后端步骤
退款与订单支持
端到端处理退款请求:识别客户需求,套用你的退款政策,并自动草拟清晰的回复。
数据如何流转
请求会在你的后端与 AI 工作流之间自动流转。以下是请求经过的完整路径。
收到客户请求
AI 工作流
refund_triage_workflow
对退款请求进行分类,并启动判定流水线
后端事件
request_started
evaluate_refund 触发后启动 refund_decision_workflow
后端事件
request_completed
AI 工作流
refund_decision_workflow
评估退款资格并草拟给客户的回复
客户收到回复
你会得到什么
工作流
refund_triage_workflow
对退款请求进行分类,并启动判定流水线
工作流
refund_decision_workflow
评估退款资格并草拟给客户的回复
响应格式
refund_triage_response
对收到的退款请求进行分类
intentreason_categorysentimentneeds_manual_review
响应格式
refund_decision_response
退款资格判定与给客户的回复
decisionrefund_amount_usdexplanationcustomer_reply
详细规格
每个工作流的完整规格说明。以下所有内容都已写入下载的文件中,导入后仍可随时修改。
refund_triage_workflow
对退款请求进行分类,并启动判定流水线
模型与备用模型了解更多
openai · gpt-5.6-terra备用 1: anthropic · claude-haiku-4-5-20251001
主模型,以及在主模型不可用时自动启用的备用模型。
响应格式了解更多
refund_triage_response返回结构化对象,而不是自由文本。
该工作流返回的结构化 JSON。字段由你定义,并由 ModelRiver 强制校验。
使用的客户数据了解更多
customer_idorder_id
你在每次请求中传入的字段,工作流会据此给出个性化回答。
记忆窗口了解更多
15 分钟
在此时间窗口内,相同请求会直接使用缓存结果,更快也更省钱。
自动化流水线了解更多
request_startedevaluate_refund启动 refund_decision_workflowrequest_completed
多步流水线如何工作围绕该工作流按顺序自动运行的步骤。
运行模式了解更多
生产模式
调用你已连接的 AI 提供商实时运行。
refund_decision_workflow
评估退款资格并草拟给客户的回复
如何使用
- 1
下载模板
文件是可移植的 JSON 包,方便分享,也易于阅读。
- 2
在 ModelRiver 中打开一个项目
登录后选择一个项目,并确保该模板用到的 AI 提供商已连接。你可以在「提供商」中完成连接。
- 3
导入模板
在项目中点击「导入」,粘贴或上传文件,确认预览后完成导入。所有内容以原子方式创建,不会覆盖任何已有数据。 导入与导出如何工作
模板文件
技术用户可以在下方查看原始模板文件。
查看完整模板 JSON
{
"version": 1,
"structures": [
{
"name": "refund_triage_response",
"description": "对收到的退款请求进行分类",
"example": {
"intent": "refund_request",
"reason_category": "damaged_item",
"sentiment": "frustrated",
"needs_manual_review": false
},
"schema": {
"type": "object",
"properties": {
"intent": {
"type": "string"
},
"reason_category": {
"type": "string"
},
"sentiment": {
"type": "string"
},
"needs_manual_review": {
"type": "boolean"
}
},
"required": [
"intent",
"reason_category",
"needs_manual_review"
],
"additionalProperties": false
}
},
{
"name": "refund_decision_response",
"description": "退款资格判定与给客户的回复",
"example": {
"decision": "approve",
"refund_amount_usd": 49.99,
"explanation": "商品到货时已损坏,按政策第 3.2 条批准退款。",
"customer_reply": "我们已批准将 49.99 美元全额退回到你的原支付方式。"
},
"schema": {
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"approve",
"partial",
"deny",
"escalate"
]
},
"refund_amount_usd": {
"type": "number"
},
"explanation": {
"type": "string"
},
"customer_reply": {
"type": "string"
}
},
"required": [
"decision",
"explanation",
"customer_reply"
],
"additionalProperties": false
}
}
],
"workflows": [
{
"name": "refund_triage_workflow",
"description": "对退款请求进行分类,并启动判定流水线",
"provider": "openai",
"model": "gpt-5.6-terra",
"backups": [
{
"provider": "anthropic",
"model": "claude-haiku-4-5-20251001"
}
],
"request_type": "chat",
"system_instructions": "对退款请求进行分类:识别意图、原因类别和客户情绪,并标记需要人工审核的案例。",
"structure": "refund_triage_response",
"customer_fields": [
"customer_id",
"order_id"
],
"test_mode": false,
"cache_window_seconds": 900,
"backend_pipeline": {
"enabled": true,
"events": [
{
"name": "request_started"
},
{
"name": "evaluate_refund",
"target_workflow": "refund_decision_workflow"
},
{
"name": "request_completed"
}
]
}
},
{
"name": "refund_decision_workflow",
"description": "评估退款资格并草拟给客户的回复",
"provider": "openai",
"model": "gpt-5.6-terra",
"backups": [
{
"provider": "anthropic",
"model": "claude-haiku-4-5-20251001"
}
],
"request_type": "chat",
"system_instructions": "结合分类结果与订单详情套用退款政策,在批准/部分退款/拒绝/升级中做出决定,并撰写简明扼要的客户回复。",
"structure": "refund_decision_response",
"customer_fields": [
"customer_id",
"order_id"
],
"test_mode": false
}
]
}在找其他方案?
更多模板即将上线。在此之前,你可以在 ModelRiver 控制台中从零搭建自己的工作流。