-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathafter_sales_chatflow.yaml
More file actions
499 lines (499 loc) · 13.7 KB
/
after_sales_chatflow.yaml
File metadata and controls
499 lines (499 loc) · 13.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
version: 0.6.0
kind: app
app:
name: 售后咨询分流
mode: advanced-chat
icon: 🤖
icon_type: emoji
icon_background: '#FFEAD5'
description: 模拟电商售后问答与分流的 chatflow
use_icon_as_answer_icon: false
workflow:
graph:
nodes:
- id: start_node
type: custom
data:
type: start
title: 用户售后问题
desc: ''
selected: false
variables:
- variable: query
label: 请输入售后问题
type: paragraph
required: true
options: []
value_selector: []
position:
x: 30.0
y: 245.0
positionAbsolute:
x: 30.0
y: 245.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: llm_node
type: custom
data:
type: llm
title: 复杂售后转人工
desc: ''
selected: false
model:
provider: openai
name: gpt-4o-mini
mode: chat
completion_params:
temperature: 0.2
prompt_template:
- role: system
text: 你是电商平台高级售后协调专员。用于处理发票、保修、价格保护、投诉升级和无法明确归类的复杂售后问题。请用中文回复:先概括用户问题;再说明需要补充的关键信息;然后给出转人工或升级处理建议,并说明会由对应专员继续跟进;不要虚构已完成的处理动作。回复控制在
4 到 6 行。
- role: user
text: '{{#start_node.query#}}'
vision:
enabled: false
configs:
variable_selector: []
memory:
enabled: true
window:
enabled: true
size: 10
context:
enabled: false
variable_selector: []
structured_output:
enabled: false
retry_config:
enabled: false
max_retries: 1
retry_interval: 1000
exponential_backoff:
enabled: false
multiplier: 2
max_interval: 10000
position:
x: 718.0
y: 425.0
positionAbsolute:
x: 718.0
y: 425.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: answer_node
type: custom
data:
type: answer
title: 复杂售后答复
desc: ''
selected: false
variables: []
answer: '{{#llm_node.text#}}'
position:
x: 1062.0
y: 425.0
positionAbsolute:
x: 1062.0
y: 425.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: aftersales_classifier
type: custom
data:
type: question-classifier
title: 售后问题分类
desc: ''
selected: false
model:
provider: openai
name: gpt-4o-mini
mode: chat
completion_params:
temperature: 0.1
vision:
enabled: false
configs:
variable_selector: []
query_variable_selector:
- start_node
- query
classes:
- id: refund_return
name: 退款退货
- id: logistics
name: 物流催件
- id: quality_issue
name: 质量问题
- id: manual_service
name: 人工处理
instruction: 你是售后分流分类器。只能从 4 个类别中选择 1 个。退款退货:退款、退货、拒收、仅退款、七天无理由。物流催件:未发货、发货慢、物流停滞、签收异常、催派送。质量问题:商品破损、少件、错发、功能故障、与描述不符。人工处理:发票、保修、价格保护、补偿争议、投诉升级、无法明确归类的问题。优先按用户核心诉求分类。
position:
x: 374.0
y: 245.0
positionAbsolute:
x: 374.0
y: 245.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: refund_llm
type: custom
data:
type: llm
title: 退款退货专员
desc: ''
selected: false
model:
provider: openai
name: gpt-4o-mini
mode: chat
completion_params:
temperature: 0.3
prompt_template:
- role: system
text: 你是电商平台售后退款与退货专员。请用中文回复,并遵守以下要求:先用一句话确认用户诉求;再列出处理所需信息,至少包含订单号、商品名、是否签收、问题描述;然后给出下一步建议,例如未发货可尝试拦截退款、已签收通常走退货退款、质量问题可补充凭证后优先处理;如果信息不足,不要编造处理结果,要明确提示用户补充。回复控制在
4 到 6 行,专业且清晰。
- role: user
text: '{{#start_node.query#}}'
vision:
enabled: false
configs:
variable_selector: []
memory:
enabled: true
window:
enabled: true
size: 10
context:
enabled: false
variable_selector: []
structured_output:
enabled: false
retry_config:
enabled: false
max_retries: 1
retry_interval: 1000
exponential_backoff:
enabled: false
multiplier: 2
max_interval: 10000
position:
x: 718.0
y: 65.0
positionAbsolute:
x: 718.0
y: 65.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: refund_answer
type: custom
data:
type: answer
title: 退款退货答复
desc: ''
selected: false
variables: []
answer: '{{#refund_llm.text#}}'
position:
x: 1062.0
y: 65.0
positionAbsolute:
x: 1062.0
y: 65.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: logistics_llm
type: custom
data:
type: llm
title: 物流催件专员
desc: ''
selected: false
model:
provider: openai
name: gpt-4o-mini
mode: chat
completion_params:
temperature: 0.3
prompt_template:
- role: system
text: 你是电商平台物流售后专员。请用中文回复,并遵守以下要求:先确认用户的物流诉求;再让用户补充订单号、最新物流节点、收货城市;然后给出可执行建议,例如未出库时可催仓、已出库未更新时可发起催件、签收异常时可核对代收或驿站;如果已经超出承诺时效,可以说明会升级物流排查,但不要虚构具体物流结果。回复控制在
4 到 6 行,语气专业。
- role: user
text: '{{#start_node.query#}}'
vision:
enabled: false
configs:
variable_selector: []
memory:
enabled: true
window:
enabled: true
size: 10
context:
enabled: false
variable_selector: []
structured_output:
enabled: false
retry_config:
enabled: false
max_retries: 1
retry_interval: 1000
exponential_backoff:
enabled: false
multiplier: 2
max_interval: 10000
position:
x: 718.0
y: 185.0
positionAbsolute:
x: 718.0
y: 185.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: logistics_answer
type: custom
data:
type: answer
title: 物流催件答复
desc: ''
selected: false
variables: []
answer: '{{#logistics_llm.text#}}'
position:
x: 1062.0
y: 185.0
positionAbsolute:
x: 1062.0
y: 185.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: quality_llm
type: custom
data:
type: llm
title: 质量问题专员
desc: ''
selected: false
model:
provider: openai
name: gpt-4o-mini
mode: chat
completion_params:
temperature: 0.3
prompt_template:
- role: system
text: 你是电商平台商品质量问题专员。请用中文回复,并遵守以下要求:先确认用户反馈的是破损、少件、错发、故障或与描述不符中的哪一类;然后要求用户补充订单号、商品名、问题照片或视频、签收时间;再给出处理建议,例如补发、换货、退货退款或进一步质检;不要承诺未经核实的赔付结果。回复控制在
4 到 6 行,结构清晰。
- role: user
text: '{{#start_node.query#}}'
vision:
enabled: false
configs:
variable_selector: []
memory:
enabled: true
window:
enabled: true
size: 10
context:
enabled: false
variable_selector: []
structured_output:
enabled: false
retry_config:
enabled: false
max_retries: 1
retry_interval: 1000
exponential_backoff:
enabled: false
multiplier: 2
max_interval: 10000
position:
x: 718.0
y: 305.0
positionAbsolute:
x: 718.0
y: 305.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
- id: quality_answer
type: custom
data:
type: answer
title: 质量问题答复
desc: ''
selected: false
variables: []
answer: '{{#quality_llm.text#}}'
position:
x: 1062.0
y: 305.0
positionAbsolute:
x: 1062.0
y: 305.0
width: 244
height: 90
selected: false
sourcePosition: right
targetPosition: left
edges:
- id: llm_node-source-answer_node-target
source: llm_node
target: answer_node
sourceHandle: source
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: llm
targetType: answer
isInIteration: false
isInLoop: false
- id: start_node-source-aftersales_classifier-target
source: start_node
target: aftersales_classifier
sourceHandle: source
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: start
targetType: question-classifier
isInIteration: false
isInLoop: false
- id: aftersales_classifier-manual_service-llm_node-target
source: aftersales_classifier
target: llm_node
sourceHandle: manual_service
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: question-classifier
targetType: llm
isInIteration: false
isInLoop: false
- id: aftersales_classifier-refund_return-refund_llm-target
source: aftersales_classifier
target: refund_llm
sourceHandle: refund_return
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: question-classifier
targetType: llm
isInIteration: false
isInLoop: false
- id: refund_llm-source-refund_answer-target
source: refund_llm
target: refund_answer
sourceHandle: source
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: llm
targetType: answer
isInIteration: false
isInLoop: false
- id: aftersales_classifier-logistics-logistics_llm-target
source: aftersales_classifier
target: logistics_llm
sourceHandle: logistics
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: question-classifier
targetType: llm
isInIteration: false
isInLoop: false
- id: logistics_llm-source-logistics_answer-target
source: logistics_llm
target: logistics_answer
sourceHandle: source
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: llm
targetType: answer
isInIteration: false
isInLoop: false
- id: aftersales_classifier-quality_issue-quality_llm-target
source: aftersales_classifier
target: quality_llm
sourceHandle: quality_issue
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: question-classifier
targetType: llm
isInIteration: false
isInLoop: false
- id: quality_llm-source-quality_answer-target
source: quality_llm
target: quality_answer
sourceHandle: source
targetHandle: target
type: custom
zIndex: 0
data:
sourceType: llm
targetType: answer
isInIteration: false
isInLoop: false
viewport:
x: 0.0
y: 0.0
zoom: 1.0
features:
file_upload:
enabled: false
opening_statement: ''
retriever_resource:
enabled: false
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
environment_variables: []
conversation_variables: []
rag_pipeline_variables: []
dependencies: []