Commit 0b37ae6f by ccran

feat: add tesseract ocr;

parent 5e91ed5f
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
!**/*.pdf !**/*.pdf
!**/*.xls !**/*.xls
!workflow/** !workflow/**
!demo/**
!README.md !README.md
......
...@@ -46,7 +46,7 @@ FILE_SUFFIX = "-审核批注" ...@@ -46,7 +46,7 @@ FILE_SUFFIX = "-审核批注"
## 关键参数** ## 关键参数**
use_non_fastgpt_llm = False use_non_fastgpt_llm = False
use_lufa = True use_lufa = False
use_jp_machine = True use_jp_machine = True
## 关键参数** ## 关键参数**
......
for _ in range(input()): from PIL import Image
try: import pytesseract
eval(raw_input())
print("YES") img = Image.open("ocr.png")
except TypeError:
print("NO") text = pytesseract.image_to_string(img,lang="chi_sim+eng")
except:
print("NO") print(text)
\ No newline at end of file
...@@ -42,6 +42,7 @@ openpyxl==3.1.5 ...@@ -42,6 +42,7 @@ openpyxl==3.1.5
packaging==26.0 packaging==26.0
pandas==3.0.0 pandas==3.0.0
pathlib==1.0.1 pathlib==1.0.1
Pillow==12.0.0
plum-dispatch==1.7.4 plum-dispatch==1.7.4
propcache==0.4.1 propcache==0.4.1
prov==2.1.1 prov==2.1.1
...@@ -52,6 +53,7 @@ pydantic_core==2.41.5 ...@@ -52,6 +53,7 @@ pydantic_core==2.41.5
pydot==4.0.1 pydot==4.0.1
PyMuPDF==1.26.7 PyMuPDF==1.26.7
pyparsing==3.3.2 pyparsing==3.3.2
pytesseract==0.3.13
python-dateutil==2.9.0.post0 python-dateutil==2.9.0.post0
pyxnat==1.6.4 pyxnat==1.6.4
RapidFuzz==3.14.3 RapidFuzz==3.14.3
......
...@@ -6,7 +6,7 @@ from spire.pdf import PdfDocument, PdfTextExtractOptions, PdfTextExtractor, Lice ...@@ -6,7 +6,7 @@ from spire.pdf import PdfDocument, PdfTextExtractOptions, PdfTextExtractor, Lice
PdfPopupIcon PdfPopupIcon
from loguru import logger from loguru import logger
from rapidfuzz import process from rapidfuzz import process
from utils.ocr_util import OCRUtil from utils.tesseract_ocr_util import TesseractOCRUtil
import copy import copy
from utils.common_util import adjust_single_chunk_size from utils.common_util import adjust_single_chunk_size
import re import re
...@@ -174,7 +174,7 @@ class SpirePdfDoc(DocBase): ...@@ -174,7 +174,7 @@ class SpirePdfDoc(DocBase):
def __init__(self, **kwargs): def __init__(self, **kwargs):
super(SpirePdfDoc, self).__init__(**kwargs) super(SpirePdfDoc, self).__init__(**kwargs)
self.ocr_util = OCRUtil() self.ocr_util = TesseractOCRUtil()
def load(self,doc_path): def load(self,doc_path):
self._doc_path = doc_path self._doc_path = doc_path
......
import asyncio
import os
import re
from urllib import parse
from urllib.parse import urlparse
import fitz
from loguru import logger
from utils.common_util import random_str
from utils.http_util import download_file, url_replace_fastgpt
class TesseractOCRUtil:
def __init__(self, lang='chi_sim+eng'):
self.lang = lang
def ocr_image(self, file_path):
import pytesseract
from PIL import Image
with Image.open(file_path) as img:
return pytesseract.image_to_string(img, lang=self.lang)
async def ocr_image_async(self, path_list):
tasks = [asyncio.to_thread(self.ocr_image, file_path) for file_path in path_list]
responses = await asyncio.gather(*tasks)
res_dict = {}
for file_path, content in zip(path_list, responses):
page_num = int(self.get_pdf_2_img_page_num(file_path))
res_dict[page_num] = content
logger.info(f'tesseract ocr_image_async finish. all pages:{len(res_dict)}')
return [res_dict[key] for key in sorted(res_dict)]
def set_pdf_2_img_page(self, path, page_idx):
return f'{path}_{page_idx + 1}.png'
def get_pdf_2_img_page_num(self, path):
match = re.search(r'_(\d+)\.png$', path)
if not match:
raise ValueError(f'Invalid pdf page image path: {path}')
return match.group(1)
def pdf_2_img(self, path, zoom_x=2, zoom_y=2):
pdf = fitz.open(path)
pdf_list = []
for pg in range(0, pdf.page_count):
page = pdf[pg]
trans = fitz.Matrix(zoom_x, zoom_y)
pm = page.get_pixmap(matrix=trans, alpha=False)
dest_png = self.set_pdf_2_img_page(path, pg)
pm.save(dest_png)
pdf_list.append(dest_png)
pdf.close()
return pdf_list
def ocr_download_path(self, url):
logger.info(f'tesseract ocr url:{url}')
url = url_replace_fastgpt(url)
url_parsed = urlparse(url)
query_dict = parse.parse_qs(url_parsed.query)
if 'filename' in query_dict:
filename = query_dict.get('filename')[0]
else:
filename = f'{random_str()}.pdf'
dest_path = f'ocr/{filename}'
download_file(url, dest_path)
return dest_path
async def ocr_result_pdf(self, dest_path):
pdf_list = self.pdf_2_img(dest_path)
try:
return await self.ocr_image_async(pdf_list)
finally:
for pdf in pdf_list:
if os.path.exists(pdf):
os.remove(pdf)
if __name__ == '__main__':
ocr_util = TesseractOCRUtil()
result = asyncio.run(ocr_util.ocr_result_pdf('../demo/2020100593中建大成建筑(B类).pdf'))
print(f'len(result):{len(result)}')
print(result)
{ {
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"avatar": "core/workflow/template/systemConfig", "avatar": "core/workflow/template/systemConfig",
"flowNodeType": "userGuide", "flowNodeType": "userGuide",
"position": { "position": {
"x": -1830.6752840119775, "x": -3052.9050978053997,
"y": -773.8134339439673 "y": -775.6849266713408
}, },
"version": "481", "version": "481",
"inputs": [ "inputs": [
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
"avatar": "core/workflow/template/workflowStart", "avatar": "core/workflow/template/workflowStart",
"flowNodeType": "workflowStart", "flowNodeType": "workflowStart",
"position": { "position": {
"x": -1341.9918261676994, "x": -2406.2705093256454,
"y": -720.3035540606256 "y": -675.1304350810863
}, },
"version": "481", "version": "481",
"inputs": [ "inputs": [
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/conversations/new", "value": "http://172.21.107.80:18169/conversations/new",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/documents/parse", "value": "http://172.21.107.80:18169/documents/parse",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1010,7 +1010,7 @@ ...@@ -1010,7 +1010,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/memory/facts/export", "value": "http://172.21.107.80:18169/memory/facts/export",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1255,7 +1255,7 @@ ...@@ -1255,7 +1255,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/summary/facts", "value": "http://172.21.107.80:18169/segments/summary/facts",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1538,7 +1538,7 @@ ...@@ -1538,7 +1538,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/rule-router", "value": "http://172.21.107.80:18169/segments/review/rule-router",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1852,7 +1852,7 @@ ...@@ -1852,7 +1852,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/summary/facts/merger", "value": "http://172.21.107.80:18169/segments/summary/facts/merger",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2053,8 +2053,8 @@ ...@@ -2053,8 +2053,8 @@
"flowNodeType": "httpRequest468", "flowNodeType": "httpRequest468",
"showStatus": true, "showStatus": true,
"position": { "position": {
"x": -804.8826015635359, "x": -878.9665166899803,
"y": -701.6010115448964 "y": -775.6849266713408
}, },
"version": "481", "version": "481",
"inputs": [ "inputs": [
...@@ -2127,7 +2127,7 @@ ...@@ -2127,7 +2127,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/rulesets/route", "value": "http://172.21.107.80:18169/rulesets/route",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2163,7 +2163,7 @@ ...@@ -2163,7 +2163,7 @@
"hidden" "hidden"
], ],
"valueType": "any", "valueType": "any",
"value": "{\n\"question\":\"{{$448745.userChatInput$}}\"\n}", "value": "{\n\"question\":\"{{$anKdljJd5pCGBRhB.system_text$}}\"\n}",
"label": "", "label": "",
"required": false, "required": false,
"debugLabel": "", "debugLabel": "",
...@@ -2359,6 +2359,45 @@ ...@@ -2359,6 +2359,45 @@
} }
], ],
"outputs": [] "outputs": []
},
{
"nodeId": "anKdljJd5pCGBRhB",
"name": "增加合同提取前缀",
"intro": "可对固定或传入的文本进行加工后输出,非字符串类型数据最终会转成字符串类型。",
"avatar": "core/workflow/template/textConcat",
"flowNodeType": "textEditor",
"position": {
"x": -1848.542944082165,
"y": -652.5650477390293
},
"version": "4813",
"inputs": [
{
"key": "system_textareaInput",
"renderTypeList": [
"textarea"
],
"valueType": "string",
"required": true,
"label": "拼接文本",
"placeholder": "workflow:input_variable_list",
"value": "帮我做合同信息提取;\n{{$448745.userChatInput$}}",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "system_text",
"key": "system_text",
"label": "workflow:concatenation_result",
"type": "static",
"valueType": "string",
"description": ""
}
]
} }
], ],
"edges": [ "edges": [
...@@ -2447,12 +2486,6 @@ ...@@ -2447,12 +2486,6 @@
"targetHandle": "v7v3dWPFEySgk5Wk-target-left" "targetHandle": "v7v3dWPFEySgk5Wk-target-left"
}, },
{ {
"source": "448745",
"target": "yR4fA3XTHyjYMN3j",
"sourceHandle": "448745-source-right",
"targetHandle": "yR4fA3XTHyjYMN3j-target-left"
},
{
"source": "yR4fA3XTHyjYMN3j", "source": "yR4fA3XTHyjYMN3j",
"target": "rNHAaQ4A2NNI0PCE", "target": "rNHAaQ4A2NNI0PCE",
"sourceHandle": "yR4fA3XTHyjYMN3j-source-right", "sourceHandle": "yR4fA3XTHyjYMN3j-source-right",
...@@ -2469,6 +2502,18 @@ ...@@ -2469,6 +2502,18 @@
"target": "o7b0axI8mmI9pA2A", "target": "o7b0axI8mmI9pA2A",
"sourceHandle": "te1XPVi9S4GFi6Jx-source-right", "sourceHandle": "te1XPVi9S4GFi6Jx-source-right",
"targetHandle": "o7b0axI8mmI9pA2A-target-left" "targetHandle": "o7b0axI8mmI9pA2A-target-left"
},
{
"source": "448745",
"target": "anKdljJd5pCGBRhB",
"sourceHandle": "448745-source-right",
"targetHandle": "anKdljJd5pCGBRhB-target-left"
},
{
"source": "anKdljJd5pCGBRhB",
"target": "yR4fA3XTHyjYMN3j",
"sourceHandle": "anKdljJd5pCGBRhB-source-right",
"targetHandle": "yR4fA3XTHyjYMN3j-target-left"
} }
], ],
"chatConfig": { "chatConfig": {
......
{ {
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/conversations/new", "value": "http://172.21.107.80:18169/conversations/new",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/documents/parse", "value": "http://172.21.107.80:18169/documents/parse",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -976,7 +976,7 @@ ...@@ -976,7 +976,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/findings", "value": "http://172.21.107.80:18169/segments/review/findings",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1288,7 +1288,7 @@ ...@@ -1288,7 +1288,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/memory/export", "value": "http://172.21.107.80:18169/memory/export",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1540,7 +1540,7 @@ ...@@ -1540,7 +1540,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/summary/facts", "value": "http://172.21.107.80:18169/segments/summary/facts",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2024,7 +2024,7 @@ ...@@ -2024,7 +2024,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/reflect", "value": "http://172.21.107.80:18169/segments/review/reflect",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2306,7 +2306,7 @@ ...@@ -2306,7 +2306,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/rule-router", "value": "http://172.21.107.80:18169/segments/review/rule-router",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2791,7 +2791,7 @@ ...@@ -2791,7 +2791,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/merger", "value": "http://172.21.107.80:18169/segments/review/merger",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
......
{ {
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/conversations/new", "value": "http://172.21.107.80:18169/conversations/new",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/documents/parse", "value": "http://172.21.107.80:18169/documents/parse",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -976,7 +976,7 @@ ...@@ -976,7 +976,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/findings", "value": "http://172.21.107.80:18169/segments/review/findings",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1288,7 +1288,7 @@ ...@@ -1288,7 +1288,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/memory/export", "value": "http://172.21.107.80:18169/memory/export",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1540,7 +1540,7 @@ ...@@ -1540,7 +1540,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/summary/facts", "value": "http://172.21.107.80:18169/segments/summary/facts",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2024,7 +2024,7 @@ ...@@ -2024,7 +2024,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/reflect", "value": "http://172.21.107.80:18169/segments/review/reflect",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2306,7 +2306,7 @@ ...@@ -2306,7 +2306,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/rule-router", "value": "http://172.21.107.80:18169/segments/review/rule-router",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2791,7 +2791,7 @@ ...@@ -2791,7 +2791,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/merger", "value": "http://172.21.107.80:18169/segments/review/merger",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
{
"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": -3013.039854845954,
"y": -5395.896356747293
},
"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": "any",
"renderTypeList": [
"hidden"
],
"label": "core.app.Question Guide",
"value": {
"open": 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": -2261.798076148374,
"y": -5236.752311683602
},
"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": ""
},
{
"id": "userFiles",
"key": "userFiles",
"label": "app:workflow.user_file_input",
"description": "app:workflow.user_file_input_desc",
"type": "static",
"valueType": "arrayString"
}
]
},
{
"nodeId": "qV22H1JlN795y1R1",
"name": "销售类别类型",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": 1680.3415517643311,
"y": -5381.240388279129
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"valueType": "string",
"label": "",
"value": "POST",
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpTimeout",
"renderTypeList": [
"custom"
],
"valueType": "number",
"label": "",
"value": 600,
"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": "http://172.21.107.80:9006/category/iter_type",
"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": [],
"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": [
{
"key": "max_single_chunk_size",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_single_chunk_size$}}"
},
{
"key": "session_id",
"type": "string",
"value": "{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}"
},
{
"key": "urls",
"type": "string",
"value": "{{$448745.userFiles$}}"
},
{
"key": "max_pages",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_pages$}}"
},
{
"key": "chunk_step",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.chunk_step$}}"
},
{
"key": "type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.type_name$}}"
},
{
"key": "sub_type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.sub_type_name$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": [
"hidden"
],
"valueType": "string",
"value": "form-data",
"label": "",
"required": false,
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
"valueDesc": ""
}
]
},
{
"nodeId": "jH1tsWu1XYygZ7Y4",
"name": "会话ID生成",
"intro": "执行一段简单的脚本代码,通常用于进行复杂的数据处理。",
"avatar": "core/workflow/template/codeRun",
"flowNodeType": "code",
"showStatus": true,
"position": {
"x": -958.0494002011754,
"y": -5225.252311683602
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "codeType",
"renderTypeList": [
"hidden"
],
"label": "",
"valueType": "string",
"value": "js",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "code",
"renderTypeList": [
"custom"
],
"label": "",
"valueType": "string",
"value": "function main(){\n const length = 10\n const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n let result = '';\n for (let i = 0; i < length; i++) {\n result += chars.charAt(Math.floor(Math.random() * chars.length));\n }\n return {\n result\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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "将代码中 return 的对象作为输出,传递给后续的节点。变量名需要对应 return 的 key",
"valueDesc": ""
},
{
"id": "y55H9qjPE8t1M0vi",
"valueType": "string",
"type": "dynamic",
"key": "result",
"label": "result"
}
]
},
{
"nodeId": "naSODSyTvHo7ihc9",
"name": "会话输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": -11.150880532804308,
"y": -5937.429480428028
},
"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",
"value": "当前会话ID:{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}\n",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"selectedTypeIndex": 0
}
],
"outputs": []
},
{
"nodeId": "t7jsULrFPEaI3Dwc",
"name": "销售类别输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 4422.8348613123535,
"y": -5824.747188301225
},
"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",
"value": "开始执行[**{{$qV22H1JlN795y1R1.httpRawResponse$}}**]判别......",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "fYPaa94duwivIDWC",
"name": "判断器",
"intro": "根据一定的条件,执行不同的分支。",
"avatar": "core/workflow/template/ifelse",
"flowNodeType": "ifElseNode",
"showStatus": true,
"position": {
"x": 2772.0257965198266,
"y": -6432.405692273836
},
"version": "481",
"inputs": [
{
"key": "ifElseList",
"renderTypeList": [
"hidden"
],
"valueType": "any",
"label": "",
"value": [
{
"condition": "OR",
"list": [
{
"variable": [
"qV22H1JlN795y1R1",
"httpRawResponse"
],
"condition": "include",
"value": "EOF"
},
{
"variable": [
"VARIABLE_NODE_ID",
"is_end"
],
"condition": "equalTo",
"value": "true"
}
]
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "ifElseResult",
"key": "ifElseResult",
"label": "workflow:judgment_result",
"valueType": "string",
"type": "static",
"description": ""
}
]
},
{
"nodeId": "uaQqAxEVEUXDVLG4",
"name": "判别结束",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 4517.710021219731,
"y": -6381.023969842139
},
"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",
"value": "判别结束。",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "xK1xTL6I7vgAUE3U",
"name": "变量更新",
"intro": "可以更新指定节点的输出值或更新全局变量",
"avatar": "core/workflow/template/variableUpdate",
"flowNodeType": "variableUpdate",
"showStatus": false,
"position": {
"x": 5985.356220435356,
"y": -5527.460212678566
},
"version": "481",
"inputs": [
{
"key": "updateList",
"valueType": "any",
"label": "",
"renderTypeList": [
"hidden"
],
"value": [
{
"variable": [
"VARIABLE_NODE_ID",
"sub_type_name"
],
"value": [
"qV22H1JlN795y1R1",
"httpRawResponse"
],
"valueType": "string",
"renderType": "reference"
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "bw8a3Lt3MCONv8Z5",
"name": "合同片段",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": 6761.365551641942,
"y": -6312.512802425409
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"valueType": "string",
"label": "",
"value": "POST",
"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": "http://172.21.107.80:9006/category/chunk_list",
"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": [],
"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": [
{
"key": "max_single_chunk_size",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_single_chunk_size$}}"
},
{
"key": "session_id",
"type": "string",
"value": "{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}"
},
{
"key": "urls",
"type": "string",
"value": "{{$448745.userFiles$}}"
},
{
"key": "max_pages",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_pages$}}"
},
{
"key": "chunk_step",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.chunk_step$}}"
},
{
"key": "type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.type_name$}}"
},
{
"key": "sub_type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.sub_type_name$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": [
"hidden"
],
"valueType": "string",
"value": "form-data",
"label": "",
"required": false,
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
"valueDesc": ""
},
{
"id": "vA9aPNhzxyJ9g7H8",
"valueType": "string",
"type": "dynamic",
"key": "info",
"label": "info"
},
{
"id": "ycD2WwB3eCUwMaib",
"valueType": "arrayNumber",
"type": "dynamic",
"key": "all_chunks",
"label": "all_chunks"
}
]
},
{
"nodeId": "gzjgtO3PQqLvfHtz",
"name": "批量执行",
"intro": "输入一个数组,遍历数组并将每一个数组元素作为输入元素,执行工作流。",
"avatar": "core/workflow/template/loop",
"flowNodeType": "loop",
"showStatus": true,
"position": {
"x": 9249,
"y": -7844
},
"version": "4811",
"inputs": [
{
"key": "loopInputArray",
"renderTypeList": [
"reference"
],
"valueType": "arrayNumber",
"required": true,
"label": "数组",
"value": [
[
"bw8a3Lt3MCONv8Z5",
"ycD2WwB3eCUwMaib"
]
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "childrenNodeIdList",
"renderTypeList": [
"hidden"
],
"valueType": "arrayString",
"label": "",
"value": [
"rWcWltZS7fyHxU0B",
"lMyndXhTZ2J0I5Wk",
"l6CepeiMmfajoYLA",
"fDIgqqDfp2nM00Zt",
"xWOOSVcEw2SmwBql",
"rhHPHV55eMio6vzR",
"p6IsMD68nZiAKP1k"
]
},
{
"key": "nodeWidth",
"renderTypeList": [
"hidden"
],
"valueType": "number",
"label": "",
"value": 3107.363855048203
},
{
"key": "nodeHeight",
"renderTypeList": [
"hidden"
],
"valueType": "number",
"label": "",
"value": 1921.1652487928222
},
{
"key": "loopNodeInputHeight",
"renderTypeList": [
"hidden"
],
"valueType": "number",
"label": "",
"value": 83,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "loopArray",
"key": "loopArray",
"label": "workflow:loop_result",
"type": "static",
"valueType": "arrayAny",
"description": ""
}
]
},
{
"nodeId": "rWcWltZS7fyHxU0B",
"parentNodeId": "gzjgtO3PQqLvfHtz",
"name": "开始",
"avatar": "core/workflow/template/loopStart",
"flowNodeType": "loopStart",
"showStatus": false,
"position": {
"x": 9319.187516980206,
"y": -7520.696109498177
},
"version": "4811",
"inputs": [
{
"key": "loopStartInput",
"renderTypeList": [
"hidden"
],
"valueType": "any",
"label": "",
"required": true,
"value": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "loopStartIndex",
"renderTypeList": [
"hidden"
],
"valueType": "number",
"label": "workflow:Array_element_index",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "loopStartIndex",
"key": "loopStartIndex",
"label": "workflow:Array_element_index",
"type": "static",
"valueType": "number",
"description": ""
},
{
"id": "loopStartInput",
"key": "loopStartInput",
"label": "数组元素",
"type": "static",
"valueType": "number"
}
]
},
{
"nodeId": "lMyndXhTZ2J0I5Wk",
"parentNodeId": "gzjgtO3PQqLvfHtz",
"name": "结束",
"avatar": "core/workflow/template/loopEnd",
"flowNodeType": "loopEnd",
"showStatus": false,
"position": {
"x": 10812.78286477631,
"y": -6604.617757768273
},
"version": "4811",
"inputs": [
{
"key": "loopEndInput",
"renderTypeList": [
"reference"
],
"valueType": "any",
"label": "",
"required": true,
"value": [
"fDIgqqDfp2nM00Zt",
"httpRawResponse"
],
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "l6CepeiMmfajoYLA",
"parentNodeId": "gzjgtO3PQqLvfHtz",
"name": "片段输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 10516.185232844682,
"y": -7055.856633636786
},
"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",
"value": "正在对合同片段[{{$rWcWltZS7fyHxU0B.loopStartInput$}}]执行判别......",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "fDIgqqDfp2nM00Zt",
"parentNodeId": "gzjgtO3PQqLvfHtz",
"name": "合同片段销售类别判别",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": 9469.204894631263,
"y": -6665.530860705355
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"valueType": "string",
"label": "",
"value": "POST",
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpTimeout",
"renderTypeList": [
"custom"
],
"valueType": "number",
"label": "",
"value": 600,
"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": "http://172.21.107.80:9006/category/category",
"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": [],
"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": [
{
"key": "max_single_chunk_size",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_single_chunk_size$}}"
},
{
"key": "session_id",
"type": "string",
"value": "{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}"
},
{
"key": "urls",
"type": "string",
"value": "{{$448745.userFiles$}}"
},
{
"key": "max_pages",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_pages$}}"
},
{
"key": "chunk_step",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.chunk_step$}}"
},
{
"key": "type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.type_name$}}"
},
{
"key": "chunk_id",
"type": "string",
"value": "{{$rWcWltZS7fyHxU0B.loopStartInput$}}"
},
{
"key": "sub_type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.sub_type_name$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": [
"hidden"
],
"valueType": "string",
"value": "form-data",
"label": "",
"required": false,
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
"valueDesc": ""
},
{
"id": "v7MwOYA8S8EQoLy3",
"valueType": "boolean",
"type": "dynamic",
"key": "res",
"label": "res"
},
{
"id": "lfQrCjSBwd8tuyZR",
"valueType": "string",
"type": "dynamic",
"key": "judge",
"label": "judge"
},
{
"id": "r28lWj9MyqdNjeEs",
"valueType": "string",
"type": "dynamic",
"key": "text",
"label": "text"
},
{
"id": "dmrizXYzk1MhUmkt",
"valueType": "string",
"type": "dynamic",
"key": "chunk_location",
"label": "chunk_location"
}
]
},
{
"nodeId": "xWOOSVcEw2SmwBql",
"parentNodeId": "gzjgtO3PQqLvfHtz",
"name": "分段判别结果",
"intro": "根据一定的条件,执行不同的分支。",
"avatar": "core/workflow/template/ifelse",
"flowNodeType": "ifElseNode",
"showStatus": true,
"position": {
"x": 10482.601918568382,
"y": -6278.442984562107
},
"version": "481",
"inputs": [
{
"key": "ifElseList",
"renderTypeList": [
"hidden"
],
"valueType": "any",
"label": "",
"value": [
{
"condition": "AND",
"list": [
{
"variable": [
"fDIgqqDfp2nM00Zt",
"v7MwOYA8S8EQoLy3"
],
"condition": "equalTo",
"value": "true"
}
]
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "ifElseResult",
"key": "ifElseResult",
"label": "workflow:judgment_result",
"valueType": "string",
"type": "static",
"description": ""
}
]
},
{
"nodeId": "rhHPHV55eMio6vzR",
"parentNodeId": "gzjgtO3PQqLvfHtz",
"name": "is_end更新",
"intro": "可以更新指定节点的输出值或更新全局变量",
"avatar": "core/workflow/template/variableUpdate",
"flowNodeType": "variableUpdate",
"showStatus": false,
"position": {
"x": 11694.283705209387,
"y": -6448.617757768273
},
"version": "481",
"inputs": [
{
"key": "updateList",
"valueType": "any",
"label": "",
"renderTypeList": [
"hidden"
],
"value": [
{
"variable": [
"VARIABLE_NODE_ID",
"is_end"
],
"value": [
"",
"true"
],
"valueType": "boolean",
"renderType": "input"
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "zs0Eywdq9oTjSIwo",
"name": "OCR文档",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": -112.44715797733295,
"y": -5299.163352443061
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"valueType": "string",
"label": "",
"value": "POST",
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpTimeout",
"renderTypeList": [
"custom"
],
"valueType": "number",
"label": "",
"value": 600,
"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": "http://172.21.107.80:9006/category/ocr",
"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": [],
"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": [
{
"key": "max_single_chunk_size",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_single_chunk_size$}}"
},
{
"key": "session_id",
"type": "string",
"value": "{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}"
},
{
"key": "urls",
"type": "string",
"value": "{{$448745.userFiles$}}"
},
{
"key": "max_pages",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_pages$}}"
},
{
"key": "chunk_step",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.chunk_step$}}"
},
{
"key": "type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.type_name$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": [
"hidden"
],
"valueType": "string",
"value": "form-data",
"label": "",
"required": false,
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
"valueDesc": ""
}
]
},
{
"nodeId": "y7t5Ew8bdqpqIzy4",
"name": "list输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 7989.7596229324645,
"y": -6186.170310257907
},
"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",
"value": "**{{$bw8a3Lt3MCONv8Z5.vA9aPNhzxyJ9g7H8$}}**",
"valueDesc": "",
"debugLabel": "",
"toolDescription": "",
"selectedTypeIndex": 0
}
],
"outputs": []
},
{
"nodeId": "mszS8pbhGFsQFe95",
"name": "OCR结束",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 780.3719209710606,
"y": -5000.752311683602
},
"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",
"value": "OCR结束",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "g7rAFWAW2wLudYBS",
"name": "初始化变量",
"intro": "可以更新指定节点的输出值或更新全局变量",
"avatar": "core/workflow/template/variableUpdate",
"flowNodeType": "variableUpdate",
"showStatus": false,
"position": {
"x": -1656.4877159838231,
"y": -5186.752311683602
},
"version": "481",
"inputs": [
{
"key": "updateList",
"valueType": "any",
"label": "",
"renderTypeList": [
"hidden"
],
"value": [
{
"variable": [
"VARIABLE_NODE_ID",
"type_name"
],
"valueType": "string",
"renderType": "input",
"value": [
"",
"内销或出口"
]
},
{
"variable": [
"VARIABLE_NODE_ID",
"is_end"
],
"value": [
"",
"false"
],
"renderType": "input",
"valueType": "boolean"
},
{
"variable": [
"VARIABLE_NODE_ID",
"sub_type_name"
],
"renderType": "input",
"valueType": "string",
"value": [
"",
""
]
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "kv5tMm5dTnHkgHse",
"name": "反思",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": 15303.930144548716,
"y": -6990.502634067284
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"valueType": "string",
"label": "",
"value": "POST",
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpTimeout",
"renderTypeList": [
"custom"
],
"valueType": "number",
"label": "",
"value": 600,
"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": "http://172.21.107.80:9006/category/reflection",
"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": [],
"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": [
{
"key": "max_single_chunk_size",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_single_chunk_size$}}"
},
{
"key": "session_id",
"type": "string",
"value": "{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}"
},
{
"key": "urls",
"type": "string",
"value": "{{$448745.userFiles$}}"
},
{
"key": "max_pages",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_pages$}}"
},
{
"key": "chunk_step",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.chunk_step$}}"
},
{
"key": "type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.type_name$}}"
},
{
"key": "sub_type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.sub_type_name$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": [
"hidden"
],
"valueType": "string",
"value": "x-www-form-urlencoded",
"label": "",
"required": false,
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
"valueDesc": ""
},
{
"id": "v7MwOYA8S8EQoLy3",
"valueType": "string",
"type": "dynamic",
"key": "res",
"label": "res"
},
{
"id": "mpqq4gGftILf1kXs",
"valueType": "string",
"type": "dynamic",
"key": "judge",
"label": "judge"
},
{
"id": "xoLU0iELUzDn4P6M",
"valueType": "string",
"type": "dynamic",
"key": "text",
"label": "text"
}
]
},
{
"nodeId": "roeYO0toBwf3SQ2H",
"name": "反思输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 18422.704913825637,
"y": -6267.136605323737
},
"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",
"value": "# 🔍判断思路\n{{$kv5tMm5dTnHkgHse.mpqq4gGftILf1kXs$}}\n\n# 🏷️结果\n**{{$kv5tMm5dTnHkgHse.v7MwOYA8S8EQoLy3$}}**\n\n---",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "p6IsMD68nZiAKP1k",
"parentNodeId": "gzjgtO3PQqLvfHtz",
"name": "否输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 11680.551372028409,
"y": -6003.157936036692
},
"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",
"value": "该片段未提取到关键信息...",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "dx59JyoAtGgCmmUA",
"name": "类别更新",
"intro": "可以更新指定节点的输出值或更新全局变量",
"avatar": "core/workflow/template/variableUpdate",
"flowNodeType": "variableUpdate",
"showStatus": false,
"position": {
"x": 17322.389154521952,
"y": -6471.536464469149
},
"version": "481",
"inputs": [
{
"key": "updateList",
"valueType": "any",
"label": "",
"renderTypeList": [
"hidden"
],
"value": [
{
"variable": [
"VARIABLE_NODE_ID",
"type_name"
],
"value": [
"kv5tMm5dTnHkgHse",
"v7MwOYA8S8EQoLy3"
],
"valueType": "string",
"renderType": "reference"
},
{
"variable": [
"VARIABLE_NODE_ID",
"sub_type_name"
],
"renderType": "reference",
"valueType": "string"
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "r26yR9Rte1Oq2kH6",
"name": "反思判断",
"intro": "根据一定的条件,执行不同的分支。",
"avatar": "core/workflow/template/ifelse",
"flowNodeType": "ifElseNode",
"showStatus": true,
"position": {
"x": 16196.866525622323,
"y": -6471.536464469149
},
"version": "481",
"inputs": [
{
"key": "ifElseList",
"renderTypeList": [
"hidden"
],
"valueType": "any",
"label": "",
"value": [
{
"condition": "AND",
"list": [
{
"variable": [
"kv5tMm5dTnHkgHse",
"v7MwOYA8S8EQoLy3"
],
"condition": "isNotEmpty"
}
]
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "ifElseResult",
"key": "ifElseResult",
"label": "workflow:judgment_result",
"valueType": "string",
"type": "static",
"description": ""
}
]
},
{
"nodeId": "o4aXYNygn88UBl71",
"name": "结果导出",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": 5709.538879950568,
"y": -6650.405692273836
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"valueType": "string",
"label": "",
"value": "POST",
"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": "http://172.21.107.80:9006/category/export",
"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": [],
"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": [
{
"key": "max_single_chunk_size",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_single_chunk_size$}}"
},
{
"key": "session_id",
"type": "string",
"value": "{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}"
},
{
"key": "urls",
"type": "string",
"value": "{{$448745.userFiles$}}"
},
{
"key": "max_pages",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_pages$}}"
},
{
"key": "chunk_step",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.chunk_step$}}"
},
{
"key": "type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.type_name$}}"
},
{
"key": "sub_type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.sub_type_name$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": [
"hidden"
],
"valueType": "string",
"value": "form-data",
"label": "",
"required": false,
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
"valueDesc": ""
},
{
"id": "vA9aPNhzxyJ9g7H8",
"valueType": "string",
"type": "dynamic",
"key": "excel",
"label": "excel"
}
]
},
{
"nodeId": "y5RXEE2W5CxOIUs1",
"name": "结果输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 6769.449373329997,
"y": -6859.47636437232
},
"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",
"value": "# 导出Excel\n{{$o4aXYNygn88UBl71.vA9aPNhzxyJ9g7H8$}}",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
},
{
"nodeId": "jq8r2P51E6ST3g5F",
"name": "是否判断成功",
"intro": "根据一定的条件,执行不同的分支。",
"avatar": "core/workflow/template/ifelse",
"flowNodeType": "ifElseNode",
"showStatus": true,
"position": {
"x": 12619.828461568719,
"y": -6776.249761393352
},
"version": "481",
"inputs": [
{
"key": "ifElseList",
"renderTypeList": [
"hidden"
],
"valueType": "any",
"label": "",
"value": [
{
"condition": "AND",
"list": [
{
"variable": [
"VARIABLE_NODE_ID",
"is_end"
],
"condition": "equalTo",
"value": "true"
}
]
}
],
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "ifElseResult",
"key": "ifElseResult",
"label": "workflow:judgment_result",
"valueType": "string",
"type": "static",
"description": ""
}
]
},
{
"nodeId": "vBwefuR5mRWI8EcA",
"name": "判别成功记忆输出",
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
"avatar": "core/workflow/template/httpRequest",
"flowNodeType": "httpRequest468",
"showStatus": true,
"position": {
"x": 13552.383878065986,
"y": -7371.613859189546
},
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": true
},
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"valueType": "string",
"label": "",
"value": "POST",
"required": true,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpTimeout",
"renderTypeList": [
"custom"
],
"valueType": "number",
"label": "",
"value": 600,
"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": "http://172.21.107.80:9006/category/memory",
"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": [],
"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": [
{
"key": "max_single_chunk_size",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_single_chunk_size$}}"
},
{
"key": "session_id",
"type": "string",
"value": "{{$jH1tsWu1XYygZ7Y4.y55H9qjPE8t1M0vi$}}"
},
{
"key": "urls",
"type": "string",
"value": "{{$448745.userFiles$}}"
},
{
"key": "max_pages",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.max_pages$}}"
},
{
"key": "chunk_step",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.chunk_step$}}"
},
{
"key": "type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.type_name$}}"
},
{
"key": "sub_type_name",
"type": "string",
"value": "{{$VARIABLE_NODE_ID.sub_type_name$}}"
}
],
"label": "",
"required": false,
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
},
{
"key": "system_httpContentType",
"renderTypeList": [
"hidden"
],
"valueType": "string",
"value": "x-www-form-urlencoded",
"label": "",
"required": false,
"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",
"selectDataset",
"selectApp"
],
"showDescription": false,
"showDefaultValue": false
},
"description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
"valueDesc": ""
}
]
},
{
"nodeId": "tnDQBPunfj3L60od",
"name": "判别成功记忆输出",
"intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
"avatar": "core/workflow/template/reply",
"flowNodeType": "answerNode",
"position": {
"x": 14512.941812193714,
"y": -7105.113859189546
},
"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",
"value": "# 🏷️判别结果\n{{$VARIABLE_NODE_ID.sub_type_name$}}\n\n{{$vBwefuR5mRWI8EcA.httpRawResponse$}}",
"valueDesc": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": []
}
],
"edges": [
{
"source": "jH1tsWu1XYygZ7Y4",
"target": "naSODSyTvHo7ihc9",
"sourceHandle": "jH1tsWu1XYygZ7Y4-source-right",
"targetHandle": "naSODSyTvHo7ihc9-target-left"
},
{
"source": "qV22H1JlN795y1R1",
"target": "fYPaa94duwivIDWC",
"sourceHandle": "qV22H1JlN795y1R1-source-right",
"targetHandle": "fYPaa94duwivIDWC-target-left"
},
{
"source": "fYPaa94duwivIDWC",
"target": "t7jsULrFPEaI3Dwc",
"sourceHandle": "fYPaa94duwivIDWC-source-ELSE",
"targetHandle": "t7jsULrFPEaI3Dwc-target-left"
},
{
"source": "fYPaa94duwivIDWC",
"target": "uaQqAxEVEUXDVLG4",
"sourceHandle": "fYPaa94duwivIDWC-source-IF",
"targetHandle": "uaQqAxEVEUXDVLG4-target-left"
},
{
"source": "t7jsULrFPEaI3Dwc",
"target": "xK1xTL6I7vgAUE3U",
"sourceHandle": "t7jsULrFPEaI3Dwc-source-right",
"targetHandle": "xK1xTL6I7vgAUE3U-target-left"
},
{
"source": "xK1xTL6I7vgAUE3U",
"target": "bw8a3Lt3MCONv8Z5",
"sourceHandle": "xK1xTL6I7vgAUE3U-source-right",
"targetHandle": "bw8a3Lt3MCONv8Z5-target-left"
},
{
"source": "l6CepeiMmfajoYLA",
"target": "fDIgqqDfp2nM00Zt",
"sourceHandle": "l6CepeiMmfajoYLA-source-bottom",
"targetHandle": "fDIgqqDfp2nM00Zt-target-top"
},
{
"source": "xWOOSVcEw2SmwBql",
"target": "rhHPHV55eMio6vzR",
"sourceHandle": "xWOOSVcEw2SmwBql-source-IF",
"targetHandle": "rhHPHV55eMio6vzR-target-left"
},
{
"source": "jH1tsWu1XYygZ7Y4",
"target": "zs0Eywdq9oTjSIwo",
"sourceHandle": "jH1tsWu1XYygZ7Y4-source-right",
"targetHandle": "zs0Eywdq9oTjSIwo-target-left"
},
{
"source": "bw8a3Lt3MCONv8Z5",
"target": "y7t5Ew8bdqpqIzy4",
"sourceHandle": "bw8a3Lt3MCONv8Z5-source-right",
"targetHandle": "y7t5Ew8bdqpqIzy4-target-left"
},
{
"source": "y7t5Ew8bdqpqIzy4",
"target": "gzjgtO3PQqLvfHtz",
"sourceHandle": "y7t5Ew8bdqpqIzy4-source-right",
"targetHandle": "gzjgtO3PQqLvfHtz-target-left"
},
{
"source": "zs0Eywdq9oTjSIwo",
"target": "mszS8pbhGFsQFe95",
"sourceHandle": "zs0Eywdq9oTjSIwo-source-right",
"targetHandle": "mszS8pbhGFsQFe95-target-left"
},
{
"source": "mszS8pbhGFsQFe95",
"target": "qV22H1JlN795y1R1",
"sourceHandle": "mszS8pbhGFsQFe95-source-right",
"targetHandle": "qV22H1JlN795y1R1-target-left"
},
{
"source": "448745",
"target": "g7rAFWAW2wLudYBS",
"sourceHandle": "448745-source-right",
"targetHandle": "g7rAFWAW2wLudYBS-target-left"
},
{
"source": "g7rAFWAW2wLudYBS",
"target": "jH1tsWu1XYygZ7Y4",
"sourceHandle": "g7rAFWAW2wLudYBS-source-right",
"targetHandle": "jH1tsWu1XYygZ7Y4-target-left"
},
{
"source": "roeYO0toBwf3SQ2H",
"target": "qV22H1JlN795y1R1",
"sourceHandle": "roeYO0toBwf3SQ2H-source-bottom",
"targetHandle": "qV22H1JlN795y1R1-target-bottom"
},
{
"source": "xWOOSVcEw2SmwBql",
"target": "p6IsMD68nZiAKP1k",
"sourceHandle": "xWOOSVcEw2SmwBql-source-ELSE",
"targetHandle": "p6IsMD68nZiAKP1k-target-left"
},
{
"source": "fDIgqqDfp2nM00Zt",
"target": "xWOOSVcEw2SmwBql",
"sourceHandle": "fDIgqqDfp2nM00Zt-source-right",
"targetHandle": "xWOOSVcEw2SmwBql-target-left"
},
{
"source": "dx59JyoAtGgCmmUA",
"target": "roeYO0toBwf3SQ2H",
"sourceHandle": "dx59JyoAtGgCmmUA-source-right",
"targetHandle": "roeYO0toBwf3SQ2H-target-left"
},
{
"source": "kv5tMm5dTnHkgHse",
"target": "r26yR9Rte1Oq2kH6",
"sourceHandle": "kv5tMm5dTnHkgHse-source-right",
"targetHandle": "r26yR9Rte1Oq2kH6-target-left"
},
{
"source": "r26yR9Rte1Oq2kH6",
"target": "dx59JyoAtGgCmmUA",
"sourceHandle": "r26yR9Rte1Oq2kH6-source-IF",
"targetHandle": "dx59JyoAtGgCmmUA-target-left"
},
{
"source": "r26yR9Rte1Oq2kH6",
"target": "qV22H1JlN795y1R1",
"sourceHandle": "r26yR9Rte1Oq2kH6-source-ELSE",
"targetHandle": "qV22H1JlN795y1R1-target-bottom"
},
{
"source": "rWcWltZS7fyHxU0B",
"target": "l6CepeiMmfajoYLA",
"sourceHandle": "rWcWltZS7fyHxU0B-source-right",
"targetHandle": "l6CepeiMmfajoYLA-target-left"
},
{
"source": "fDIgqqDfp2nM00Zt",
"target": "lMyndXhTZ2J0I5Wk",
"sourceHandle": "fDIgqqDfp2nM00Zt-source-right",
"targetHandle": "lMyndXhTZ2J0I5Wk-target-left"
},
{
"source": "uaQqAxEVEUXDVLG4",
"target": "o4aXYNygn88UBl71",
"sourceHandle": "uaQqAxEVEUXDVLG4-source-right",
"targetHandle": "o4aXYNygn88UBl71-target-left"
},
{
"source": "o4aXYNygn88UBl71",
"target": "y5RXEE2W5CxOIUs1",
"sourceHandle": "o4aXYNygn88UBl71-source-right",
"targetHandle": "y5RXEE2W5CxOIUs1-target-left"
},
{
"source": "gzjgtO3PQqLvfHtz",
"target": "jq8r2P51E6ST3g5F",
"sourceHandle": "gzjgtO3PQqLvfHtz-source-right",
"targetHandle": "jq8r2P51E6ST3g5F-target-left"
},
{
"source": "jq8r2P51E6ST3g5F",
"target": "kv5tMm5dTnHkgHse",
"sourceHandle": "jq8r2P51E6ST3g5F-source-ELSE",
"targetHandle": "kv5tMm5dTnHkgHse-target-left"
},
{
"source": "jq8r2P51E6ST3g5F",
"target": "vBwefuR5mRWI8EcA",
"sourceHandle": "jq8r2P51E6ST3g5F-source-IF",
"targetHandle": "vBwefuR5mRWI8EcA-target-left"
},
{
"source": "vBwefuR5mRWI8EcA",
"target": "tnDQBPunfj3L60od",
"sourceHandle": "vBwefuR5mRWI8EcA-source-right",
"targetHandle": "tnDQBPunfj3L60od-target-left"
},
{
"source": "tnDQBPunfj3L60od",
"target": "kv5tMm5dTnHkgHse",
"sourceHandle": "tnDQBPunfj3L60od-source-right",
"targetHandle": "kv5tMm5dTnHkgHse-target-left"
}
],
"chatConfig": {
"variables": [
{
"id": "erlv7a",
"key": "max_single_chunk_size",
"label": "max_single_chunk_size",
"type": "numberInput",
"description": "max_single_chunk_size",
"required": false,
"valueType": "number",
"list": [
{
"value": "",
"label": ""
}
],
"defaultValue": 2000,
"min": 500,
"max": 15000,
"enums": [
{
"value": "",
"label": ""
}
],
"icon": "core/workflow/inputType/numberInput"
},
{
"id": "hazv8y",
"key": "max_pages",
"label": "max_pages",
"type": "numberInput",
"description": "最大页数",
"required": false,
"valueType": "number",
"list": [
{
"value": "",
"label": ""
}
],
"defaultValue": 1,
"min": 1,
"max": 5,
"enums": [
{
"value": "",
"label": ""
}
],
"icon": "core/workflow/inputType/numberInput"
},
{
"id": "wnn67j",
"key": "chunk_step",
"label": "chunk_step",
"type": "numberInput",
"description": "chunk_step",
"required": false,
"valueType": "number",
"list": [
{
"value": "",
"label": ""
}
],
"defaultValue": 5,
"min": 1,
"max": 10,
"enums": [
{
"value": "",
"label": ""
}
],
"icon": "core/workflow/inputType/numberInput"
},
{
"id": "ifhf3m",
"key": "type_name",
"label": "type_name",
"type": "custom",
"description": "type_name",
"required": false,
"valueType": "string",
"list": [
{
"value": "",
"label": ""
}
],
"defaultValue": "",
"enums": [
{
"value": "",
"label": ""
}
],
"icon": "core/workflow/inputType/input"
},
{
"id": "vqsmou",
"key": "is_end",
"label": "is_end",
"type": "custom",
"description": "",
"required": false,
"valueType": "boolean",
"list": [
{
"value": "",
"label": ""
}
],
"defaultValue": false,
"enums": [
{
"value": "",
"label": ""
}
]
},
{
"id": "p6b5g4",
"key": "sub_type_name",
"label": "sub_type_name",
"type": "custom",
"description": "sub_type_name",
"required": false,
"valueType": "string",
"list": [
{
"value": "",
"label": ""
}
],
"defaultValue": "",
"enums": [
{
"value": "",
"label": ""
}
]
}
],
"scheduledTriggerConfig": {
"cronString": "",
"timezone": "Asia/Shanghai",
"defaultPrompt": ""
},
"fileSelectConfig": {
"canSelectFile": true,
"canSelectImg": false,
"maxFiles": 10
},
"_id": "682ef5ec27393425f5a45539"
}
}
\ No newline at end of file
{ {
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"avatar": "core/workflow/template/systemConfig", "avatar": "core/workflow/template/systemConfig",
"flowNodeType": "userGuide", "flowNodeType": "userGuide",
"position": { "position": {
"x": -1830.6752840119775, "x": -2626.6230836832283,
"y": -773.8134339439673 "y": -718.7305346936864
}, },
"version": "481", "version": "481",
"inputs": [ "inputs": [
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
"avatar": "core/workflow/template/workflowStart", "avatar": "core/workflow/template/workflowStart",
"flowNodeType": "workflowStart", "flowNodeType": "workflowStart",
"position": { "position": {
"x": -1341.9918261676994, "x": -2076.59187052832,
"y": -720.3035540606256 "y": -648.1183530689627
}, },
"version": "481", "version": "481",
"inputs": [ "inputs": [
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/conversations/new", "value": "http://172.21.107.80:18169/conversations/new",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/documents/parse", "value": "http://172.21.107.80:18169/documents/parse",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1010,7 +1010,7 @@ ...@@ -1010,7 +1010,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/memory/facts/export", "value": "http://172.21.107.80:18169/memory/facts/export",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1255,7 +1255,7 @@ ...@@ -1255,7 +1255,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/summary/facts", "value": "http://172.21.107.80:18169/segments/summary/facts",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1538,7 +1538,7 @@ ...@@ -1538,7 +1538,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/review/rule-router", "value": "http://172.21.107.80:18169/segments/review/rule-router",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1852,7 +1852,7 @@ ...@@ -1852,7 +1852,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/segments/summary/facts/merger", "value": "http://172.21.107.80:18169/segments/summary/facts/merger",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2127,7 +2127,7 @@ ...@@ -2127,7 +2127,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://172.21.107.45:18169/rulesets/route", "value": "http://172.21.107.80:18169/rulesets/route",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2163,7 +2163,7 @@ ...@@ -2163,7 +2163,7 @@
"hidden" "hidden"
], ],
"valueType": "any", "valueType": "any",
"value": "{\n\"question\":\"{{$448745.userChatInput$}}\"\n}", "value": "{\n\"question\":\"{{$txeKu3Wg4PktWwrs.system_text$}}\"\n}",
"label": "", "label": "",
"required": false, "required": false,
"debugLabel": "", "debugLabel": "",
...@@ -2359,6 +2359,45 @@ ...@@ -2359,6 +2359,45 @@
} }
], ],
"outputs": [] "outputs": []
},
{
"nodeId": "txeKu3Wg4PktWwrs",
"name": "文本拼接",
"intro": "可对固定或传入的文本进行加工后输出,非字符串类型数据最终会转成字符串类型。",
"avatar": "core/workflow/template/textConcat",
"flowNodeType": "textEditor",
"position": {
"x": -1591.7611113168862,
"y": -566.1422308841376
},
"version": "4813",
"inputs": [
{
"key": "system_textareaInput",
"renderTypeList": [
"textarea"
],
"valueType": "string",
"required": true,
"label": "拼接文本",
"placeholder": "workflow:input_variable_list",
"value": "帮我进行技术协议提取;\n{{$448745.userChatInput$}}",
"valueDesc": "",
"description": "",
"debugLabel": "",
"toolDescription": ""
}
],
"outputs": [
{
"id": "system_text",
"key": "system_text",
"label": "workflow:concatenation_result",
"type": "static",
"valueType": "string",
"description": ""
}
]
} }
], ],
"edges": [ "edges": [
...@@ -2447,12 +2486,6 @@ ...@@ -2447,12 +2486,6 @@
"targetHandle": "v7v3dWPFEySgk5Wk-target-left" "targetHandle": "v7v3dWPFEySgk5Wk-target-left"
}, },
{ {
"source": "448745",
"target": "yR4fA3XTHyjYMN3j",
"sourceHandle": "448745-source-right",
"targetHandle": "yR4fA3XTHyjYMN3j-target-left"
},
{
"source": "yR4fA3XTHyjYMN3j", "source": "yR4fA3XTHyjYMN3j",
"target": "rNHAaQ4A2NNI0PCE", "target": "rNHAaQ4A2NNI0PCE",
"sourceHandle": "yR4fA3XTHyjYMN3j-source-right", "sourceHandle": "yR4fA3XTHyjYMN3j-source-right",
...@@ -2469,6 +2502,18 @@ ...@@ -2469,6 +2502,18 @@
"target": "o7b0axI8mmI9pA2A", "target": "o7b0axI8mmI9pA2A",
"sourceHandle": "te1XPVi9S4GFi6Jx-source-right", "sourceHandle": "te1XPVi9S4GFi6Jx-source-right",
"targetHandle": "o7b0axI8mmI9pA2A-target-left" "targetHandle": "o7b0axI8mmI9pA2A-target-left"
},
{
"source": "448745",
"target": "txeKu3Wg4PktWwrs",
"sourceHandle": "448745-source-right",
"targetHandle": "txeKu3Wg4PktWwrs-target-left"
},
{
"source": "txeKu3Wg4PktWwrs",
"target": "yR4fA3XTHyjYMN3j",
"sourceHandle": "txeKu3Wg4PktWwrs-source-right",
"targetHandle": "yR4fA3XTHyjYMN3j-target-left"
} }
], ],
"chatConfig": { "chatConfig": {
......
{ {
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/conversations/new", "value": "http://172.21.107.80:18169/conversations/new",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/documents/parse", "value": "http://172.21.107.80:18169/documents/parse",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -969,7 +969,7 @@ ...@@ -969,7 +969,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/segments/review/findings", "value": "http://172.21.107.80:18169/segments/review/findings",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1281,7 +1281,7 @@ ...@@ -1281,7 +1281,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/memory/export", "value": "http://172.21.107.80:18169/memory/export",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -1533,7 +1533,7 @@ ...@@ -1533,7 +1533,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/segments/summary/facts", "value": "http://172.21.107.80:18169/segments/summary/facts",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2017,7 +2017,7 @@ ...@@ -2017,7 +2017,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/segments/review/reflect", "value": "http://172.21.107.80:18169/segments/review/reflect",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2299,7 +2299,7 @@ ...@@ -2299,7 +2299,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/segments/review/rule-router", "value": "http://172.21.107.80:18169/segments/review/rule-router",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
...@@ -2784,7 +2784,7 @@ ...@@ -2784,7 +2784,7 @@
"description": "common:core.module.input.description.Http Request Url", "description": "common:core.module.input.description.Http Request Url",
"placeholder": "https://api.ai.com/getInventory", "placeholder": "https://api.ai.com/getInventory",
"required": false, "required": false,
"value": "http://192.168.252.71:18169/segments/review/merger", "value": "http://172.21.107.80:18169/segments/review/merger",
"debugLabel": "", "debugLabel": "",
"toolDescription": "" "toolDescription": ""
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment