股票分析系统
本工作流调用第三方股票信息,通过股票信息发送给大模型由模型提供分析给出股票的买卖决策判断等信息
工作流图谱
YAML 源码
app:
description: 本工作流调用第三方股票信息,通过股票信息发送给大模型由模型提供分析给出股票的买卖决策判断等信息
icon: scream
icon_background: '#FFEAD5'
mode: advanced-chat
name: 股票分析系统
use_icon_as_answer_icon: false
kind: app
version: 0.1.5
workflow:
conversation_variables: []
environment_variables:
- description: ''
id: 78af7cd7-92fa-44fe-8951-26638703d43c
name: apikey
selector:
- env
- apikey
value: zhouhuixxxx
value_type: string
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: true
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: start
targetType: if-else
id: 1741660271061-source-1741660654730-target
selected: false
source: '1741660271061'
sourceHandle: source
target: '1741660654730'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1741660654730-false-17416607292670-target
selected: false
source: '1741660654730'
sourceHandle: 'false'
target: '17416607292670'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: code
id: 1741660778252-source-1741663437132-target
selected: false
source: '1741660778252'
sourceHandle: source
target: '1741663437132'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: if-else
id: 1741663437132-source-1741670198264-target
selected: false
source: '1741663437132'
sourceHandle: source
target: '1741670198264'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1741670198264-true-1741669644195-target
selected: false
source: '1741670198264'
sourceHandle: 'true'
target: '1741669644195'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1741670198264-6c1dbd89-ad21-4925-89f3-5b690a144fa0-17416703386570-target
selected: false
source: '1741670198264'
sourceHandle: 6c1dbd89-ad21-4925-89f3-5b690a144fa0
target: '17416703386570'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1741670198264-ccf046c0-1736-4991-ac66-a626d63b2fd6-17416704837760-target
selected: false
source: '1741670198264'
sourceHandle: ccf046c0-1736-4991-ac66-a626d63b2fd6
target: '17416704837760'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1741670198264-false-17416706257040-target
selected: false
source: '1741670198264'
sourceHandle: 'false'
target: '17416706257040'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: answer
id: 1741669644195-source-answer-target
selected: false
source: '1741669644195'
sourceHandle: source
target: answer
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: answer
id: 17416703386570-source-1741698137000-target
selected: false
source: '17416703386570'
sourceHandle: source
target: '1741698137000'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: answer
id: 17416704837760-source-1741698182821-target
selected: false
source: '17416704837760'
sourceHandle: source
target: '1741698182821'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: answer
id: 17416706257040-source-1741698215893-target
selected: false
source: '17416706257040'
sourceHandle: source
target: '1741698215893'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: code
id: 1741660654730-true-1741711639874-target
source: '1741660654730'
sourceHandle: 'true'
target: '1741711639874'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: http-request
id: 1741711639874-source-1741660778252-target
source: '1741711639874'
sourceHandle: source
target: '1741660778252'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: 股票号码查询可以去东方财富网https://quote.eastmoney.com/center/gridlist.html#fund_lof查找
selected: false
title: 开始
type: start
variables:
- label: 股票代码-下拉选择
max_length: 48
options:
- ''
- 000568
- '002657'
- '000050'
- 000599
- '600031'
- '600050'
- '600054'
- '01347'
- 01880
- 08257
- 105.WLGS
- 105.EJH
- '512670'
- '501065'
required: false
type: select
variable: stockcode1
- label: 股票代码手工输入(如A股 000568 、港股 01347、美股 105.WLGS、ETF 512670 LOF 501065)
max_length: 48
options: []
required: false
type: text-input
variable: stockcode2
- label: 市场类型
max_length: 48
options:
- A
- HK
- US
- ETF
- LOF
required: true
type: select
variable: marketType
height: 202
id: '1741660271061'
position:
x: 32.5483009607201
y: 301
positionAbsolute:
x: 32.5483009607201
y: 301
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#1741669644195.text#}}'
desc: ''
selected: false
title: A股直接回复
type: answer
variables: []
height: 103
id: answer
position:
x: 2158
y: 456
positionAbsolute:
x: 2158
y: 456
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: not empty
id: e673fa11-d63f-4c27-b960-ae1132875494
value: ''
varType: string
variable_selector:
- '1741660271061'
- stockcode1
- comparison_operator: not empty
id: 6dfe60af-e5ac-4b5e-bd13-696af127680e
value: ''
varType: string
variable_selector:
- '1741660271061'
- stockcode2
id: 'true'
logical_operator: or
desc: ''
selected: false
title: 条件分支
type: if-else
height: 152
id: '1741660654730'
position:
x: 334
y: 301
positionAbsolute:
x: 334
y: 301
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: 股票代码为空不能查询,请重新输入
desc: ''
selected: false
title: 错误提示回复
type: answer
variables: []
height: 100
id: '17416607292670'
position:
x: 638
y: 301
positionAbsolute:
x: 638
y: 301
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
authorization:
config: null
type: no-auth
body:
data:
- id: key-value-1
key: ''
type: text
value: "{\n \"stock_code\":\"{{#1741711639874.output#}}\",\n \"market_type\"\
:\"{{#1741660271061.marketType#}}\"\n }"
type: json
desc: ''
headers: 'Content-Type:application/json
Authorization:Bearer {{#env.apikey#}}'
method: post
params: ''
retry_config:
max_retries: 3
retry_enabled: true
retry_interval: 100
selected: false
timeout:
max_connect_timeout: 0
max_read_timeout: 0
max_write_timeout: 0
title: 请求股票接口
type: http-request
url: http://127.0.0.1:8085/analyze-stock/
variables: []
height: 136
id: '1741660778252'
position:
x: 942
...(过长已截断)