add more market template (#3030)

* add more market template

* delete long translate avatar
This commit is contained in:
papapatrick
2024-10-30 18:42:46 +08:00
committed by GitHub
parent e361279208
commit 732b6d7780
11 changed files with 5099 additions and 0 deletions

View File

@@ -0,0 +1 @@
<svg t="1730275413281" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16472" width="200" height="200"><path d="M919 233.6s-46.2-41.4-93.4-63.2c-51.4-26.6-124-25.4-124-25.4s-51.2-4.1-103.6 22.6c-52.4 26.7-91.1 62.9-91.1 62.9s-53.5-44.1-100.8-67.2S290.7 145 290.7 145s-64.9 3.6-106.7 23.8c-41.8 20.3-80.1 68.4-80.1 68.4v621.4s59-55.1 94.2-70.6c35.2-15.5 90.3-15 90.3-15s66 8.5 105.3 25.7c39.3 17.1 113.2 80.7 113.2 80.7s47.1-54.2 84.9-74.5c64.1-35.7 127.7-30.6 127.7-30.6s39.1 1.8 93.4 23.8c49.4 20 107.1 61.7 107.1 61.7l-1-626.2zM486.9 811s-101.1-86.3-198.4-84.3c-91.7 1.8-126.8 26.9-150.6 52.5 0.9-30.2-0.4-519.3-0.4-519.3s35.2-68.4 154.1-73.9c101-9.2 188.2 67.8 193.6 82.5 2.5 19.2 1.7 542.5 1.7 542.5z m394.8-20.2c-23.8-25.7-87.5-64.2-179.1-66-97.3-1.9-173.9 87.1-173.9 87.1s-0.8-523.3 1.7-542.5c8.5-14.7 74.7-88 193.6-82.5 103 4.8 159.1 72.2 159.1 72.2s-1.3 501.7-1.4 531.7z" fill="#000000" p-id="16473"></path><path d="M544.6 609.5h-65.1c-6.6 0-12-5.4-12-12v-171c0-6.6 5.4-12 12-12h65.1c6.6 0 12 5.4 12 12v171c0 6.6-5.4 12-12 12z" fill="#000000" p-id="16474"></path><path d="M544.6 609.5h-65.1c-6.6 0-12-5.4-12-12v-171c0-6.6 5.4-12 12-12h65.1c6.6 0 12 5.4 12 12v171c0 6.6-5.4 12-12 12z" fill="#000000" p-id="16475"></path></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,501 @@
{
"name": "汉语新解",
"intro": "生成汉语释义图",
"author": "",
"avatar": "/appMarketTemplates/Chinese/avatar.svg",
"tags": ["roleplay"],
"type": "advanced",
"workflow": {
"nodes": [
{
"nodeId": "userGuide",
"name": "common:core.module.template.system_config",
"intro": "common:core.module.template.system_config_info",
"avatar": "core/workflow/template/systemConfig",
"flowNodeType": "userGuide",
"position": {
"x": 262.2732338817093,
"y": -476.00241136598146
},
"version": "481",
"inputs": [
{
"key": "welcomeText",
"renderTypeList": ["hidden"],
"valueType": "string",
"label": "core.app.Welcome Text",
"value": ""
},
{
"key": "variables",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "core.app.Chat Variable",
"value": []
},
{
"key": "questionGuide",
"valueType": "boolean",
"renderTypeList": ["hidden"],
"label": "core.app.Question Guide",
"value": false
},
{
"key": "tts",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": {
"type": "web"
}
},
{
"key": "whisper",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": {
"open": false,
"autoSend": false,
"autoTTSResponse": false
}
},
{
"key": "scheduleTrigger",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": null
}
],
"outputs": []
},
{
"nodeId": "448745",
"name": "common:core.module.template.work_start",
"intro": "",
"avatar": "core/workflow/template/workflowStart",
"flowNodeType": "workflowStart",
"position": {
"x": 632.368838596004,
"y": -347.7446492944009
},
"version": "481",
"inputs": [
{
"key": "userChatInput",
"renderTypeList": ["reference", "textarea"],
"valueType": "string",
"label": "common:core.module.input.label.user question",
"required": true,
"toolDescription": "用户问题",
"debugLabel": ""
}
],
"outputs": [
{
"id": "userChatInput",
"key": "userChatInput",
"label": "common:core.module.input.label.user question",
"type": "static",
"valueType": "string",
"description": ""
}
]
},
{
"nodeId": "bg853CwHAw4a",
"name": "AI 对话",
"intro": "AI 大模型对话",
"avatar": "core/workflow/template/aiChat",
"flowNodeType": "chatNode",
"showStatus": true,
"position": {
"x": 1318.728987052518,
"y": -612.0024113659815
},
"version": "481",
"inputs": [
{
"key": "model",
"renderTypeList": ["settingLLMModel", "reference"],
"label": "AI 模型",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": "",
"value": "claude-3-5-sonnet-20240620"
},
{
"key": "temperature",
"renderTypeList": ["hidden"],
"label": "",
"value": 0,
"valueType": "number",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "maxToken",
"renderTypeList": ["hidden"],
"label": "",
"value": 2000,
"valueType": "number",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "isResponseAnswerText",
"renderTypeList": ["hidden"],
"label": "",
"value": false,
"valueType": "boolean",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "aiChatQuoteRole",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"value": "system",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quoteTemplate",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quotePrompt",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "aiChatVision",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "boolean",
"value": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "systemPrompt",
"renderTypeList": ["textarea", "reference"],
"max": 3000,
"valueType": "string",
"label": "提示词",
"description": "core.app.tip.chatNodeSystemPromptTip",
"placeholder": "core.app.tip.chatNodeSystemPromptTip",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"value": "{提示词 START\n;; 作者: 李继刚\n;; 版本: 0.3\n;; 模型: Claude Sonnet\n;; 用途: 将一个汉语词汇进行全新角度的解释\n\n;; 设定如下内容为你的 *System Prompt*\n(defun 新汉语老师 ()\n \"你是年轻人,批判现实,思考深刻,语言风趣\"\n (风格 . (\"Oscar Wilde\" \"鲁迅\" \"罗永浩\"))\n (擅长 . 一针见血)\n (表达 . 隐喻)\n (批判 . 讽刺幽默))\n\n(defun 汉语新解 (用户输入)\n \"你会用一个特殊视角来解释一个词汇\"\n (let (解释 (精练表达\n (隐喻 (一针见血 (辛辣讽刺 (抓住本质 用户输入))))))\n (few-shots (委婉 . \"刺向他人时, 决定在剑刃上撒上止痛药。\"))\n (SVG-Card 解释)))\n\n(defun SVG-Card (解释)\n \"输出SVG 卡片\"\n (setq design-rule \"合理使用负空间,整体排版要有呼吸感\"\n design-principles '(干净 简洁 典雅))\n\n (设置画布 '(宽度 400 高度 600 边距 20))\n (标题字体 '毛笔楷体)\n (自动缩放 '(最小字号 16))\n\n (配色风格 '((背景色 (蒙德里安风格 设计感)))\n (主要文字 (汇文明朝体 粉笔灰))\n (装饰图案 随机几何图))\n\n (卡片元素 ((居中标题 \"汉语新解\")\n 分隔线\n (排版输出 用户输入 英文 日语)\n 解释\n (线条图 (批判内核 解释))\n (极简总结 线条图))))\n\n(defun start ()\n \"启动时运行\"\n (let (system-role 新汉语老师)\n (print \"说吧, 他们又用哪个词来忽悠你了?\")))\n\n;; 运行规则\n;; 1. 启动时必须运行 (start) 函数\n;; 2. 之后调用主函数 (汉语新解 用户输入)\n提示词 END}\n\n直接生成 svg 完整代码,我会复制,需要你用代码块)\n除此之外不要有多余的解释不要在开头加上任何说明\n解释的内容自动加入换行标签例如\n<tspan x=\"50%\" dy=\"25\" font-size=\"18\" fill=\"#8B4513\">文字1</tspan>\n <tspan x=\"50%\" dy=\"25\" font-size=\"18\" fill=\"#8B4513\">文字12</tspan>"
},
{
"key": "history",
"renderTypeList": ["numberInput", "reference"],
"valueType": "chatHistory",
"label": "聊天记录",
"description": "workflow:max_dialog_rounds",
"required": true,
"min": 0,
"max": 50,
"value": 0,
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quoteQA",
"renderTypeList": ["settingDatasetQuotePrompt"],
"label": "",
"debugLabel": "知识库引用",
"description": "",
"valueType": "datasetQuote",
"valueDesc": "",
"toolDescription": ""
},
{
"key": "stringQuoteText",
"renderTypeList": ["reference", "textarea"],
"label": "文档引用",
"debugLabel": "文档引用",
"description": "app:document_quote_tip",
"valueType": "string",
"valueDesc": "",
"toolDescription": ""
},
{
"key": "userChatInput",
"renderTypeList": ["reference", "textarea"],
"valueType": "string",
"label": "用户问题",
"required": true,
"toolDescription": "用户问题",
"valueDesc": "",
"description": "",
"debugLabel": "",
"value": ["448745", "userChatInput"]
}
],
"outputs": [
{
"id": "history",
"key": "history",
"required": true,
"label": "common:core.module.output.label.New context",
"description": "将本次回复内容拼接上历史记录,作为新的上下文返回",
"valueType": "chatHistory",
"valueDesc": "{\n obj: System | Human | AI;\n value: string;\n}[]",
"type": "static"
},
{
"id": "answerText",
"key": "answerText",
"required": true,
"label": "common:core.module.output.label.Ai response content",
"description": "将在 stream 回复完毕后触发",
"valueType": "string",
"type": "static"
}
]
},
{
"nodeId": "sbVUb0efY6Fm",
"name": "代码运行",
"intro": "执行一段简单的脚本代码,通常用于进行复杂的数据处理。",
"avatar": "core/workflow/template/codeRun",
"flowNodeType": "code",
"showStatus": true,
"position": {
"x": 2210.2574140398733,
"y": -621.0024113659815
},
"version": "482",
"inputs": [
{
"key": "system_addInputParam",
"renderTypeList": ["addInputParam"],
"valueType": "dynamic",
"label": "",
"required": false,
"description": "workflow:these_variables_will_be_input_parameters_for_code_execution",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "codeType",
"renderTypeList": ["hidden"],
"label": "",
"value": "js",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "code",
"renderTypeList": ["custom"],
"label": "",
"value": "function main({svg_str}){\n\n // 使用正则表达式匹配代码块中的内容\n const match = svg_str.match(/```[\\w]*\\n([\\s\\S]*?)```/);\n\n if (!match) {\n // 如果没有匹配到代码块,返回一个错误信息或空结果\n return {\n result: null,\n error: \"未找到有效的代码块标记。\"\n };\n }\n\n // 提取代码块中的 SVG 内容\n const extractedSvg = match[1].trim();\n \n const base64 = strToBase64(extractedSvg,'data:image/svg+xml;base64,')\n\n return {\n result: base64\n }\n}",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"renderTypeList": ["reference"],
"valueType": "string",
"canEdit": true,
"key": "svg_str",
"label": "svg_str",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": "",
"value": ["bg853CwHAw4a", "answerText"]
}
],
"outputs": [
{
"id": "system_rawResponse",
"key": "system_rawResponse",
"label": "workflow:full_response_data",
"valueType": "object",
"type": "static",
"description": ""
},
{
"id": "error",
"key": "error",
"label": "workflow:execution_error",
"description": "代码运行错误信息,成功时返回空",
"valueType": "object",
"type": "static"
},
{
"id": "system_addOutputParam",
"key": "system_addOutputParam",
"type": "dynamic",
"valueType": "dynamic",
"label": "",
"customFieldConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "将代码中 return 的对象作为输出,传递给后续的节点。变量名需要对应 return 的 key",
"valueDesc": ""
},
{
"id": "qLUQfhG0ILRX",
"type": "dynamic",
"key": "result",
"valueType": "string",
"label": "result",
"valueDesc": "",
"description": ""
}
]
},
{
"nodeId": "cPh2VZnVxjQ8",
"name": "指定回复",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 2911.2230784647795,
"y": -411.6915940628763
},
"version": "481",
"inputs": [
{
"key": "text",
"renderTypeList": ["textarea", "reference"],
"valueType": "any",
"required": true,
"label": "回复的内容",
"description": "common:core.module.input.description.Response content",
"placeholder": "common:core.module.input.description.Response content",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"value": "SVG\n\n{{$bg853CwHAw4a.answerText$}}\n\n卡片\n\n![]({{$sbVUb0efY6Fm.qLUQfhG0ILRX$}})"
}
],
"outputs": []
}
],
"edges": [
{
"source": "bg853CwHAw4a",
"target": "sbVUb0efY6Fm",
"sourceHandle": "bg853CwHAw4a-source-right",
"targetHandle": "sbVUb0efY6Fm-target-left"
},
{
"source": "448745",
"target": "bg853CwHAw4a",
"sourceHandle": "448745-source-right",
"targetHandle": "bg853CwHAw4a-target-left"
},
{
"source": "sbVUb0efY6Fm",
"target": "cPh2VZnVxjQ8",
"sourceHandle": "sbVUb0efY6Fm-source-right",
"targetHandle": "cPh2VZnVxjQ8-target-left"
}
],
"chatConfig": {
"variables": [],
"scheduledTriggerConfig": {
"cronString": "",
"timezone": "Asia/Shanghai",
"defaultPrompt": ""
},
"_id": "66f0f7540a40cd1f97da9dd6"
}
}
}

View File

@@ -0,0 +1 @@
<svg t="1730274418124" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11324" width="200" height="200"><path d="M247.898336 292.06743c-49.519903 16.505968-87.715829-27.923945-116.599772-27.661946-28.883944 0.259999-131.633743 46.589909-131.297744 83.727836 0.333999 36.465929 165.363677 142.011723 280.909451 26.465948l-33.011935-82.531838zM776.103304 292.06743c49.519903 16.505968 87.715829-27.923945 116.599772-27.661946 28.883944 0.261999 131.631743 46.591909 131.295744 83.729836-0.331999 36.465929-165.363677 142.011723-280.909451 26.465948l33.013935-82.533838z" fill="#464655" p-id="11325"></path><path d="M684.877482 770.428495c38.135926-165.673676 107.73379-474.585073 107.73379-522.530979 0-49.519903 0-66.025871-33.011936-99.037807-10.519979-10.519979-31.255939-20.937959-56.439889-30.64794-122.67576-47.297908-259.635493-47.297908-382.311254 0-25.183951 9.709981-45.91791 20.127961-56.439889 30.64794-33.011936 33.011936-33.011936 49.519903-33.011936 99.037807 0 47.945906 69.597864 356.857303 107.73379 522.530979l-28.155945 98.547808c-15.063971 52.721897 24.523952 105.205795 79.355845 105.205794h243.347524c54.831893 0 94.421816-52.481897 79.355845-105.205794l-28.155945-98.547808z" fill="#ffffff" p-id="11326"></path><path d="M597.995652 813.026412h-171.989664c-25.43595 0-46.05791 20.61996-46.05791 46.05791a117.56577 117.56577 0 0 0 16.753967 60.485882l18.339964 30.56794a49.515903 49.515903 0 0 0 42.461917 24.041953h108.987788a49.513903 49.513903 0 0 0 42.461917-24.041953l18.339964-30.56794a117.56577 117.56577 0 0 0 16.753967-60.485882c0.004-25.43795-20.61596-46.05791-46.05191-46.05791z" fill="#EBB4A0" p-id="11327"></path><path d="M445.973949 908.154226a16.447968 16.447968 0 0 1-11.669977-4.83599l-33.011936-33.011936a16.499968 16.499968 0 0 1 0-23.341954 16.499968 16.499968 0 0 1 23.341955 0l33.011935 33.011935a16.499968 16.499968 0 0 1 0 23.339955 16.447968 16.447968 0 0 1-11.671977 4.83799zM578.025691 908.154226a16.447968 16.447968 0 0 1-11.669977-4.83599 16.499968 16.499968 0 0 1 0-23.339955l33.013935-33.011935a16.499968 16.499968 0 0 1 23.341955 0 16.499968 16.499968 0 0 1 0 23.341954l-33.011936 33.011936a16.469968 16.469968 0 0 1-11.673977 4.83399z" fill="#D7A091" p-id="11328"></path><path d="M759.597336 148.857709c-10.37398-10.37398-30.68994-20.64796-55.401891-30.241941-15.26197-18.447964-36.863928-40.649921-60.143883-52.289898C611.039627 49.817903 511.99982 49.817903 511.99982 49.817903s-99.037807 0-132.051742 16.505967c-23.281955 11.641977-44.881912 33.841934-60.143883 52.289898-24.709952 9.593981-45.025912 19.867961-55.401891 30.241941-29.425943 29.425943-32.607936 45.89391-32.957936 84.159836 22.629956 1.051998 50.861901 2.223996 64.307874 2.223996 100.699803 0 185.275638-47.077908 213.973582-67.973868l-15.903968 66.171871c52.267898-0.473999 145.389716-46.715909 164.457678-67.523868l17.105967 65.873871c51.1959-33.415935 51.1959-49.921902 51.1959-49.921902s33.365935 0.04 63.583876 18.303964c-3.291994-18.069965-11.147978-31.891938-30.567941-51.3119z" fill="#FFDEB7" p-id="11329"></path><path d="M232.016367 215.05158c-0.587999 9.309982-0.625999 19.917961-0.625999 32.843936 0 47.945906 69.597864 356.857303 107.73379 522.530979 0 0 90.343824-175.895656 90.343823-208.907592 0-32.979936 16.455968-296.567421-197.451614-346.467323z" fill="#6B676E" p-id="11330"></path><path d="M297.426239 404.71721a41.265919 24.759952 90 1 0 49.519903 0 41.265919 24.759952 90 1 0-49.519903 0Z" fill="#464655" p-id="11331"></path><path d="M791.985273 215.05158c0.587999 9.309982 0.625999 19.917961 0.625999 32.843936 0 47.945906-69.597864 356.857303-107.73379 522.530979 0 0-90.343824-175.895656-90.343823-208.907592 0-32.979936-16.453968-296.567421 197.451614-346.467323z" fill="#6B676E" p-id="11332"></path><path d="M677.055498 404.71721a41.265919 24.759952 90 1 0 49.519903 0 41.265919 24.759952 90 1 0-49.519903 0Z" fill="#464655" p-id="11333"></path></svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<svg t="1730274794897" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12770" width="200" height="200"><path d="M841.5 378.7c-7.7-15-11.6-31.4-21-45.5-18-34.4-43-66.1-72.2-93.2-15.5-9.9-28.4-22.3-43.8-32.2-13.7-9-28.8-16.3-43-24.1-21.9-8.6-43-17.6-65.7-23.2-9-0.9-16.8-5.2-25.8-5.2l-37.4-4.3c-19.3-2.1-39.5-0.4-59.3 0.9-44.2 3.4-83.3 18-122.4 35.2-67.4 33.5-128 91.5-161.1 160.2-24.9 52-38.7 111.2-36.9 167.9 0 7.3 2.1 18 1.3 24.9 3.4 13.3 3 25.8 6.4 38.2 20.6 95.8 82 185.1 172.2 235.4 16.3 12 35.2 17.2 53.3 24.5 63.6 24.1 143.9 28.3 210.9 10.3 95.8-21.9 184.3-91.1 228.5-181.7 0.9-0.9 2.1-0.9 1.3-2.6 43-86.6 50.3-192.3 14.7-285.5z m-409.8-69.1c11.2-9.5 24.9-17.2 41.7-13.3 12 3 22.3 11.6 28.8 22.8 6 11.2 8.2 29.6 0 40.8-7.3 12.5-21.5 22.8-36.1 23.2-16.8-0.9-34.8-8.2-41.2-25.3-9.1-16-3.9-34.5 6.8-48.2z m386.1 335.9c-28.4 65.7-87.2 128.9-152.1 159.8-20.2 10.7-40.8 20.6-63.1 24.1-9.9 0-18.5 2.6-28.4 2.6l-25.8-2.6c-5.6-1.3-10.7-5.2-16.8-3.9-29.2-4.7-56.3-20.6-78.6-41.7-40.8-42.1-57.1-104.4-40.8-158.9 8.2-27.1 24.5-52.8 46-72.2 26.2-18.5 52.8-35.7 78.2-56.7 30.5-21.9 64.4-45.5 79-80.8 12-17.6 14.2-39.1 18-60.1 6.4-62.7-24.5-127.6-81.2-160.2-11.2-7.7-24.5-11.2-36.1-17.6-13.3-2.1-24.9-7.7-37.8-7.7-1.3-0.9 0.4-0.9-0.4-1.3 30.9-5.2 70.9-1.7 103.5 5.2C669 192 752.3 250.4 798.7 328.6l13.3 23.6c46.2 86.7 48.4 206.1 5.8 293.3z m-213.9 14.1c5.6 16.8 1.7 36.5-11.6 49-12.5 9-28.4 16.8-44.2 11.2-12-4.3-24.5-13.3-30.5-24.5-5.6-12-3.9-27.5 1.7-39.1 8.2-15.9 25.8-21.9 40.8-27.5 19.4-0.4 36.5 13.8 43.8 30.9z m44.2 246.2l-0.4 0.4-1.3-1.7c0.4 0.4 0.8 0.8 1.7 1.3z m-51.6 8.5h0.4-0.4z m-4.7 0.5c0 0.4-0.4 0.4-1.3 0.4 0.5-0.9 0.9-0.4 1.3-0.4z m0 0" fill="#000000" p-id="12771"></path></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<svg t="1730273562336" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4241" width="200" height="200"><path d="M960 512c0 97.76-28.704 185.216-85.664 263.264-56.96 78.016-130.496 131.84-220.64 161.856-10.304 1.824-18.368 0.448-22.848-4.032a22.4 22.4 0 0 1-7.2-17.504v-122.88c0-37.632-10.304-65.44-30.464-82.912a409.856 409.856 0 0 0 59.616-10.368 222.752 222.752 0 0 0 54.72-22.816c18.848-10.784 34.528-23.36 47.104-38.592 12.544-15.232 22.848-35.904 30.912-61.44 8.096-25.568 12.128-54.688 12.128-87.904 0-47.072-15.232-86.976-46.208-120.16 14.368-35.456 13.024-74.912-4.48-118.848-10.752-3.616-26.432-1.344-47.072 6.272s-38.56 16.16-53.824 25.568l-21.984 13.888c-36.32-10.304-73.536-15.232-112.096-15.232s-75.776 4.928-112.096 15.232a444.48 444.48 0 0 0-24.672-15.68c-10.336-6.272-26.464-13.888-48.896-22.432-21.952-8.96-39.008-11.232-50.24-8.064-17.024 43.936-18.368 83.424-4.032 118.848-30.496 33.632-46.176 73.536-46.176 120.608 0 33.216 4.032 62.336 12.128 87.456 8.032 25.12 18.368 45.76 30.496 61.44 12.544 15.68 28.224 28.704 47.072 39.04 18.848 10.304 37.216 17.92 54.72 22.816a409.6 409.6 0 0 0 59.648 10.368c-15.712 13.856-25.12 34.048-28.704 60.064a99.744 99.744 0 0 1-26.464 8.512 178.208 178.208 0 0 1-33.184 2.688c-13.024 0-25.568-4.032-38.144-12.544-12.544-8.512-23.296-20.64-32.256-36.32a97.472 97.472 0 0 0-28.256-30.496c-11.232-8.064-21.088-12.576-28.704-13.92l-11.648-1.792c-8.096 0-13.92 0.928-17.056 2.688-3.136 1.792-4.032 4.032-2.688 6.72s3.136 5.408 5.376 8.096 4.928 4.928 7.616 7.168l4.032 2.688c8.544 4.032 17.056 11.232 25.568 21.984 8.544 10.752 14.368 20.64 18.4 29.6l5.824 13.44c4.928 14.816 13.44 26.912 25.568 35.872 12.096 8.992 25.088 14.816 39.008 17.504 13.888 2.688 27.36 4.032 40.352 4.032s23.776-0.448 32.288-2.24l13.472-2.24c0 14.784 0 32.288 0.416 52.032 0 19.744 0.48 30.496 0.48 31.392a22.624 22.624 0 0 1-7.648 17.472c-4.928 4.48-12.992 5.824-23.296 4.032-90.144-30.048-163.68-83.84-220.64-161.888C92.256 697.216 64 609.312 64 512c0-81.152 20.192-156.064 60.096-224.672s94.176-122.88 163.232-163.232C355.936 84.192 430.816 64 512 64s156.064 20.192 224.672 60.096 122.88 94.176 163.232 163.232C939.808 355.488 960 430.848 960 512" fill="#000000" p-id="4242"></path></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -0,0 +1,920 @@
{
"name": "GitHub Issue 总结机器人",
"intro": "定时获取GitHub Issue信息,使用AI进行总结,并推送到飞书群中",
"author": "",
"avatar": "/appMarketTemplates/githubIssue/avatar.svg",
"tags": ["office-services"],
"type": "advanced",
"workflow": {
"nodes": [
{
"nodeId": "userGuide",
"name": "common:core.module.template.system_config",
"intro": "common:core.module.template.system_config_info",
"avatar": "core/workflow/template/systemConfig",
"flowNodeType": "userGuide",
"position": {
"x": 262.2732338817093,
"y": -476.00241136598146
},
"version": "481",
"inputs": [
{
"key": "welcomeText",
"renderTypeList": ["hidden"],
"valueType": "string",
"label": "core.app.Welcome Text",
"value": ""
},
{
"key": "variables",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "core.app.Chat Variable",
"value": []
},
{
"key": "questionGuide",
"valueType": "boolean",
"renderTypeList": ["hidden"],
"label": "core.app.Question Guide",
"value": false
},
{
"key": "tts",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": {
"type": "web"
}
},
{
"key": "whisper",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": {
"open": false,
"autoSend": false,
"autoTTSResponse": false
}
},
{
"key": "scheduleTrigger",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": null
}
],
"outputs": []
},
{
"nodeId": "448745",
"name": "common:core.module.template.work_start",
"intro": "",
"avatar": "core/workflow/template/workflowStart",
"flowNodeType": "workflowStart",
"position": {
"x": 632.368838596004,
"y": -347.7446492944009
},
"version": "481",
"inputs": [
{
"key": "userChatInput",
"renderTypeList": ["reference", "textarea"],
"valueType": "string",
"label": "common:core.module.input.label.user question",
"required": true,
"toolDescription": "用户问题",
"debugLabel": ""
}
],
"outputs": [
{
"id": "userChatInput",
"key": "userChatInput",
"label": "common:core.module.input.label.user question",
"type": "static",
"valueType": "string",
"description": ""
}
]
},
{
"nodeId": "jVGuKrDfFTU6",
"name": "获取 24 小时前的日期",
"intro": "执行一段简单的脚本代码,通常用于进行复杂的数据处理。",
"avatar": "core/workflow/template/codeRun",
"flowNodeType": "code",
"showStatus": true,
"position": {
"x": 1045.4174257570808,
"y": -94.5419824521446
},
"version": "482",
"inputs": [
{
"key": "system_addInputParam",
"renderTypeList": ["addInputParam"],
"valueType": "dynamic",
"label": "",
"required": false,
"description": "workflow:these_variables_will_be_input_parameters_for_code_execution",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "codeType",
"renderTypeList": ["hidden"],
"label": "",
"value": "js",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "code",
"renderTypeList": ["custom"],
"label": "",
"value": "function main() {\n const date = new Date();\n date.setDate(date.getDate() - 3);\n const day = date.getDate();\n const month = date.getMonth() + 1;\n const year = date.getFullYear();\n const hours = date.getHours();\n const minutes = date.getMinutes();\n\n return {\n date: `${year}-${month}-${day}T${hours}:${minutes}:000Z`,\n }\n }",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "system_rawResponse",
"key": "system_rawResponse",
"label": "workflow:full_response_data",
"valueType": "object",
"type": "static",
"description": ""
},
{
"id": "error",
"key": "error",
"label": "workflow:execution_error",
"description": "代码运行错误信息,成功时返回空",
"valueType": "object",
"type": "static"
},
{
"id": "system_addOutputParam",
"key": "system_addOutputParam",
"type": "dynamic",
"valueType": "dynamic",
"label": "",
"customFieldConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "将代码中 return 的对象作为输出,传递给后续的节点。变量名需要对应 return 的 key",
"valueDesc": ""
},
{
"id": "gR0mkQpJ4Og8",
"type": "dynamic",
"key": "date",
"valueType": "string",
"label": "date",
"valueDesc": "",
"description": ""
}
]
},
{
"nodeId": "jyftFRrd4RQf",
"name": "指定回复",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 1758.8251385440858,
"y": 80.55020745654087
},
"version": "481",
"inputs": [
{
"key": "text",
"renderTypeList": ["textarea", "reference"],
"valueType": "any",
"required": true,
"label": "回复的内容",
"description": "common:core.module.input.description.Response content",
"placeholder": "common:core.module.input.description.Response content",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"value": "拉取从 {{$jVGuKrDfFTU6.gR0mkQpJ4Og8$}} 以来所有的 open issue \\n"
}
],
"outputs": []
},
{
"nodeId": "mCaalLpFoZFk",
"name": "获取 Issues",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": 2602.5615507147536,
"y": -67.18952984768578
},
"version": "481",
"inputs": [
{
"key": "system_addInputParam",
"renderTypeList": ["addInputParam"],
"valueType": "dynamic",
"label": "",
"required": false,
"description": "common:core.module.input.description.HTTP Dynamic Input",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": ["custom"],
"valueType": "string",
"label": "",
"value": "GET",
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpTimeout",
"renderTypeList": ["custom"],
"valueType": "number",
"label": "",
"value": 30,
"min": 5,
"max": 600,
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpReqUrl",
"renderTypeList": ["hidden"],
"valueType": "string",
"label": "",
"description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory",
"required": false,
"value": "https://api.github.com/repos/labring/FastGPT/issues",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpHeader",
"renderTypeList": ["custom"],
"valueType": "any",
"value": [],
"label": "",
"description": "common:core.module.input.description.Http Request Header",
"placeholder": "common:core.module.input.description.Http Request Header",
"required": false,
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpParams",
"renderTypeList": ["hidden"],
"valueType": "any",
"value": [
{
"key": "state",
"type": "string",
"value": "open"
},
{
"key": "since",
"type": "string",
"value": "{{$jVGuKrDfFTU6.gR0mkQpJ4Og8$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpJsonBody",
"renderTypeList": ["hidden"],
"valueType": "any",
"value": "",
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpFormBody",
"renderTypeList": ["hidden"],
"valueType": "any",
"value": [],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": ["hidden"],
"valueType": "string",
"value": "json",
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "error",
"key": "error",
"label": "workflow:request_error",
"description": "HTTP请求错误信息成功时返回空",
"valueType": "object",
"type": "static"
},
{
"id": "httpRawResponse",
"key": "httpRawResponse",
"required": true,
"label": "workflow:raw_response",
"description": "HTTP请求的原始响应。只能接受字符串或JSON类型响应数据。",
"valueType": "any",
"type": "static"
},
{
"id": "system_addOutputParam",
"key": "system_addOutputParam",
"type": "dynamic",
"valueType": "dynamic",
"label": "",
"customFieldConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": false
},
"valueDesc": "",
"description": ""
}
]
},
{
"nodeId": "gALvyJcXPoep",
"name": "处理 API 响应数据",
"intro": "执行一段简单的脚本代码,通常用于进行复杂的数据处理。",
"avatar": "core/workflow/template/codeRun",
"flowNodeType": "code",
"showStatus": true,
"position": {
"x": 3396.722564475613,
"y": -80.79235153344955
},
"version": "482",
"inputs": [
{
"key": "system_addInputParam",
"renderTypeList": ["addInputParam"],
"valueType": "dynamic",
"label": "",
"required": false,
"description": "workflow:these_variables_will_be_input_parameters_for_code_execution",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "codeType",
"renderTypeList": ["hidden"],
"label": "",
"value": "js",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "code",
"renderTypeList": ["custom"],
"label": "",
"value": "function main({res}) {\n const issues = JSON.parse(res);\n const ret = [];\n for(const issue of issues) {\n if (issue.pull_request) continue;\n ret.push({\n title: issue.title,\n body: issue.body,\n url: issue.html_url\n })\n }\n\n return {\n ret: JSON.stringify(ret)\n }\n}",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"renderTypeList": ["reference"],
"valueType": "string",
"canEdit": true,
"key": "res",
"label": "res",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": "",
"value": ["mCaalLpFoZFk", "httpRawResponse"]
}
],
"outputs": [
{
"id": "system_rawResponse",
"key": "system_rawResponse",
"label": "workflow:full_response_data",
"valueType": "object",
"type": "static",
"description": ""
},
{
"id": "error",
"key": "error",
"label": "workflow:execution_error",
"description": "代码运行错误信息,成功时返回空",
"valueType": "object",
"type": "static"
},
{
"id": "system_addOutputParam",
"key": "system_addOutputParam",
"type": "dynamic",
"valueType": "dynamic",
"label": "",
"customFieldConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "将代码中 return 的对象作为输出,传递给后续的节点。变量名需要对应 return 的 key",
"valueDesc": ""
},
{
"id": "qLUQfhG0ILRX",
"type": "dynamic",
"key": "ret",
"valueType": "string",
"label": "ret",
"valueDesc": "",
"description": ""
}
]
},
{
"nodeId": "aLrp6IjV8zAf",
"name": "AI 对话",
"intro": "AI 大模型对话",
"avatar": "core/workflow/template/aiChat",
"flowNodeType": "chatNode",
"showStatus": true,
"position": {
"x": 3907.7186093895143,
"y": -148.24856757598377
},
"version": "481",
"inputs": [
{
"key": "model",
"renderTypeList": ["settingLLMModel", "reference"],
"label": "AI 模型",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": "",
"value": "qwen-plus"
},
{
"key": "temperature",
"renderTypeList": ["hidden"],
"label": "",
"value": 0,
"valueType": "number",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "maxToken",
"renderTypeList": ["hidden"],
"label": "",
"value": 8000,
"valueType": "number",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "isResponseAnswerText",
"renderTypeList": ["hidden"],
"label": "",
"value": true,
"valueType": "boolean",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "aiChatQuoteRole",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"value": "system",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quoteTemplate",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quotePrompt",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "aiChatVision",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "boolean",
"value": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "systemPrompt",
"renderTypeList": ["textarea", "reference"],
"max": 3000,
"valueType": "string",
"label": "提示词",
"description": "core.app.tip.systemPromptTip",
"placeholder": "core.app.tip.chatNodeSystemPromptTip",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"value": "你是一个简洁高效的 GitHub Issue 概述助手,专长于提炼核心问题并以清晰简洁的方式呈现。\n\n## 任务\n分析输入的多条 issue 信息,为每个 issue 创建一个简明扼要的概述。使用中文输出。\n\n## 输入格式\nJSON 数组,每项包含 title(标题)、body(内容)和 url(链接)。\n\n## 输出格式\n对每个 issue 使用 Markdown 语法创建简洁的概述块。每个概述应包含:\n\n1. 使用加粗呈现 issue 的原标题\n2. 一段简短的问题概述(不超过 2-3 句话)\n3. 原 issue 的链接(使用 Markdown 链接语法)\n\n在概述中适当使用 emoji 来增加可读性,但不要过度使用。保持整体风格简洁明了。\n\n示例输出\n\n---\n\n**🔍 数据可视化组件性能优化**\n\n这个 issue 反映了在处理大量数据时图表加载缓慢的问题。用户在数据点超过一定数量时experiencing明显的性能下降影响了用户体验。\n\n📎 [查看原 issue](url1)\n\n---\n\n**🐞 移动端界面适配问题**\n\n该 issue 指出在某些特定型号的移动设备上出现了界面布局错乱的情况。这个问题影响了应用在不同尺寸屏幕上的一致性展现。\n\n📎 [查看原 issue](url2)\n\n---\n\n请确保每个 issue 概述都简洁明了,突出核心问题,避免过多细节。保持整体风格统一,让读者能快速理解每个 issue 的要点。"
},
{
"key": "history",
"renderTypeList": ["numberInput", "reference"],
"valueType": "chatHistory",
"label": "聊天记录",
"description": "workflow:max_dialog_rounds",
"required": true,
"min": 0,
"max": 50,
"value": 0,
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quoteQA",
"renderTypeList": ["settingDatasetQuotePrompt"],
"label": "",
"debugLabel": "知识库引用",
"description": "",
"valueType": "datasetQuote",
"valueDesc": "",
"toolDescription": ""
},
{
"key": "stringQuoteText",
"renderTypeList": ["reference", "textarea"],
"label": "文档引用",
"debugLabel": "文档引用",
"description": "app:document_quote_tip",
"valueType": "string",
"valueDesc": "",
"toolDescription": ""
},
{
"key": "userChatInput",
"renderTypeList": ["reference", "textarea"],
"valueType": "string",
"label": "用户问题",
"toolDescription": "用户问题",
"required": true,
"value": ["gALvyJcXPoep", "qLUQfhG0ILRX"],
"valueDesc": "",
"description": "",
"debugLabel": ""
}
],
"outputs": [
{
"id": "history",
"key": "history",
"required": true,
"label": "common:core.module.output.label.New context",
"description": "将本次回复内容拼接上历史记录,作为新的上下文返回",
"valueType": "chatHistory",
"valueDesc": "{\n obj: System | Human | AI;\n value: string;\n}[]",
"type": "static"
},
{
"id": "answerText",
"key": "answerText",
"required": true,
"label": "common:core.module.output.label.Ai response content",
"description": "将在 stream 回复完毕后触发",
"valueType": "string",
"type": "static"
}
]
},
{
"nodeId": "jmSiT6OXA3Fe",
"name": "飞书机器人 webhook",
"intro": "向飞书机器人发起 webhook 请求。",
"avatar": "/appMarketTemplates/plugin-feishu/avatar.svg",
"flowNodeType": "pluginModule",
"showStatus": false,
"position": {
"x": 4682.428295424065,
"y": 120.04658236877646
},
"version": "488",
"inputs": [
{
"key": "system_forbid_stream",
"renderTypeList": ["switch"],
"valueType": "boolean",
"label": "禁用流输出",
"description": "强制设置嵌套运行的应用,均以非流模式运行",
"value": true,
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"renderTypeList": ["reference"],
"selectedTypeIndex": 0,
"valueType": "string",
"canEdit": false,
"key": "content",
"label": "content",
"description": "需要发送的消息",
"required": true,
"toolDescription": "需要发送的消息",
"value": ["aLrp6IjV8zAf", "answerText"],
"valueDesc": "",
"debugLabel": ""
},
{
"renderTypeList": ["input"],
"selectedTypeIndex": 0,
"valueType": "string",
"canEdit": false,
"key": "hook_url",
"label": "hook_url",
"description": "飞书机器人地址",
"required": true,
"defaultValue": "",
"value": "https://www.feishu.cn/flow/api/trigger-webhook/5a1657d6f024c639e1e9af4d9d611292",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "result",
"type": "static",
"key": "result",
"valueType": "object",
"label": "result",
"description": "",
"valueDesc": ""
}
],
"pluginId": "community-feishu"
}
],
"edges": [
{
"source": "448745",
"target": "jVGuKrDfFTU6",
"sourceHandle": "448745-source-right",
"targetHandle": "jVGuKrDfFTU6-target-left"
},
{
"source": "jVGuKrDfFTU6",
"target": "jyftFRrd4RQf",
"sourceHandle": "jVGuKrDfFTU6-source-right",
"targetHandle": "jyftFRrd4RQf-target-left"
},
{
"source": "jyftFRrd4RQf",
"target": "mCaalLpFoZFk",
"sourceHandle": "jyftFRrd4RQf-source-right",
"targetHandle": "mCaalLpFoZFk-target-left"
},
{
"source": "mCaalLpFoZFk",
"target": "gALvyJcXPoep",
"sourceHandle": "mCaalLpFoZFk-source-right",
"targetHandle": "gALvyJcXPoep-target-left"
},
{
"source": "gALvyJcXPoep",
"target": "aLrp6IjV8zAf",
"sourceHandle": "gALvyJcXPoep-source-right",
"targetHandle": "aLrp6IjV8zAf-target-left"
},
{
"source": "aLrp6IjV8zAf",
"target": "jmSiT6OXA3Fe",
"sourceHandle": "aLrp6IjV8zAf-source-right",
"targetHandle": "jmSiT6OXA3Fe-target-left"
}
],
"chatConfig": {
"variables": [],
"scheduledTriggerConfig": {
"cronString": "",
"timezone": "Asia/Shanghai",
"defaultPrompt": ""
},
"_id": "67152011bb78889107c3a4ec"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<svg t="1730279749380" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23191" width="200" height="200"><path d="M192.682417 617.135502c10.498098 8.652054 23.62507 13.31833 37.040614 13.31833 2.300392 0 4.601808-0.1361 6.901177-0.407276 15.794731-1.89721 30.119995-10.181897 39.748283-22.918989L396.811538 447.300442l119.918183 101.526301c12.158924 10.277064 27.935236 15.387455 43.767829 13.491269 15.813151-1.664919 30.273491-9.69685 40.055275-22.317285l275.42491-354.942965c2.010797-2.593058 3.596921-5.380544 5.124717-8.16803l48.350195-57.257052c25.903973-30.679743 14.769378-50.598398-24.746614-44.248783l-227.867778 36.583197c-39.534412 6.349615-47.749514 33.8172-18.268062 61.070914l45.565778 42.100864L545.629935 419.407162l-120.55468-102.08605c-12.275581-10.336416-28.14706-15.21554-44.192501-13.452383-15.930831 1.780553-30.448476 10.083659-40.134069 22.955828l-120.960932 160.526043-58.093093-47.792493c-25.01472-20.595061-61.901839-16.917298-82.35466 8.284687-20.452821 25.163099-16.780175 62.250786 8.255011 82.807984L192.682417 617.135502z" fill="#F45944" p-id="23192"></path><path d="M878.626052 349.259522 610.025571 676.327626c-12.063757 15.291265-42.744523-6.658653-57.551764-19.240203l-107.951641-94.964862c-14.808264-12.580526-37.000706 8.710382-49.315172 23.809265l-125.447107 153.884786c-12.294001 15.098883-34.411741-2.206248-49.103348-14.924921l-109.457948-87.046518c-19.641339-18.891256-38.375006 0.813528-38.375006 38.48143l0.676405 233.131665c0.037862 19.550265 15.928784 35.538401 35.280528 35.557844l810.558793 0.639566c19.371186 0.01842 35.20378-15.969717 35.20378-35.519981 0 0 0.811482-503.446183 0.811482-541.656437C955.37504 317.243341 914.912489 307.410392 878.626052 349.259522z" fill="#F45944" p-id="23193"></path></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,501 @@
{
"name": "利好大A",
"intro": "",
"author": "",
"avatar": "/appMarketTemplates/stock/avatar.svg",
"tags": ["roleplay"],
"type": "advanced",
"workflow": {
"nodes": [
{
"nodeId": "userGuide",
"name": "common:core.module.template.system_config",
"intro": "common:core.module.template.system_config_info",
"avatar": "core/workflow/template/systemConfig",
"flowNodeType": "userGuide",
"position": {
"x": 262.2732338817093,
"y": -476.00241136598146
},
"version": "481",
"inputs": [
{
"key": "welcomeText",
"renderTypeList": ["hidden"],
"valueType": "string",
"label": "core.app.Welcome Text",
"value": ""
},
{
"key": "variables",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "core.app.Chat Variable",
"value": []
},
{
"key": "questionGuide",
"valueType": "boolean",
"renderTypeList": ["hidden"],
"label": "core.app.Question Guide",
"value": false
},
{
"key": "tts",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": {
"type": "web"
}
},
{
"key": "whisper",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": {
"open": false,
"autoSend": false,
"autoTTSResponse": false
}
},
{
"key": "scheduleTrigger",
"renderTypeList": ["hidden"],
"valueType": "any",
"label": "",
"value": null
}
],
"outputs": []
},
{
"nodeId": "448745",
"name": "common:core.module.template.work_start",
"intro": "",
"avatar": "core/workflow/template/workflowStart",
"flowNodeType": "workflowStart",
"position": {
"x": 632.368838596004,
"y": -347.7446492944009
},
"version": "481",
"inputs": [
{
"key": "userChatInput",
"renderTypeList": ["reference", "textarea"],
"valueType": "string",
"label": "common:core.module.input.label.user question",
"required": true,
"toolDescription": "用户问题",
"debugLabel": ""
}
],
"outputs": [
{
"id": "userChatInput",
"key": "userChatInput",
"label": "common:core.module.input.label.user question",
"type": "static",
"valueType": "string",
"description": ""
}
]
},
{
"nodeId": "bg853CwHAw4a",
"name": "AI 对话",
"intro": "AI 大模型对话",
"avatar": "core/workflow/template/aiChat",
"flowNodeType": "chatNode",
"showStatus": true,
"position": {
"x": 1318.728987052518,
"y": -612.0024113659815
},
"version": "481",
"inputs": [
{
"key": "model",
"renderTypeList": ["settingLLMModel", "reference"],
"label": "AI 模型",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": "",
"value": "claude-3-5-sonnet-20240620"
},
{
"key": "temperature",
"renderTypeList": ["hidden"],
"label": "",
"value": 0,
"valueType": "number",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "maxToken",
"renderTypeList": ["hidden"],
"label": "",
"value": 4000,
"valueType": "number",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "isResponseAnswerText",
"renderTypeList": ["hidden"],
"label": "",
"value": false,
"valueType": "boolean",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "aiChatQuoteRole",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"value": "system",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quoteTemplate",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quotePrompt",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "string",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "aiChatVision",
"renderTypeList": ["hidden"],
"label": "",
"valueType": "boolean",
"value": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "systemPrompt",
"renderTypeList": ["textarea", "reference"],
"max": 3000,
"valueType": "string",
"label": "提示词",
"description": "core.app.tip.systemPromptTip",
"placeholder": "core.app.tip.chatNodeSystemPromptTip",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"value": "{提示词 START\n;; 作者: 李继刚\n;; 版本: 0.1\n;; 模型: Claude Sonnet\n;; 用途: 这事呀, 利好我大A!\n\n;; 设定如下内容为你的 *System Prompt*\n(require 'dash)\n\n(defun 韮菜 ()\n \"典型股民形象\"\n (list (经历 . '(亏损累累 频繁交易 追涨杀跌))\n (性格 . '(冲动 乐观 侥幸))\n (技能 . '(看K线 炒概念 追热点))\n (信念 . '(暴富梦想 政策利好 抄底反弹))\n (表达 . '(股评口号 情绪化 群体性))))\n\n(defun 利好大A (用户输入)\n \"任何消息都必将利好我大A股\"\n (let* ((解读 (-> 用户输入\n 提取关键词\n 生成关联概念\n 分析影响\n ;; 强行联系股市,无论多牵强\n 强行关联A 股\n ;; 乐观解读一切影响\n 乐观解读))\n (响应 (随机结论)))\n (SVG-Card 用户输入 解读 响应))\n\n (defun 随机结论 ()\n (随机选择\n '(\"这事呀,利好大A!\"\n \"A股有戏啊!\"\n \"这还不得跑步进场啊!\"\n \"还傻站在这干嘛? 快打开手机加仓啊!\"\n \"看来A股要起飞了!\"\n \"大A要发财了!\")))\n\n\n (defun SVG-Card (用户输入 响应)\n \"创建富洞察力且具有审美的 SVG 概念可视化\"\n (let ((配置 '(:画布 (480 . 760)\n :色彩 (:背景 \"#000000\"\n :主要文字 \"#ffffff\"\n :次要文字 \"#00cc00\"\n :图形 \"#00ff00\")\n :排版 \"杂志风格\"\n :字体 (使用本机字体 (font-family \"KingHwa_OldSong\")))))\n (-> 用户输入\n 关键画面\n 立体主义\n (极简图形 配置)\n (布局 `(,(标题 \"利好大A\") 分隔线 用户输入 图形\n (逻辑链推导 解读) 响应))))\n\n\n (defun start ()\n \"启动时运行, 你是韮菜~\"\n (let (system-role (韮菜))\n (print \"又有啥好消息了? 现在加仓还来得及吗?\")))\n\n;;; Attention: 运行规则!\n;; 1. 初次启动时必须只运行 (start) 函数\n;; 2. 接收用户输入之后, 调用主函数 (利好大A 用户输入)\n;; 3. 严格按照(SVG-Card) 进行排版输出\n;; 4. 输出SVG 后, 不再输出任何额外文字解释\n提示词 END}\n\n直接生成 svg 完整代码,我会复制,需要你用代码块)\n除此之外不要有多余的解释不要在开头加上任何说明\n解释的内容自动加入换行标签例如\n<tspan x=\"50%\" dy=\"25\" font-size=\"18\" fill=\"#8B4513\">文字1</tspan>\n <tspan x=\"50%\" dy=\"25\" font-size=\"18\" fill=\"#8B4513\">文字12</tspan>"
},
{
"key": "history",
"renderTypeList": ["numberInput", "reference"],
"valueType": "chatHistory",
"label": "聊天记录",
"description": "workflow:max_dialog_rounds",
"required": true,
"min": 0,
"max": 50,
"value": 0,
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "quoteQA",
"renderTypeList": ["settingDatasetQuotePrompt"],
"label": "",
"debugLabel": "知识库引用",
"description": "",
"valueType": "datasetQuote",
"valueDesc": "",
"toolDescription": ""
},
{
"key": "stringQuoteText",
"renderTypeList": ["reference", "textarea"],
"label": "文档引用",
"debugLabel": "文档引用",
"description": "app:document_quote_tip",
"valueType": "string",
"valueDesc": "",
"toolDescription": ""
},
{
"key": "userChatInput",
"renderTypeList": ["reference", "textarea"],
"valueType": "string",
"label": "用户问题",
"required": true,
"toolDescription": "用户问题",
"valueDesc": "",
"description": "",
"debugLabel": "",
"value": ["448745", "userChatInput"]
}
],
"outputs": [
{
"id": "history",
"key": "history",
"required": true,
"label": "common:core.module.output.label.New context",
"description": "将本次回复内容拼接上历史记录,作为新的上下文返回",
"valueType": "chatHistory",
"valueDesc": "{\n obj: System | Human | AI;\n value: string;\n}[]",
"type": "static"
},
{
"id": "answerText",
"key": "answerText",
"required": true,
"label": "common:core.module.output.label.Ai response content",
"description": "将在 stream 回复完毕后触发",
"valueType": "string",
"type": "static"
}
]
},
{
"nodeId": "sbVUb0efY6Fm",
"name": "代码运行",
"intro": "执行一段简单的脚本代码,通常用于进行复杂的数据处理。",
"avatar": "core/workflow/template/codeRun",
"flowNodeType": "code",
"showStatus": true,
"position": {
"x": 2210.2574140398733,
"y": -621.0024113659815
},
"version": "482",
"inputs": [
{
"key": "system_addInputParam",
"renderTypeList": ["addInputParam"],
"valueType": "dynamic",
"label": "",
"required": false,
"description": "workflow:these_variables_will_be_input_parameters_for_code_execution",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "codeType",
"renderTypeList": ["hidden"],
"label": "",
"value": "js",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "code",
"renderTypeList": ["custom"],
"label": "",
"value": "function main({svg_str}){\n\n // 使用正则表达式匹配代码块中的内容\n const match = svg_str.match(/```[\\w]*\\n([\\s\\S]*?)```/);\n\n if (!match) {\n // 如果没有匹配到代码块,返回一个错误信息或空结果\n return {\n result: null,\n error: \"未找到有效的代码块标记。\"\n };\n }\n\n // 提取代码块中的 SVG 内容\n const extractedSvg = match[1].trim();\n \n const base64 = strToBase64(extractedSvg,'data:image/svg+xml;base64,')\n\n return {\n result: base64\n }\n}",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"renderTypeList": ["reference"],
"valueType": "string",
"canEdit": true,
"key": "svg_str",
"label": "svg_str",
"customInputConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"arrayAny",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": true
},
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": "",
"value": ["bg853CwHAw4a", "answerText"]
}
],
"outputs": [
{
"id": "system_rawResponse",
"key": "system_rawResponse",
"label": "workflow:full_response_data",
"valueType": "object",
"type": "static",
"description": ""
},
{
"id": "error",
"key": "error",
"label": "workflow:execution_error",
"description": "代码运行错误信息,成功时返回空",
"valueType": "object",
"type": "static"
},
{
"id": "system_addOutputParam",
"key": "system_addOutputParam",
"type": "dynamic",
"valueType": "dynamic",
"label": "",
"customFieldConfig": {
"selectValueTypeList": [
"string",
"number",
"boolean",
"object",
"arrayString",
"arrayNumber",
"arrayBoolean",
"arrayObject",
"any",
"chatHistory",
"datasetQuote",
"dynamic",
"selectApp",
"selectDataset"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "将代码中 return 的对象作为输出,传递给后续的节点。变量名需要对应 return 的 key",
"valueDesc": ""
},
{
"id": "qLUQfhG0ILRX",
"type": "dynamic",
"key": "result",
"valueType": "string",
"label": "result",
"valueDesc": "",
"description": ""
}
]
},
{
"nodeId": "cPh2VZnVxjQ8",
"name": "指定回复",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 2911.2230784647795,
"y": -411.6915940628763
},
"version": "481",
"inputs": [
{
"key": "text",
"renderTypeList": ["textarea", "reference"],
"valueType": "any",
"required": true,
"label": "回复的内容",
"description": "common:core.module.input.description.Response content",
"placeholder": "common:core.module.input.description.Response content",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"value": "SVG\n\n{{$bg853CwHAw4a.answerText$}}\n\n卡片\n\n![]({{$sbVUb0efY6Fm.qLUQfhG0ILRX$}})"
}
],
"outputs": []
}
],
"edges": [
{
"source": "bg853CwHAw4a",
"target": "sbVUb0efY6Fm",
"sourceHandle": "bg853CwHAw4a-source-right",
"targetHandle": "sbVUb0efY6Fm-target-left"
},
{
"source": "448745",
"target": "bg853CwHAw4a",
"sourceHandle": "448745-source-right",
"targetHandle": "bg853CwHAw4a-target-left"
},
{
"source": "sbVUb0efY6Fm",
"target": "cPh2VZnVxjQ8",
"sourceHandle": "sbVUb0efY6Fm-source-right",
"targetHandle": "cPh2VZnVxjQ8-target-left"
}
],
"chatConfig": {
"variables": [],
"scheduledTriggerConfig": {
"cronString": "",
"timezone": "Asia/Shanghai",
"defaultPrompt": ""
},
"_id": "66f0f7540a40cd1f97da9dd6"
}
}
}