自动回复邮件的AI客服
暂无描述
工作流图谱
YAML 源码
app:
description: ''
icon: 📧
icon_background: '#EFF1F5'
mode: advanced-chat
name: 自动回复邮件的AI客服
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openai:0.0.13@9caa0421b5519db036aaccdbf1980d1071550767d6c59e9d9388dd386a92e9f6
kind: app
version: 0.1.5
workflow:
conversation_variables: []
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
allowed_file_upload_methods:
- local_file
- remote_url
enabled: false
fileUploadConfig:
audio_file_size_limit: 50
batch_count_limit: 5
file_size_limit: 15
image_file_size_limit: 10
video_file_size_limit: 100
workflow_file_upload_limit: 10
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 3
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
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
sourceType: code
targetType: iteration
id: 1716909112104-source-1716909114582-target
source: '1716909112104'
sourceHandle: source
target: '1716909114582'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: llm
targetType: llm
id: 1716913272656-source-1716909125498-target
source: '1716913272656'
sourceHandle: source
target: '1716909125498'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
sourceType: iteration
targetType: template-transform
id: 1716909114582-source-1716913435742-target
source: '1716909114582'
sourceHandle: source
target: '1716913435742'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: answer
id: 1716913435742-source-1716806267180-target
source: '1716913435742'
sourceHandle: source
target: '1716806267180'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: start
targetType: tool
id: 1716800588219-source-1716946869294-target
source: '1716800588219'
sourceHandle: source
target: '1716946869294'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: tool
targetType: code
id: 1716946869294-source-1716909112104-target
source: '1716946869294'
sourceHandle: source
target: '1716909112104'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: tool
targetType: code
id: 1716946889408-source-1716909122343-target
source: '1716946889408'
sourceHandle: source
target: '1716909122343'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: code
targetType: code
id: 1716909122343-source-1716951357236-target
source: '1716909122343'
sourceHandle: source
target: '1716951357236'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: code
targetType: llm
id: 1716951357236-source-1716913272656-target
source: '1716951357236'
sourceHandle: source
target: '1716913272656'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: llm
targetType: template-transform
id: 1716909125498-source-1716951236700-target
source: '1716909125498'
sourceHandle: source
target: '1716951236700'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: template-transform
targetType: llm
id: 1716951236700-source-1716951159073-target
source: '1716951236700'
sourceHandle: source
target: '1716951159073'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: llm
targetType: template-transform
id: 1716951159073-source-1716952228079-target
source: '1716951159073'
sourceHandle: source
target: '1716952228079'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1716909114582'
sourceType: template-transform
targetType: tool
id: 1716952228079-source-1716952912103-target
source: '1716952228079'
sourceHandle: source
target: '1716952912103'
targetHandle: target
type: custom
zIndex: 1002
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables:
- label: Your Email
max_length: 256
options: []
required: true
type: text-input
variable: email
- label: Maximum Number of Email you want to retrieve
max_length: 256
options: []
required: true
type: number
variable: maxResults
height: 116
id: '1716800588219'
position:
x: 30
y: 324.5
positionAbsolute:
x: 30
y: 324.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#1716913435742.output#}}'
desc: ''
selected: false
title: 直接回复
type: answer
variables: []
height: 105
id: '1716806267180'
position:
x: 4100
y: 324.5
positionAbsolute:
x: 4100
y: 324.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "def main(message: str) -> dict:\n import json\n \n # Parse\
\ the JSON string\n parsed_data = json.loads(message)\n \n # Extract\
\ all the \"id\" values\n ids = [msg['id'] for msg in parsed_data['messages']]\n\
\ \n return {\n \"result\": ids\n }"
code_language: python3
desc: ''
outputs:
result:
children: null
type: array[string]
selected: false
title: 代码提取邮件ID
type: code
variables:
- value_selector:
- '1716946869294'
- text
variable: message
height: 54
id: '1716909112104'
position:
x: 638
y: 324.5
positionAbsolute:
x: 638
y: 324.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
error_handle_mode: terminated
height: 249
is_parallel: false
iterator_selector:
- '1716909112104'
- result
output_selector:
- '1716909125498'
- text
output_type: array[string]
parallel_nums: 10
selected: false
startNodeType: tool
start_node_id: '1716946889408'
title: 迭代
type: iteration
width: 2793.7520359289056
height: 249
id: '1716909114582'
position:
x: 942
y: 324.5
positionAbsolute:
x: 942
y: 324.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 2794
zIndex: 1
- data:
desc: ''
isInIteration: true
isIterationStart: true
iteration_id: '1716909114582'
provider_id: e64b4c7f-2795-499c-8d11-a971a7d57fc9
provider_name: List and Get Gmail
provider_type: api
selected: false
title: getMessage
tool_configurations: {}
tool_label: getMessage
tool_name: getMessage
tool_parameters:
format:
type: mixed
value: full
id:
type: mixed
value: '{{#1716909114582.item#}}'
userId:
type: mixed
value: '{{#1716800588219.email#}}'
type: tool
extent: parent
height: 54
id: '1716946889408'
parentId: '1716909114582'
position:
x: 117
y: 85
positionAbsolute:
x: 1059
y: 409.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1001
- data:
code: "\ndef main(email_json: dict) -> dict:\n import json \n email_dict\
\ = json.loads(email_json)\n base64_data = email_dict['payload']['parts'][0]['body']['data']\n\
\n return {\n \"result\": base64_data, \n }\n"
code_language: python3
desc: ''
isInIteration: true
iteration_id: '1716909114582'
outputs:
result:
children: null
type: string
selected: false
title: 提取邮件 b...(过长已截断)