├── README.md
├── 客服多agent 演示.yml
├── 提交人工服务 (1).yml
└── 查询用户订单支付情况 (1).yml
/README.md:
--------------------------------------------------------------------------------
1 | # chatflow-game-cs-mulit-agent-demo
2 | chatflow实现游戏客服多agent示例
3 |
--------------------------------------------------------------------------------
/客服多agent 演示.yml:
--------------------------------------------------------------------------------
1 | app:
2 | description: ''
3 | icon: 🤖
4 | icon_background: '#FFEAD5'
5 | mode: advanced-chat
6 | name: 客服多agent 演示
7 | use_icon_as_answer_icon: false
8 | dependencies:
9 | - current_identifier: null
10 | type: marketplace
11 | value:
12 | marketplace_plugin_unique_identifier: langgenius/bedrock:0.0.9@4484b4097187376df28408110fa951c64a18588689746ed4eefc4ee4dc3ec9f2
13 | kind: app
14 | version: 0.1.5
15 | workflow:
16 | conversation_variables:
17 | - description: ''
18 | id: abefe77b-c4bf-4556-958e-3464f170b64b
19 | name: history
20 | selector:
21 | - conversation
22 | - history
23 | value: []
24 | value_type: array[string]
25 | environment_variables: []
26 | features:
27 | file_upload:
28 | allowed_file_extensions:
29 | - .JPG
30 | - .JPEG
31 | - .PNG
32 | - .GIF
33 | - .WEBP
34 | - .SVG
35 | allowed_file_types:
36 | - image
37 | allowed_file_upload_methods:
38 | - local_file
39 | - remote_url
40 | enabled: false
41 | fileUploadConfig:
42 | audio_file_size_limit: 50
43 | batch_count_limit: 5
44 | file_size_limit: 15
45 | image_file_size_limit: 10
46 | video_file_size_limit: 100
47 | workflow_file_upload_limit: 10
48 | image:
49 | enabled: false
50 | number_limits: 3
51 | transfer_methods:
52 | - local_file
53 | - remote_url
54 | number_limits: 3
55 | opening_statement: ''
56 | retriever_resource:
57 | enabled: true
58 | sensitive_word_avoidance:
59 | enabled: false
60 | speech_to_text:
61 | enabled: false
62 | suggested_questions: []
63 | suggested_questions_after_answer:
64 | enabled: false
65 | text_to_speech:
66 | enabled: false
67 | language: ''
68 | voice: ''
69 | graph:
70 | edges:
71 | - data:
72 | isInIteration: false
73 | isInLoop: false
74 | sourceType: start
75 | targetType: template-transform
76 | id: 1742202974224-source-1742350994298-target
77 | source: '1742202974224'
78 | sourceHandle: source
79 | target: '1742350994298'
80 | targetHandle: target
81 | type: custom
82 | zIndex: 0
83 | - data:
84 | isInLoop: false
85 | sourceType: template-transform
86 | targetType: assigner
87 | id: 1742350994298-source-1742350971437-target
88 | source: '1742350994298'
89 | sourceHandle: source
90 | target: '1742350971437'
91 | targetHandle: target
92 | type: custom
93 | zIndex: 0
94 | - data:
95 | isInIteration: false
96 | isInLoop: false
97 | sourceType: assigner
98 | targetType: template-transform
99 | id: 1742350971437-source-1742365438889-target
100 | source: '1742350971437'
101 | sourceHandle: source
102 | target: '1742365438889'
103 | targetHandle: target
104 | type: custom
105 | zIndex: 0
106 | - data:
107 | isInIteration: false
108 | isInLoop: false
109 | sourceType: template-transform
110 | targetType: question-classifier
111 | id: 1742365438889-source-1742364688771-target
112 | source: '1742365438889'
113 | sourceHandle: source
114 | target: '1742364688771'
115 | targetHandle: target
116 | type: custom
117 | zIndex: 0
118 | - data:
119 | isInLoop: false
120 | sourceType: question-classifier
121 | targetType: agent
122 | id: 1742364688771-1-1742202983138-target
123 | source: '1742364688771'
124 | sourceHandle: '1'
125 | target: '1742202983138'
126 | targetHandle: target
127 | type: custom
128 | zIndex: 0
129 | - data:
130 | isInLoop: false
131 | sourceType: question-classifier
132 | targetType: agent
133 | id: 1742364688771-2-17423656891550-target
134 | source: '1742364688771'
135 | sourceHandle: '2'
136 | target: '17423656891550'
137 | targetHandle: target
138 | type: custom
139 | zIndex: 0
140 | - data:
141 | isInLoop: false
142 | sourceType: agent
143 | targetType: answer
144 | id: 1742202983138-source-answer-target
145 | source: '1742202983138'
146 | sourceHandle: source
147 | target: answer
148 | targetHandle: target
149 | type: custom
150 | zIndex: 0
151 | - data:
152 | isInIteration: false
153 | isInLoop: false
154 | sourceType: agent
155 | targetType: answer
156 | id: 17423656891550-source-1742366046859-target
157 | source: '17423656891550'
158 | sourceHandle: source
159 | target: '1742366046859'
160 | targetHandle: target
161 | type: custom
162 | zIndex: 0
163 | - data:
164 | isInIteration: false
165 | isInLoop: false
166 | sourceType: template-transform
167 | targetType: assigner
168 | id: 1742366139536-source-1742366188205-target
169 | source: '1742366139536'
170 | sourceHandle: source
171 | target: '1742366188205'
172 | targetHandle: target
173 | type: custom
174 | zIndex: 0
175 | - data:
176 | isInIteration: false
177 | isInLoop: false
178 | sourceType: answer
179 | targetType: variable-aggregator
180 | id: 1742366046859-source-1742366248145-target
181 | source: '1742366046859'
182 | sourceHandle: source
183 | target: '1742366248145'
184 | targetHandle: target
185 | type: custom
186 | zIndex: 0
187 | - data:
188 | isInIteration: false
189 | isInLoop: false
190 | sourceType: variable-aggregator
191 | targetType: template-transform
192 | id: 1742366248145-source-1742366139536-target
193 | source: '1742366248145'
194 | sourceHandle: source
195 | target: '1742366139536'
196 | targetHandle: target
197 | type: custom
198 | zIndex: 0
199 | - data:
200 | isInLoop: false
201 | sourceType: answer
202 | targetType: variable-aggregator
203 | id: answer-source-1742366248145-target
204 | source: answer
205 | sourceHandle: source
206 | target: '1742366248145'
207 | targetHandle: target
208 | type: custom
209 | zIndex: 0
210 | - data:
211 | isInLoop: false
212 | sourceType: question-classifier
213 | targetType: agent
214 | id: 1742364688771-1742366386789-17423664651770-target
215 | source: '1742364688771'
216 | sourceHandle: '1742366386789'
217 | target: '17423664651770'
218 | targetHandle: target
219 | type: custom
220 | zIndex: 0
221 | - data:
222 | isInLoop: false
223 | sourceType: agent
224 | targetType: answer
225 | id: 17423664651770-source-17423665567250-target
226 | source: '17423664651770'
227 | sourceHandle: source
228 | target: '17423665567250'
229 | targetHandle: target
230 | type: custom
231 | zIndex: 0
232 | - data:
233 | isInLoop: false
234 | sourceType: answer
235 | targetType: variable-aggregator
236 | id: 17423665567250-source-1742366248145-target
237 | source: '17423665567250'
238 | sourceHandle: source
239 | target: '1742366248145'
240 | targetHandle: target
241 | type: custom
242 | zIndex: 0
243 | - data:
244 | isInIteration: false
245 | isInLoop: false
246 | sourceType: question-classifier
247 | targetType: agent
248 | id: 1742364688771-1742876076568-1742876104154-target
249 | source: '1742364688771'
250 | sourceHandle: '1742876076568'
251 | target: '1742876104154'
252 | targetHandle: target
253 | type: custom
254 | zIndex: 0
255 | - data:
256 | isInIteration: false
257 | isInLoop: false
258 | sourceType: agent
259 | targetType: answer
260 | id: 1742876104154-source-1742876151169-target
261 | source: '1742876104154'
262 | sourceHandle: source
263 | target: '1742876151169'
264 | targetHandle: target
265 | type: custom
266 | zIndex: 0
267 | - data:
268 | isInLoop: false
269 | sourceType: answer
270 | targetType: variable-aggregator
271 | id: 1742876151169-source-1742366248145-target
272 | source: '1742876151169'
273 | sourceHandle: source
274 | target: '1742366248145'
275 | targetHandle: target
276 | type: custom
277 | zIndex: 0
278 | nodes:
279 | - data:
280 | desc: ''
281 | selected: false
282 | title: 开始
283 | type: start
284 | variables: []
285 | height: 53
286 | id: '1742202974224'
287 | position:
288 | x: -157.4995864685425
289 | y: 298.88885948220747
290 | positionAbsolute:
291 | x: -157.4995864685425
292 | y: 298.88885948220747
293 | selected: false
294 | sourcePosition: right
295 | targetPosition: left
296 | type: custom
297 | width: 244
298 | - data:
299 | answer: '{{#1742202983138.text#}}'
300 | desc: ''
301 | selected: false
302 | title: 直接回复
303 | type: answer
304 | variables: []
305 | height: 104
306 | id: answer
307 | position:
308 | x: 1644.8691960724482
309 | y: -145.04731906636587
310 | positionAbsolute:
311 | x: 1644.8691960724482
312 | y: -145.04731906636587
313 | selected: false
314 | sourcePosition: right
315 | targetPosition: left
316 | type: custom
317 | width: 244
318 | - data:
319 | agent_parameters:
320 | instruction:
321 | type: constant
322 | value: '你是有用的助手
323 |
324 | history中是你和玩家的历史聊天记录
325 |
326 | 你的任务是处理账号相关的问题,其他问题不需要处理'
327 | model:
328 | type: constant
329 | value:
330 | completion_params: {}
331 | mode: chat
332 | model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
333 | model_type: llm
334 | provider: langgenius/bedrock/bedrock
335 | type: model-selector
336 | query:
337 | type: constant
338 | value: '
339 |
340 | {{#conversation.history#}}
341 |
342 |
343 |
344 | '
345 | tools:
346 | type: constant
347 | value:
348 | - enabled: true
349 | extra:
350 | description: ''
351 | parameters:
352 | user_id:
353 | auto: 1
354 | value: null
355 | provider_name: a6c3a4ee-008d-4345-a283-32ec44100cea
356 | schemas:
357 | - auto_generate: null
358 | default: null
359 | form: llm
360 | human_description:
361 | en_US: ''
362 | ja_JP: ''
363 | pt_BR: ''
364 | zh_Hans: ''
365 | label:
366 | en_US: user_id
367 | ja_JP: user_id
368 | pt_BR: user_id
369 | zh_Hans: user_id
370 | llm_description: ''
371 | max: null
372 | min: null
373 | name: user_id
374 | options: []
375 | placeholder:
376 | en_US: ''
377 | ja_JP: ''
378 | pt_BR: ''
379 | zh_Hans: ''
380 | precision: null
381 | required: true
382 | scope: null
383 | template: null
384 | type: number
385 | settings: {}
386 | tool_label: 获取用户账户封禁状态
387 | tool_name: get_user_ban_status
388 | type: workflow
389 | - enabled: true
390 | extra:
391 | description: ''
392 | parameters: {}
393 | provider_name: 5aa0d673-ca20-4aa8-bbac-85e096e45a5a
394 | schemas: []
395 | settings: {}
396 | tool_label: 提交人工服务
397 | tool_name: request_human_service
398 | type: workflow
399 | agent_strategy_label: FunctionCalling
400 | agent_strategy_name: function_calling
401 | agent_strategy_provider_name: langgenius/agent/agent
402 | desc: ''
403 | output_schema: null
404 | plugin_unique_identifier: langgenius/agent:0.0.9@f16916b704a20067317dbe9030f62aa28f0832021a3ef6d4ce699504074c5e13
405 | selected: false
406 | title: 账号Agent
407 | type: agent
408 | height: 197
409 | id: '1742202983138'
410 | position:
411 | x: 1243.8889587297572
412 | y: -6.16616491516487
413 | positionAbsolute:
414 | x: 1243.8889587297572
415 | y: -6.16616491516487
416 | selected: false
417 | sourcePosition: right
418 | targetPosition: left
419 | type: custom
420 | width: 244
421 | - data:
422 | desc: ''
423 | items:
424 | - input_type: variable
425 | operation: append
426 | value:
427 | - '1742350994298'
428 | - output
429 | variable_selector:
430 | - conversation
431 | - history
432 | write_mode: over-write
433 | selected: false
434 | title: 变量赋值
435 | type: assigner
436 | version: '2'
437 | height: 87
438 | id: '1742350971437'
439 | position:
440 | x: 362.27886031123785
441 | y: 226.05565296518773
442 | positionAbsolute:
443 | x: 362.27886031123785
444 | y: 226.05565296518773
445 | selected: false
446 | sourcePosition: right
447 | targetPosition: left
448 | type: custom
449 | width: 244
450 | - data:
451 | desc: ''
452 | selected: false
453 | template: '用户: {{ arg1 }}'
454 | title: 用户消息模板转换
455 | type: template-transform
456 | variables:
457 | - value_selector:
458 | - sys
459 | - query
460 | variable: arg1
461 | height: 53
462 | id: '1742350994298'
463 | position:
464 | x: 101.11160367302494
465 | y: 68.77814903713076
466 | positionAbsolute:
467 | x: 101.11160367302494
468 | y: 68.77814903713076
469 | selected: false
470 | sourcePosition: right
471 | targetPosition: left
472 | type: custom
473 | width: 244
474 | - data:
475 | classes:
476 | - id: '1'
477 | name: 用户需要处理账号相关
478 | - id: '2'
479 | name: 用户需要处理支付相关问题
480 | - id: '1742366386789'
481 | name: 用户要处理的事情不属于账号和支付的情况,或者无法判断属于什么分类的情况
482 | - id: '1742876076568'
483 | name: 对游戏提 bug、建议等情况
484 | desc: ''
485 | instruction: '你的任务是根据 history 中的对话内容,判断对话需要进入什么分类
486 |
487 |
488 |
489 | {{#1742365438889.output#}}
490 |
491 | '
492 | instructions: ''
493 | model:
494 | completion_params:
495 | temperature: 0.7
496 | mode: chat
497 | name: us.anthropic.claude-3-7-sonnet-20250219-v1:0
498 | provider: langgenius/bedrock/bedrock
499 | query_variable_selector:
500 | - '1742202974224'
501 | - sys.query
502 | selected: false
503 | title: 问题分类器
504 | topics: []
505 | type: question-classifier
506 | vision:
507 | enabled: false
508 | height: 279
509 | id: '1742364688771'
510 | position:
511 | x: 897.8900835353218
512 | y: -47.33275990304557
513 | positionAbsolute:
514 | x: 897.8900835353218
515 | y: -47.33275990304557
516 | selected: false
517 | sourcePosition: right
518 | targetPosition: left
519 | type: custom
520 | width: 244
521 | - data:
522 | desc: ''
523 | selected: true
524 | template: "{% for h in history %}\n - {{ h }}\n{% endfor %}"
525 | title: history模板转换
526 | type: template-transform
527 | variables:
528 | - value_selector:
529 | - conversation
530 | - history
531 | variable: history
532 | height: 53
533 | id: '1742365438889'
534 | position:
535 | x: 616.8900504528051
536 | y: 35.00043007271586
537 | positionAbsolute:
538 | x: 616.8900504528051
539 | y: 35.00043007271586
540 | selected: true
541 | sourcePosition: right
542 | targetPosition: left
543 | type: custom
544 | width: 244
545 | - data:
546 | agent_parameters:
547 | instruction:
548 | type: constant
549 | value: '你是有用的助手
550 |
551 | history中是你和玩家的历史聊天记录
552 |
553 | 你的任务是处理支付相关的问题,其他问题不需要处理
554 |
555 | '
556 | model:
557 | type: constant
558 | value:
559 | completion_params: {}
560 | mode: chat
561 | model: ep-20250326163918-p9rd5
562 | model_type: llm
563 | provider: langgenius/volcengine_maas/volcengine_maas
564 | type: model-selector
565 | query:
566 | type: constant
567 | value: '
568 |
569 | {{#conversation.history#}}
570 |
571 |
572 |
573 |
574 | '
575 | tools:
576 | type: constant
577 | value:
578 | - enabled: true
579 | extra:
580 | description: ''
581 | parameters:
582 | order_id:
583 | auto: 1
584 | value: null
585 | provider_name: c3e4cacc-322e-4093-974d-4bfd3b13db72
586 | schemas:
587 | - auto_generate: null
588 | default: null
589 | form: llm
590 | human_description:
591 | en_US: 订单 id
592 | ja_JP: 订单 id
593 | pt_BR: 订单 id
594 | zh_Hans: 订单 id
595 | label:
596 | en_US: 订单 id
597 | ja_JP: 订单 id
598 | pt_BR: 订单 id
599 | zh_Hans: 订单 id
600 | llm_description: 订单 id
601 | max: null
602 | min: null
603 | name: order_id
604 | options: []
605 | placeholder:
606 | en_US: ''
607 | ja_JP: ''
608 | pt_BR: ''
609 | zh_Hans: ''
610 | precision: null
611 | required: true
612 | scope: null
613 | template: null
614 | type: number
615 | settings: {}
616 | tool_label: 查询用户订单支付情况
617 | tool_name: get_order_status
618 | type: workflow
619 | - enabled: true
620 | extra:
621 | description: ''
622 | parameters: {}
623 | provider_name: 5aa0d673-ca20-4aa8-bbac-85e096e45a5a
624 | schemas: []
625 | settings: {}
626 | tool_label: 提交人工服务
627 | tool_name: request_human_service
628 | type: workflow
629 | agent_strategy_label: FunctionCalling
630 | agent_strategy_name: function_calling
631 | agent_strategy_provider_name: langgenius/agent/agent
632 | desc: ''
633 | output_schema: null
634 | plugin_unique_identifier: langgenius/agent:0.0.9@f16916b704a20067317dbe9030f62aa28f0832021a3ef6d4ce699504074c5e13
635 | selected: false
636 | title: 支付Agent
637 | type: agent
638 | height: 197
639 | id: '17423656891550'
640 | position:
641 | x: 1254.2224795306845
642 | y: 315.77771896441493
643 | positionAbsolute:
644 | x: 1254.2224795306845
645 | y: 315.77771896441493
646 | selected: false
647 | sourcePosition: right
648 | targetPosition: left
649 | type: custom
650 | width: 244
651 | - data:
652 | answer: '{{#17423656891550.text#}}'
653 | desc: ''
654 | selected: false
655 | title: 直接回复 2
656 | type: answer
657 | variables: []
658 | height: 104
659 | id: '1742366046859'
660 | position:
661 | x: 1650.4176772722547
662 | y: 174.4683892058428
663 | positionAbsolute:
664 | x: 1650.4176772722547
665 | y: 174.4683892058428
666 | selected: false
667 | sourcePosition: right
668 | targetPosition: left
669 | type: custom
670 | width: 244
671 | - data:
672 | desc: ''
673 | selected: false
674 | template: '客服: {{ arg1 }}'
675 | title: 客服模板转换
676 | type: template-transform
677 | variables:
678 | - value_selector:
679 | - '1742366248145'
680 | - output
681 | variable: arg1
682 | height: 53
683 | id: '1742366139536'
684 | position:
685 | x: 2208.4252502731947
686 | y: 434.68924418239953
687 | positionAbsolute:
688 | x: 2208.4252502731947
689 | y: 434.68924418239953
690 | selected: false
691 | sourcePosition: right
692 | targetPosition: left
693 | type: custom
694 | width: 244
695 | - data:
696 | desc: ''
697 | items:
698 | - input_type: variable
699 | operation: append
700 | value:
701 | - '1742366139536'
702 | - output
703 | variable_selector:
704 | - conversation
705 | - history
706 | write_mode: over-write
707 | selected: false
708 | title: 变量赋值 2
709 | type: assigner
710 | version: '2'
711 | height: 87
712 | id: '1742366188205'
713 | position:
714 | x: 2500.329328371311
715 | y: 632.857210493175
716 | positionAbsolute:
717 | x: 2500.329328371311
718 | y: 632.857210493175
719 | selected: false
720 | sourcePosition: right
721 | targetPosition: left
722 | type: custom
723 | width: 244
724 | - data:
725 | desc: ''
726 | output_type: string
727 | selected: false
728 | title: 变量聚合器
729 | type: variable-aggregator
730 | variables:
731 | - - '17423656891550'
732 | - text
733 | - - '1742202983138'
734 | - text
735 | - - '17423664651770'
736 | - text
737 | - - '1742876104154'
738 | - text
739 | height: 174
740 | id: '1742366248145'
741 | position:
742 | x: 2186.2325147105676
743 | y: -93.95530267825728
744 | positionAbsolute:
745 | x: 2186.2325147105676
746 | y: -93.95530267825728
747 | selected: false
748 | sourcePosition: right
749 | targetPosition: left
750 | type: custom
751 | width: 244
752 | - data:
753 | agent_parameters:
754 | instruction:
755 | type: constant
756 | value: '你是有用的助手
757 |
758 | history中是你和玩家的历史聊天记录
759 |
760 | 你的任务是问清楚玩家的意图,是需要处理支付问题还是账号相关问题'
761 | model:
762 | type: constant
763 | value:
764 | completion_params: {}
765 | mode: chat
766 | model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
767 | model_type: llm
768 | provider: langgenius/bedrock/bedrock
769 | type: model-selector
770 | query:
771 | type: constant
772 | value: '
773 |
774 | {{#conversation.history#}}
775 |
776 |
777 |
778 |
779 | '
780 | tools:
781 | type: constant
782 | value:
783 | - enabled: true
784 | extra:
785 | description: ''
786 | parameters: {}
787 | provider_name: 5aa0d673-ca20-4aa8-bbac-85e096e45a5a
788 | schemas: []
789 | settings: {}
790 | tool_label: 提交人工服务
791 | tool_name: request_human_service
792 | type: workflow
793 | agent_strategy_label: FunctionCalling
794 | agent_strategy_name: function_calling
795 | agent_strategy_provider_name: langgenius/agent/agent
796 | desc: ''
797 | output_schema: null
798 | plugin_unique_identifier: langgenius/agent:0.0.9@f16916b704a20067317dbe9030f62aa28f0832021a3ef6d4ce699504074c5e13
799 | selected: false
800 | title: 主Agent
801 | type: agent
802 | height: 197
803 | id: '17423664651770'
804 | position:
805 | x: 1248.201359655381
806 | y: 599.8852506836595
807 | positionAbsolute:
808 | x: 1248.201359655381
809 | y: 599.8852506836595
810 | selected: false
811 | sourcePosition: right
812 | targetPosition: left
813 | type: custom
814 | width: 244
815 | - data:
816 | answer: '{{#17423664651770.text#}}'
817 | desc: ''
818 | selected: false
819 | title: 直接回复3
820 | type: answer
821 | variables: []
822 | height: 104
823 | id: '17423665567250'
824 | position:
825 | x: 1671.6555835425759
826 | y: 473.96123614884766
827 | positionAbsolute:
828 | x: 1671.6555835425759
829 | y: 473.96123614884766
830 | selected: false
831 | sourcePosition: right
832 | targetPosition: left
833 | type: custom
834 | width: 244
835 | - data:
836 | agent_parameters:
837 | instruction:
838 | type: constant
839 | value: '你是有用的助手
840 |
841 | history中是你和玩家的历史聊天记录
842 |
843 | 你的任务是处理用户 bug 和建议相关的问题,其他问题不需要处理
844 |
845 | '
846 | model:
847 | type: constant
848 | value:
849 | completion_params: {}
850 | mode: chat
851 | model: gpt-4o
852 | model_type: llm
853 | provider: langgenius/azure_openai/azure_openai
854 | type: model-selector
855 | query:
856 | type: constant
857 | value: '
858 |
859 | {{#conversation.history#}}
860 |
861 |
862 |
863 |
864 | '
865 | tools:
866 | type: constant
867 | value:
868 | - enabled: true
869 | extra:
870 | description: ''
871 | parameters: {}
872 | provider_name: 5aa0d673-ca20-4aa8-bbac-85e096e45a5a
873 | schemas: []
874 | settings: {}
875 | tool_label: 提交人工服务
876 | tool_name: request_human_service
877 | type: workflow
878 | agent_strategy_label: FunctionCalling
879 | agent_strategy_name: function_calling
880 | agent_strategy_provider_name: langgenius/agent/agent
881 | desc: ''
882 | output_schema: null
883 | plugin_unique_identifier: langgenius/agent:0.0.10@a45219413e9ff55abd7cfd2153e82ddeddcfd7eabf2f79749c2b0d04c0e96741
884 | selected: false
885 | title: bug 建议受理 agent
886 | type: agent
887 | height: 197
888 | id: '1742876104154'
889 | position:
890 | x: 1248.201359655381
891 | y: 874.8852506836595
892 | positionAbsolute:
893 | x: 1248.201359655381
894 | y: 874.8852506836595
895 | selected: false
896 | sourcePosition: right
897 | targetPosition: left
898 | type: custom
899 | width: 244
900 | - data:
901 | answer: '{{#1742876104154.text#}}'
902 | desc: ''
903 | selected: false
904 | title: 直接回复 4
905 | type: answer
906 | variables: []
907 | height: 104
908 | id: '1742876151169'
909 | position:
910 | x: 1738.2101840737496
911 | y: 773.950229681444
912 | positionAbsolute:
913 | x: 1738.2101840737496
914 | y: 773.950229681444
915 | selected: false
916 | sourcePosition: right
917 | targetPosition: left
918 | type: custom
919 | width: 244
920 | viewport:
921 | x: 118.93178331282155
922 | y: 78.6091496941163
923 | zoom: 0.6858666442952998
924 |
--------------------------------------------------------------------------------
/提交人工服务 (1).yml:
--------------------------------------------------------------------------------
1 | app:
2 | description: ''
3 | icon: 🤖
4 | icon_background: '#FFEAD5'
5 | mode: workflow
6 | name: 提交人工服务
7 | use_icon_as_answer_icon: false
8 | dependencies: []
9 | kind: app
10 | version: 0.1.5
11 | workflow:
12 | conversation_variables: []
13 | environment_variables: []
14 | features:
15 | file_upload:
16 | allowed_file_extensions:
17 | - .JPG
18 | - .JPEG
19 | - .PNG
20 | - .GIF
21 | - .WEBP
22 | - .SVG
23 | allowed_file_types:
24 | - image
25 | allowed_file_upload_methods:
26 | - local_file
27 | - remote_url
28 | enabled: false
29 | fileUploadConfig:
30 | audio_file_size_limit: 50
31 | batch_count_limit: 5
32 | file_size_limit: 15
33 | image_file_size_limit: 10
34 | video_file_size_limit: 100
35 | workflow_file_upload_limit: 10
36 | image:
37 | enabled: false
38 | number_limits: 3
39 | transfer_methods:
40 | - local_file
41 | - remote_url
42 | number_limits: 3
43 | opening_statement: ''
44 | retriever_resource:
45 | enabled: true
46 | sensitive_word_avoidance:
47 | enabled: false
48 | speech_to_text:
49 | enabled: false
50 | suggested_questions: []
51 | suggested_questions_after_answer:
52 | enabled: false
53 | text_to_speech:
54 | enabled: false
55 | language: ''
56 | voice: ''
57 | graph:
58 | edges:
59 | - data:
60 | isInIteration: false
61 | isInLoop: false
62 | sourceType: start
63 | targetType: template-transform
64 | id: 1742547638921-source-1742547647415-target
65 | source: '1742547638921'
66 | sourceHandle: source
67 | target: '1742547647415'
68 | targetHandle: target
69 | type: custom
70 | zIndex: 0
71 | - data:
72 | isInIteration: false
73 | isInLoop: false
74 | sourceType: template-transform
75 | targetType: end
76 | id: 1742547647415-source-1742547641743-target
77 | source: '1742547647415'
78 | sourceHandle: source
79 | target: '1742547641743'
80 | targetHandle: target
81 | type: custom
82 | zIndex: 0
83 | nodes:
84 | - data:
85 | desc: ''
86 | selected: false
87 | title: 开始
88 | type: start
89 | variables: []
90 | height: 66
91 | id: '1742547638921'
92 | position:
93 | x: 80
94 | y: 282
95 | positionAbsolute:
96 | x: 80
97 | y: 282
98 | selected: false
99 | sourcePosition: right
100 | targetPosition: left
101 | type: custom
102 | width: 244
103 | - data:
104 | desc: ''
105 | outputs:
106 | - value_selector:
107 | - '1742547647415'
108 | - output
109 | variable: output
110 | selected: false
111 | title: 结束
112 | type: end
113 | height: 111
114 | id: '1742547641743'
115 | position:
116 | x: 684
117 | y: 282
118 | positionAbsolute:
119 | x: 684
120 | y: 282
121 | selected: false
122 | sourcePosition: right
123 | targetPosition: left
124 | type: custom
125 | width: 244
126 | - data:
127 | desc: ''
128 | selected: true
129 | template: 你好,请点击 https://www.a.com 寻求人工服务
130 | title: 模板转换
131 | type: template-transform
132 | variables: []
133 | height: 66
134 | id: '1742547647415'
135 | position:
136 | x: 384
137 | y: 282
138 | positionAbsolute:
139 | x: 384
140 | y: 282
141 | selected: true
142 | sourcePosition: right
143 | targetPosition: left
144 | type: custom
145 | width: 244
146 | viewport:
147 | x: 0
148 | y: 0
149 | zoom: 1
150 |
--------------------------------------------------------------------------------
/查询用户订单支付情况 (1).yml:
--------------------------------------------------------------------------------
1 | app:
2 | description: ''
3 | icon: 🤖
4 | icon_background: '#FFEAD5'
5 | mode: workflow
6 | name: 查询用户订单支付情况
7 | use_icon_as_answer_icon: false
8 | dependencies: []
9 | kind: app
10 | version: 0.1.5
11 | workflow:
12 | conversation_variables: []
13 | environment_variables: []
14 | features:
15 | file_upload:
16 | allowed_file_extensions:
17 | - .JPG
18 | - .JPEG
19 | - .PNG
20 | - .GIF
21 | - .WEBP
22 | - .SVG
23 | allowed_file_types:
24 | - image
25 | allowed_file_upload_methods:
26 | - local_file
27 | - remote_url
28 | enabled: false
29 | fileUploadConfig:
30 | audio_file_size_limit: 50
31 | batch_count_limit: 5
32 | file_size_limit: 15
33 | image_file_size_limit: 10
34 | video_file_size_limit: 100
35 | workflow_file_upload_limit: 10
36 | image:
37 | enabled: false
38 | number_limits: 3
39 | transfer_methods:
40 | - local_file
41 | - remote_url
42 | number_limits: 3
43 | opening_statement: ''
44 | retriever_resource:
45 | enabled: true
46 | sensitive_word_avoidance:
47 | enabled: false
48 | speech_to_text:
49 | enabled: false
50 | suggested_questions: []
51 | suggested_questions_after_answer:
52 | enabled: false
53 | text_to_speech:
54 | enabled: false
55 | language: ''
56 | voice: ''
57 | graph:
58 | edges:
59 | - data:
60 | isInIteration: false
61 | isInLoop: false
62 | sourceType: start
63 | targetType: if-else
64 | id: 1742541310094-source-1742541333879-target
65 | source: '1742541310094'
66 | sourceHandle: source
67 | target: '1742541333879'
68 | targetHandle: target
69 | type: custom
70 | zIndex: 0
71 | - data:
72 | isInIteration: false
73 | isInLoop: false
74 | sourceType: if-else
75 | targetType: template-transform
76 | id: 1742541333879-true-1742541359778-target
77 | source: '1742541333879'
78 | sourceHandle: 'true'
79 | target: '1742541359778'
80 | targetHandle: target
81 | type: custom
82 | zIndex: 0
83 | - data:
84 | isInIteration: false
85 | isInLoop: false
86 | sourceType: if-else
87 | targetType: template-transform
88 | id: 1742541333879-false-1742541406189-target
89 | source: '1742541333879'
90 | sourceHandle: 'false'
91 | target: '1742541406189'
92 | targetHandle: target
93 | type: custom
94 | zIndex: 0
95 | - data:
96 | isInLoop: false
97 | sourceType: template-transform
98 | targetType: variable-aggregator
99 | id: 1742541359778-source-1742541442313-target
100 | source: '1742541359778'
101 | sourceHandle: source
102 | target: '1742541442313'
103 | targetHandle: target
104 | type: custom
105 | zIndex: 0
106 | - data:
107 | isInLoop: false
108 | sourceType: template-transform
109 | targetType: variable-aggregator
110 | id: 1742541406189-source-1742541442313-target
111 | source: '1742541406189'
112 | sourceHandle: source
113 | target: '1742541442313'
114 | targetHandle: target
115 | type: custom
116 | zIndex: 0
117 | - data:
118 | isInIteration: false
119 | isInLoop: false
120 | sourceType: variable-aggregator
121 | targetType: end
122 | id: 1742541442313-source-1742541456846-target
123 | source: '1742541442313'
124 | sourceHandle: source
125 | target: '1742541456846'
126 | targetHandle: target
127 | type: custom
128 | zIndex: 0
129 | nodes:
130 | - data:
131 | desc: ''
132 | selected: false
133 | title: 开始
134 | type: start
135 | variables:
136 | - label: 订单 id
137 | max_length: 48
138 | options: []
139 | required: true
140 | type: number
141 | variable: order_id
142 | height: 111
143 | id: '1742541310094'
144 | position:
145 | x: 80
146 | y: 282
147 | positionAbsolute:
148 | x: 80
149 | y: 282
150 | selected: false
151 | sourcePosition: right
152 | targetPosition: left
153 | type: custom
154 | width: 244
155 | - data:
156 | cases:
157 | - case_id: 'true'
158 | conditions:
159 | - comparison_operator: <
160 | id: 3974d6d3-f21e-42e1-93f1-dd64d2d41a04
161 | value: '10'
162 | varType: number
163 | variable_selector:
164 | - '1742541310094'
165 | - order_id
166 | id: 'true'
167 | logical_operator: and
168 | desc: ''
169 | selected: false
170 | title: 条件分支
171 | type: if-else
172 | height: 156
173 | id: '1742541333879'
174 | position:
175 | x: 384
176 | y: 282
177 | positionAbsolute:
178 | x: 384
179 | y: 282
180 | selected: false
181 | sourcePosition: right
182 | targetPosition: left
183 | type: custom
184 | width: 244
185 | - data:
186 | desc: ''
187 | selected: false
188 | template: '{{ order_id }}支付失败'
189 | title: 模板转换
190 | type: template-transform
191 | variables:
192 | - value_selector:
193 | - '1742541310094'
194 | - order_id
195 | variable: order_id
196 | height: 66
197 | id: '1742541359778'
198 | position:
199 | x: 688
200 | y: 282
201 | positionAbsolute:
202 | x: 688
203 | y: 282
204 | selected: false
205 | sourcePosition: right
206 | targetPosition: left
207 | type: custom
208 | width: 244
209 | - data:
210 | desc: ''
211 | selected: true
212 | template: '{{ order_id }}支付成功'
213 | title: 模板转换 2
214 | type: template-transform
215 | variables:
216 | - value_selector:
217 | - '1742541310094'
218 | - order_id
219 | variable: order_id
220 | height: 66
221 | id: '1742541406189'
222 | position:
223 | x: 688
224 | y: 434
225 | positionAbsolute:
226 | x: 688
227 | y: 434
228 | selected: true
229 | sourcePosition: right
230 | targetPosition: left
231 | type: custom
232 | width: 244
233 | - data:
234 | desc: ''
235 | output_type: string
236 | selected: false
237 | title: 变量聚合器
238 | type: variable-aggregator
239 | variables:
240 | - - '1742541359778'
241 | - output
242 | - - '1742541406189'
243 | - output
244 | height: 158
245 | id: '1742541442313'
246 | position:
247 | x: 1053
248 | y: 297
249 | positionAbsolute:
250 | x: 1053
251 | y: 297
252 | selected: false
253 | sourcePosition: right
254 | targetPosition: left
255 | type: custom
256 | width: 244
257 | - data:
258 | desc: ''
259 | outputs:
260 | - value_selector:
261 | - '1742541442313'
262 | - output
263 | variable: output
264 | selected: false
265 | title: 结束
266 | type: end
267 | height: 111
268 | id: '1742541456846'
269 | position:
270 | x: 1357
271 | y: 297
272 | positionAbsolute:
273 | x: 1357
274 | y: 297
275 | selected: false
276 | sourcePosition: right
277 | targetPosition: left
278 | type: custom
279 | width: 244
280 | viewport:
281 | x: -97
282 | y: 64
283 | zoom: 1
284 |
--------------------------------------------------------------------------------