app: description: 用于自动处理请求,分析是哪种需求,从而调用不同的api接口,获得相关内容。 icon: 🤖 icon_background: '#FFEAD5' mode: workflow name: api-bot use_icon_as_answer_icon: false dependencies: - current_identifier: null type: marketplace value: marketplace_plugin_unique_identifier: langgenius/volcengine_maas:0.0.7@f8e44422cfa5b9a6ac1f2d3b43ef1069868efdad1e5cec2590de3f53ceac37b0 kind: app version: 0.1.5 workflow: conversation_variables: [] environment_variables: [] features: file_upload: allowed_file_extensions: - .JPG - .JPEG - .PNG - .GIF - .WEBP - .SVG allowed_file_types: - image allowed_file_upload_methods: - local_file - remote_url enabled: false fileUploadConfig: audio_file_size_limit: 50 batch_count_limit: 5 file_size_limit: 15 image_file_size_limit: 10 video_file_size_limit: 100 workflow_file_upload_limit: 10 image: enabled: false number_limits: 3 transfer_methods: - local_file - remote_url number_limits: 3 opening_statement: '' retriever_resource: enabled: true sensitive_word_avoidance: enabled: false speech_to_text: enabled: false suggested_questions: [] suggested_questions_after_answer: enabled: false text_to_speech: enabled: false language: '' voice: '' graph: edges: - data: isInIteration: false sourceType: llm targetType: if-else id: 1741757831362-source-1741758050335-target selected: false source: '1741757831362' sourceHandle: source target: '1741758050335' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: if-else targetType: end id: 1741758050335-8b298a13-eefa-4e9a-a299-8cae38a8702d-1741757948811-target selected: false source: '1741758050335' sourceHandle: 8b298a13-eefa-4e9a-a299-8cae38a8702d target: '1741757948811' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: if-else targetType: llm id: 1741758050335-e6991825-87c0-4f41-8894-5addb98db6cf-1741847191740-target selected: false source: '1741758050335' sourceHandle: e6991825-87c0-4f41-8894-5addb98db6cf target: '1741847191740' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: if-else targetType: llm id: 1741758050335-7b925cbf-b6ab-4267-bb4b-529de22b718f-1741847247301-target selected: false source: '1741758050335' sourceHandle: 7b925cbf-b6ab-4267-bb4b-529de22b718f target: '1741847247301' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: if-else targetType: llm id: 1741758050335-ff061c52-e20a-4193-8f85-24c274fff897-1741847298035-target selected: false source: '1741758050335' sourceHandle: ff061c52-e20a-4193-8f85-24c274fff897 target: '1741847298035' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: if-else targetType: llm id: 1741758050335-f4d1d97d-1147-43ca-9586-b681d836c6f3-1741847430222-target selected: false source: '1741758050335' sourceHandle: f4d1d97d-1147-43ca-9586-b681d836c6f3 target: '1741847430222' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: if-else targetType: llm id: 1741758050335-30fe5266-8ecd-4def-8fc7-80e8a01e2585-1741847461222-target selected: false source: '1741758050335' sourceHandle: 30fe5266-8ecd-4def-8fc7-80e8a01e2585 target: '1741847461222' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: llm targetType: end id: 1741847461222-source-1741847490149-target selected: false source: '1741847461222' sourceHandle: source target: '1741847490149' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: llm targetType: end id: 1741847430222-source-1741847554058-target selected: false source: '1741847430222' sourceHandle: source target: '1741847554058' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: llm targetType: end id: 1741847298035-source-1741847565036-target selected: false source: '1741847298035' sourceHandle: source target: '1741847565036' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: llm targetType: end id: 1741847247301-source-1741847571821-target selected: false source: '1741847247301' sourceHandle: source target: '1741847571821' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: llm targetType: end id: 1741847191740-source-1741847579937-target selected: false source: '1741847191740' sourceHandle: source target: '1741847579937' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: if-else targetType: end id: 1741758050335-false-1741757948811-target selected: false source: '1741758050335' sourceHandle: 'false' target: '1741757948811' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: if-else targetType: end id: 1741758050335-4225ad3d-9ce2-45d5-a311-bd729f132044-1741757948811-target selected: false source: '1741758050335' sourceHandle: 4225ad3d-9ce2-45d5-a311-bd729f132044 target: '1741757948811' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: llm targetType: llm id: 1741847191740-fail-branch-1743138354162-target selected: false source: '1741847191740' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: llm targetType: end id: 1743138354162-source-1743138451375-target selected: false source: '1743138354162' sourceHandle: source target: '1743138451375' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: llm targetType: llm id: 1741847247301-fail-branch-1743138354162-target selected: false source: '1741847247301' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: llm targetType: llm id: 1741847298035-fail-branch-1743138354162-target selected: false source: '1741847298035' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: llm targetType: llm id: 1741847430222-fail-branch-1743138354162-target selected: false source: '1741847430222' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: llm targetType: llm id: 1741847461222-fail-branch-1743138354162-target selected: false source: '1741847461222' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: start targetType: if-else id: 1741757820222-source-1744007822722-target selected: false source: '1741757820222' sourceHandle: source target: '1744007822722' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: if-else targetType: llm id: 1744007822722-false-1741757831362-target selected: false source: '1744007822722' sourceHandle: 'false' target: '1741757831362' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: if-else targetType: http-request id: 1744007822722-true-1744007871917-target selected: false source: '1744007822722' sourceHandle: 'true' target: '1744007871917' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: llm id: 1744007871917-fail-branch-1743138354162-target selected: false source: '1744007871917' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: http-request targetType: code id: 1744007871917-source-1744009806175-target selected: false source: '1744007871917' sourceHandle: source target: '1744009806175' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: code targetType: end id: 1744009806175-source-1744010869703-target selected: false source: '1744009806175' sourceHandle: source target: '1744010869703' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: if-else targetType: http-request id: 1744007822722-0914de7f-4420-48db-b325-89653be67384-17440128287390-target selected: false source: '1744007822722' sourceHandle: 0914de7f-4420-48db-b325-89653be67384 target: '17440128287390' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: llm id: 17440128287390-fail-branch-1743138354162-target selected: false source: '17440128287390' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: llm id: 17440135143330-fail-branch-1743138354162-target selected: false source: '17440135143330' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: if-else targetType: http-request id: 1744007822722-cdcf8439-f940-48b8-9044-7ce9030baab2-17440135143330-target selected: false source: '1744007822722' sourceHandle: cdcf8439-f940-48b8-9044-7ce9030baab2 target: '17440135143330' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: code id: 17440135143330-source-17440135682740-target selected: false source: '17440135143330' sourceHandle: source target: '17440135682740' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: code id: 17440128287390-source-17440136161780-target selected: false source: '17440128287390' sourceHandle: source target: '17440136161780' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: code targetType: end id: 17440136161780-source-17440136338580-target selected: false source: '17440136161780' sourceHandle: source target: '17440136338580' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: code targetType: end id: 17440135682740-source-17440136508740-target selected: false source: '17440135682740' sourceHandle: source target: '17440136508740' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: if-else targetType: http-request id: 1744007822722-de724bb6-0021-4843-9bc5-d268efff77b7-1744014048030-target selected: false source: '1744007822722' sourceHandle: de724bb6-0021-4843-9bc5-d268efff77b7 target: '1744014048030' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: code id: 1744014048030-source-17440140919180-target selected: false source: '1744014048030' sourceHandle: source target: '17440140919180' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: code targetType: end id: 17440140919180-source-17440142090910-target selected: false source: '17440140919180' sourceHandle: source target: '17440142090910' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: llm id: 1744014048030-fail-branch-1743138354162-target selected: false source: '1744014048030' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: if-else targetType: http-request id: 1744007822722-5bd8b2af-c696-46b5-b019-ef7cd9633335-17440182985220-target source: '1744007822722' sourceHandle: 5bd8b2af-c696-46b5-b019-ef7cd9633335 target: '17440182985220' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: llm id: 17440182985220-fail-branch-1743138354162-target source: '17440182985220' sourceHandle: fail-branch target: '1743138354162' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: http-request targetType: code id: 17440182985220-source-17440183564480-target source: '17440182985220' sourceHandle: source target: '17440183564480' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: code targetType: end id: 17440183564480-source-17440183674890-target source: '17440183564480' sourceHandle: source target: '17440183674890' targetHandle: target type: custom zIndex: 0 nodes: - data: desc: '' selected: false title: 开始 type: start variables: - label: query max_length: 48 options: [] required: true type: text-input variable: query - label: conversation_id max_length: 48 options: [] required: true type: text-input variable: conversation_id - label: history max_length: 2000 options: [] required: false type: paragraph variable: history height: 142 id: '1741757820222' position: x: -439.64503575478136 y: -318.4878442557558 positionAbsolute: x: -439.64503575478136 y: -318.4878442557558 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: context: enabled: true variable_selector: - '1741757820222' - query default_value: - key: text type: string value: AI麻了,请等会儿再试吧。 desc: '' error_strategy: default-value model: completion_params: {} mode: chat name: Doubao-1.5-lite-32k provider: langgenius/volcengine_maas/volcengine_maas prompt_template: - id: a0ca8dab-8a7b-45c5-9c06-0c814fc9f278 role: system text: "\n你是一个智能助手,负责分类聊天消息,并输出 **JSON 结构** 方便下游处理。你需要按照以下类别分类:\n\ 1. 日常闲聊 (smalltalk)\n2. 兴趣讨论 (discussion)\n3. 求助与解答 (help)\n4. 通知与公告 (announcement)\n\ 5. 交易与推广 (trade)\n6. 玩梗与调侃 (banter) —— 请过滤掉,并返回(不要用JSON格式) 哎呀,有没有什么其他我可以帮你的?\n\ 7.骂人与攻击(attack) —— 请过滤掉,并返回(不要用JSON格式) 哎呀,有没有什么其他我可以帮你的?\n\n**规则**\n\ - 仅返回 **有价值的信息**,调侃或无意义内容请过滤,请直接返回内容 \" 哎呀,有没有什么其他我可以帮你的?\"。\n- 优先保留 **求助类问题**(category\ \ = \"help\")。\n- 允许 AI 评估 **分类置信度** (`\"confidence\"`,范围 0-1)。\n- **输出\ \ JSON 格式**,字段如下:\n ```json\n {\n \"category\": \"help\",\n \"\ confidence\": 0.9,\n \"message\": \"谁知道怎么解决这个数学难题?\",\n \"ignore\"\ : false\n }\n历史对话:{{#1741757820222.history#}}" - id: 8476bf50-1831-4f52-ba0d-4fd120212da3 role: user text: ' {{#1741757820222.query#}}' selected: false title: 问题分类型 type: llm variables: [] vision: enabled: false height: 126 id: '1741757831362' position: x: 378.3806241712301 y: 266.59479341998815 positionAbsolute: x: 378.3806241712301 y: 266.59479341998815 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1741757831362' - text variable: text selected: false title: 直接回复 type: end height: 90 id: '1741757948811' position: x: 1073 y: 947.7763780687013 positionAbsolute: x: 1073 y: 947.7763780687013 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: cases: - case_id: e6991825-87c0-4f41-8894-5addb98db6cf conditions: - comparison_operator: contains id: e7a00c21-3098-480c-85c6-ed502620c5e7 value: smalltalk varType: string variable_selector: - '1741757831362' - text id: e6991825-87c0-4f41-8894-5addb98db6cf logical_operator: and - case_id: 7b925cbf-b6ab-4267-bb4b-529de22b718f conditions: - comparison_operator: contains id: 7f78a2cc-c246-4f36-bc89-16ae32759044 value: discussion varType: string variable_selector: - '1741757831362' - text id: 7b925cbf-b6ab-4267-bb4b-529de22b718f logical_operator: and - case_id: ff061c52-e20a-4193-8f85-24c274fff897 conditions: - comparison_operator: contains id: 70aa42ea-ba84-4cc4-9cfb-a06ebf0fe782 value: help varType: string variable_selector: - '1741757831362' - text id: ff061c52-e20a-4193-8f85-24c274fff897 logical_operator: and - case_id: f4d1d97d-1147-43ca-9586-b681d836c6f3 conditions: - comparison_operator: contains id: b50a538b-f572-4e46-8a3c-7a46d75d2c20 value: announcement varType: string variable_selector: - '1741757831362' - text id: f4d1d97d-1147-43ca-9586-b681d836c6f3 logical_operator: and - case_id: 30fe5266-8ecd-4def-8fc7-80e8a01e2585 conditions: - comparison_operator: contains id: eb15ceb9-9b25-42b1-88a6-7284b23a804b value: trade varType: string variable_selector: - '1741757831362' - text id: 30fe5266-8ecd-4def-8fc7-80e8a01e2585 logical_operator: and - case_id: 8b298a13-eefa-4e9a-a299-8cae38a8702d conditions: - comparison_operator: contains id: e29361e4-3325-4537-84ce-3216d4c307b0 value: banter varType: string variable_selector: - '1741757831362' - text id: 8b298a13-eefa-4e9a-a299-8cae38a8702d logical_operator: and - case_id: 4225ad3d-9ce2-45d5-a311-bd729f132044 conditions: - comparison_operator: contains id: f3690464-620f-453e-a492-eb7f93816360 value: attack varType: string variable_selector: - '1741757831362' - text id: 4225ad3d-9ce2-45d5-a311-bd729f132044 logical_operator: and desc: '' selected: false title: 条件分支 type: if-else height: 414 id: '1741758050335' position: x: 694.6587788983721 y: 266.59479341998815 positionAbsolute: x: 694.6587788983721 y: 266.59479341998815 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: context: enabled: true variable_selector: - '1741757831362' - text desc: '' error_strategy: fail-branch model: completion_params: {} mode: chat name: Doubao-1.5-pro-256k provider: langgenius/volcengine_maas/volcengine_maas prompt_template: - id: 21344fc6-b25b-44e1-b9b1-795b327be15f role: system text: ' 你是一个 **智能聊天伙伴**,负责与用户进行轻松的日常对话。请遵循以下规则: - **友好互动**:用轻松幽默的方式回复用户。 - **提供话题延展**,引导对话继续。 - **不过度 AI 化**,尽量像真人一样自然聊天。 **示例** <输入> "今天天气真好啊!" <输出> "是啊!阳光明媚的日子总让人心情舒畅~有什么计划去享受美好天气吗?😃" 历史对话内容:{{#1741757820222.history#}}' - id: b3f2b557-74d6-49c7-92b8-b3b847c70ea8 role: user text: '{{#1741757831362.text#}}' selected: false title: 闲聊 Agent(smalltalk) type: llm variables: [] vision: enabled: false height: 126 id: '1741847191740' position: x: 1073 y: 196.82418764005286 positionAbsolute: x: 1073 y: 196.82418764005286 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: context: enabled: true variable_selector: - '1741757831362' - text desc: '' error_strategy: fail-branch model: completion_params: {} mode: chat name: Doubao-1.5-pro-256k provider: langgenius/volcengine_maas/volcengine_maas prompt_template: - id: 217fd05d-8b39-4d7f-97b6-46724aa76c28 role: system text: ' 你是一个 **热情且知识丰富的兴趣讨论 AI**,负责促进有趣的对话,并提供相关资源。请遵循以下规则: - **共鸣**:理解用户兴趣,表达赞同或提供新观点。 - **推荐**:如果话题涉及电影、游戏、书籍等,提供 **高质量推荐**。 - **引导讨论**:提出 **开放式问题**,鼓励用户继续讨论。 **示例** <输入> "我刚发现了一个超好玩的游戏,有人想一起玩吗?" <输出> "听起来很棒!是什么类型的游戏?最近热门的多人游戏有《Apex 英雄》和《Valorant》,你觉得如何?🤔" 历史对话内容:{{#1741757820222.history#}}' - id: 311e5a8a-f934-497f-ba65-c317c20b140e role: user text: '{{#1741757831362.text#}}' selected: false title: 兴趣讨论 Agent(discussion) type: llm variables: [] vision: enabled: false height: 126 id: '1741847247301' position: x: 1073 y: 336.5204026552458 positionAbsolute: x: 1073 y: 336.5204026552458 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: context: enabled: true variable_selector: - '1741757831362' - text desc: '' error_strategy: fail-branch model: completion_params: {} mode: chat name: Doubao-1.5-pro-256k provider: langgenius/volcengine_maas/volcengine_maas prompt_template: - id: 323ff5c5-0a68-4c25-8f36-24da0cc8b794 role: system text: ' 你是一个专业的客服 AI 助手,负责解答用户的问题,并提供精准、可靠的帮助。请遵循以下规则: - 结合知识库,提供最准确的答案。 - 如果问题涉及技术内容,提供 **详细步骤**。 - 如果问题涉及推荐(如产品、工具),请给出 **2-3 个合理选项** 并说明优缺点。 - 如果问题超出你的知识范围,请礼貌告知用户,并推荐合适的查询途径。 **示例** <输入> "谁知道怎么解决这个数学难题?" <输出> "这个数学问题可能涉及微积分。你可以尝试: 1. 检查是否符合 **基本微积分公式**(如导数、积分)。 2. 使用 **Wolfram Alpha** 这类工具计算。 3. 如果仍有疑问,可以参考《高等数学》教材或咨询老师。 希望这些建议对你有帮助!😊" 历史对话内容:{{#1741757820222.history#}}' - id: bb38b792-3277-4543-81e4-c6291a7c512e role: user text: '{{#1741757831362.text#}}' selected: false title: 客服 Agent(求助与解答 | help) type: llm variables: [] vision: enabled: false height: 126 id: '1741847298035' position: x: 1073 y: 492.60597073512747 positionAbsolute: x: 1073 y: 492.60597073512747 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: context: enabled: true variable_selector: - '1741757831362' - text desc: '' error_strategy: fail-branch model: completion_params: {} mode: chat name: Doubao-1.5-lite-32k provider: langgenius/volcengine_maas/volcengine_maas prompt_template: - id: 2db24389-d563-467c-be32-51db7d141848 role: system text: ' 你是一个 **智能公告管理 AI**,负责解析和管理群公告信息。请按照以下规则处理: - **提取关键信息**(日期、时间、事件)。 - **格式化公告**,便于存档和发送通知。 - **检查完整性**,确保没有遗漏重要内容。 **示例** <输入> "明天下午 3 点公司开会,请大家准时参加。" <输出> "📢 **公告通知** - 事件:公司会议 - 时间:明天下午 3:00 - 备注:请大家准时参加!" 历史对话内容:{{#1741757820222.history#}}' - id: 0528dcf3-791d-490b-bb3b-0fde3e28f55f role: user text: '{{#1741757831362.text#}}' selected: false title: 公告管理 Agent(announcement) type: llm variables: [] vision: enabled: false height: 126 id: '1741847430222' position: x: 1080 y: 633.5668024807027 positionAbsolute: x: 1080 y: 633.5668024807027 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: context: enabled: true variable_selector: - '1741757831362' - text desc: '' error_strategy: fail-branch model: completion_params: {} mode: chat name: Doubao-1.5-lite-32k provider: langgenius/volcengine_maas/volcengine_maas prompt_template: - id: 1728a2c9-9e93-4863-bf9e-fa6ba8666443 role: system text: ' 你是一个 **交易监测 AI**,负责识别群聊中的交易信息,并规范交易行为。请遵循以下规则: - **提取商品信息**(名称、价格、交易方式)。 - **提醒用户遵守群规**,如果涉及违规内容,标记并警告。 - **如果是普通推荐**(如“这款键盘不错”),不做处理。 **示例** <输入> "我这里有一台二手 iPhone 12,9 成新,1500 出,有没有人要?" <输出> "📢 **交易信息** - 商品:二手 iPhone 12 - 状况:9 成新 - 价格:¥1500 - 方式:个人交易 ⚠️ 请确保交易安全,避免被骗!" 历史对话内容:{{#1741757820222.history#}}' - id: 24e4c10f-9a0a-4c0c-a005-e07205950e8b role: user text: '{{#1741757831362.text#}}' selected: false title: 交易监测 Agent(trade) type: llm variables: [] vision: enabled: false height: 126 id: '1741847461222' position: x: 1080 y: 792.5368265261151 positionAbsolute: x: 1080 y: 792.5368265261151 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1741847461222' - text variable: text selected: false title: 结束 2 type: end height: 90 id: '1741847490149' position: x: 1482.788058529745 y: 753.821590475163 positionAbsolute: x: 1482.788058529745 y: 753.821590475163 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1741847430222' - text variable: text selected: false title: 结束 3 type: end height: 90 id: '1741847554058' position: x: 1482.788058529745 y: 616.2075275465185 positionAbsolute: x: 1482.788058529745 y: 616.2075275465185 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1741847298035' - text variable: text selected: false title: 结束 4 type: end height: 90 id: '1741847565036' position: x: 1482.788058529745 y: 499.49816086510964 positionAbsolute: x: 1482.788058529745 y: 499.49816086510964 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1741847247301' - text variable: text selected: false title: 结束 5 type: end height: 90 id: '1741847571821' position: x: 1482.788058529745 y: 385.3903509950919 positionAbsolute: x: 1482.788058529745 y: 385.3903509950919 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1741847191740' - text variable: text selected: false title: 结束 6 type: end height: 90 id: '1741847579937' position: x: 1482.788058529745 y: 266.59479341998815 positionAbsolute: x: 1482.788058529745 y: 266.59479341998815 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: context: enabled: true variable_selector: - '1741757831362' - text desc: '' model: completion_params: {} mode: chat name: Doubao-1.5-pro-256k provider: langgenius/volcengine_maas/volcengine_maas prompt_template: - id: 89e3d8d9-013e-4eee-ae91-ce9c5e602fa9 role: system text: ' 你是一个专业的客服 AI 助手,负责解答用户的问题,并提供精准、可靠的帮助。请遵循以下规则: - 结合知识库,提供最准确的答案。 - 如果问题涉及技术内容,提供 **详细步骤**。 - 如果问题涉及推荐(如产品、工具),请给出 **2-3 个合理选项** 并说明优缺点。 - 如果问题超出你的知识范围,请礼貌告知用户,并推荐合适的查询途径。 **示例** <输入> "谁知道怎么解决这个数学难题?" <输出> "这个数学问题可能涉及微积分。你可以尝试: 1. 检查是否符合 **基本微积分公式**(如导数、积分)。 2. 使用 **Wolfram Alpha** 这类工具计算。 3. 如果仍有疑问,可以参考《高等数学》教材或咨询老师。 希望这些建议对你有帮助!😊" ' - id: 1d48fa85-495e-4f58-9fb0-1d52bd55b814 role: user text: '{{#1741757831362.text#}}' selected: false title: 异常分支 type: llm variables: [] vision: enabled: false height: 90 id: '1743138354162' position: x: 1588.7721288063676 y: -1041.044811791538 positionAbsolute: x: 1588.7721288063676 y: -1041.044811791538 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1743138354162' - text variable: text selected: false title: 结束 7 type: end height: 90 id: '1743138451375' position: x: 1938.2638565432708 y: -1041.044811791538 positionAbsolute: x: 1938.2638565432708 y: -1041.044811791538 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: cases: - case_id: 'true' conditions: - comparison_operator: start with id: bdecf891-e92c-4b8a-8d41-0af48188da97 value: 黑丝 varType: string variable_selector: - '1741757820222' - query id: 'true' logical_operator: and - case_id: 0914de7f-4420-48db-b325-89653be67384 conditions: - comparison_operator: start with id: aac2d0aa-6942-497b-944c-7110b957e8fa value: 白丝 varType: string variable_selector: - '1741757820222' - query id: 0914de7f-4420-48db-b325-89653be67384 logical_operator: and - case_id: cdcf8439-f940-48b8-9044-7ce9030baab2 conditions: - comparison_operator: start with id: d9f7bc9b-b245-4ff1-b962-01dbbfae2dd8 value: 二次元 varType: string variable_selector: - '1741757820222' - query id: cdcf8439-f940-48b8-9044-7ce9030baab2 logical_operator: and - case_id: de724bb6-0021-4843-9bc5-d268efff77b7 conditions: - comparison_operator: start with id: bb61ef53-93ab-4d11-9a53-d2a098b91c58 value: 美女视频 varType: string variable_selector: - '1741757820222' - query id: de724bb6-0021-4843-9bc5-d268efff77b7 logical_operator: and - case_id: 5bd8b2af-c696-46b5-b019-ef7cd9633335 conditions: - comparison_operator: start with id: 0daa830a-b77c-4b9c-8353-b742e6a321be value: 原神 varType: string variable_selector: - '1741757820222' - query id: 5bd8b2af-c696-46b5-b019-ef7cd9633335 logical_operator: and desc: '' selected: true title: 条件分支 2 type: if-else height: 318 id: '1744007822722' position: x: -0.04917086873626886 y: -351.5687656610085 positionAbsolute: x: -0.04917086873626886 y: -351.5687656610085 selected: true sourcePosition: right targetPosition: left type: custom width: 244 - data: authorization: config: null type: no-auth body: data: [] type: none desc: '' error_strategy: fail-branch headers: '' method: get params: '' retry_config: max_retries: 3 retry_enabled: true retry_interval: 100 selected: false timeout: max_connect_timeout: 0 max_read_timeout: 0 max_write_timeout: 0 title: HTTP 请求-黑丝 type: http-request url: https://v2.xxapi.cn/api/heisi?return=json variables: [] height: 172 id: '1744007871917' position: x: 524.0490002143515 y: -507.2412213157123 positionAbsolute: x: 524.0490002143515 y: -507.2412213157123 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "def main(body: str) -> dict:\n import json\n # 将字符串化的 JSON 解析为\ \ Python 字典\n body_data = json.loads(body)\n # 提取 data 字段中的 URL\n\ \ url = body_data[\"data\"]\n\n # 返回结果\n return {\"result\": url,\"\ type\":\"image\"}" code_language: python3 desc: '' outputs: result: children: null type: string type: children: null type: string selected: false title: 代码执行 type: code variables: - value_selector: - '1744007871917' - body variable: body height: 54 id: '1744009806175' position: x: 1204.0258697726179 y: -526.5143510189262 positionAbsolute: x: 1204.0258697726179 y: -526.5143510189262 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '1744009806175' - result variable: result - value_selector: - '1744009806175' - type variable: type selected: false title: 结束 8 type: end height: 116 id: '1744010869703' position: x: 1597.3629462138392 y: -526.5143510189262 positionAbsolute: x: 1597.3629462138392 y: -526.5143510189262 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: authorization: config: null type: no-auth body: data: [] type: none desc: '' error_strategy: fail-branch headers: '' method: get params: '' retry_config: max_retries: 3 retry_enabled: true retry_interval: 100 selected: false timeout: max_connect_timeout: 0 max_read_timeout: 0 max_write_timeout: 0 title: HTTP 请求-白丝 type: http-request url: https://v2.xxapi.cn/api/baisi?return=json variables: [] height: 172 id: '17440128287390' position: x: 519.8964986138806 y: -326.40489172039315 positionAbsolute: x: 519.8964986138806 y: -326.40489172039315 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: authorization: config: null type: no-auth body: data: [] type: none desc: '' error_strategy: fail-branch headers: '' method: get params: '' retry_config: max_retries: 3 retry_enabled: true retry_interval: 100 selected: false timeout: max_connect_timeout: 0 max_read_timeout: 0 max_write_timeout: 0 title: HTTP 请求-二次元 type: http-request url: https://v2.xxapi.cn/api/randomAcgPic?type=wap&return=json variables: [] height: 188 id: '17440135143330' position: x: 519.8964986138806 y: -712.771874894819 positionAbsolute: x: 519.8964986138806 y: -712.771874894819 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "def main(body: str) -> dict:\n import json\n # 将字符串化的 JSON 解析为\ \ Python 字典\n body_data = json.loads(body)\n # 提取 data 字段中的 URL\n\ \ url = body_data[\"data\"]\n\n # 返回结果\n return {\"result\": url,\"\ type\":\"image\"}" code_language: python3 desc: '' outputs: result: children: null type: string type: children: null type: string selected: false title: 代码执行 (1) type: code variables: - value_selector: - '17440135143330' - body variable: body height: 54 id: '17440135682740' position: x: 1189.5627497050002 y: -641.2297324184665 positionAbsolute: x: 1189.5627497050002 y: -641.2297324184665 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "def main(body: str) -> dict:\n import json\n # 将字符串化的 JSON 解析为\ \ Python 字典\n body_data = json.loads(body)\n # 提取 data 字段中的 URL\n\ \ url = body_data[\"data\"]\n\n # 返回结果\n return {\"result\": url,\"\ type\":\"image\"}" code_language: python3 desc: '' outputs: result: children: null type: string type: children: null type: string selected: false title: 代码执行 (1) type: code variables: - value_selector: - '17440128287390' - body variable: body height: 54 id: '17440136161780' position: x: 1189.5627497050002 y: -356.0145570277082 positionAbsolute: x: 1189.5627497050002 y: -356.0145570277082 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '17440136161780' - result variable: result - value_selector: - '17440136161780' - type variable: type selected: false title: 结束 8 (1) type: end height: 116 id: '17440136338580' position: x: 1577.3129191263706 y: -363.8221479657159 positionAbsolute: x: 1577.3129191263706 y: -363.8221479657159 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '17440135682740' - result variable: result - value_selector: - '17440135682740' - type variable: type selected: false title: 结束 8 (1) type: end height: 116 id: '17440136508740' position: x: 1588.7721288063676 y: -690.835167192917 positionAbsolute: x: 1588.7721288063676 y: -690.835167192917 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: authorization: config: null type: no-auth body: data: [] type: none desc: '' error_strategy: fail-branch headers: '' method: get params: '' retry_config: max_retries: 3 retry_enabled: true retry_interval: 100 selected: false timeout: max_connect_timeout: 0 max_read_timeout: 0 max_write_timeout: 0 title: HTTP 请求 -美女视频 type: http-request url: https://api.52vmy.cn/api/video/girl?type=json variables: [] height: 172 id: '1744014048030' position: x: 519.8964986138806 y: -130.5155765692639 positionAbsolute: x: 519.8964986138806 y: -130.5155765692639 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "def main(body: str) -> dict:\n import json\n try:\n response\ \ = json.loads(body)\n outer_body = response[\"data\"]\n if\ \ not outer_body:\n return {\"result\": \"错误: 外层 body 为空\", \"\ type\": \"video\"}\n\n # outer_body 已经是 dict,不需要再 json.loads\n \ \ video_url = outer_body.get(\"video\", \"错误: data 字段缺失\")\n \ \ return {\"result\": video_url, \"type\": \"video\"}\n except json.JSONDecodeError:\n\ \ return {\"result\": \"错误: JSON 解析失败\", \"type\": \"video\"}\n \ \ except Exception as e:\n return {\"result\": f\"未知错误: {str(e)}\"\ , \"type\": \"video\"}" code_language: python3 desc: '' outputs: result: children: null type: string type: children: null type: string selected: false title: 代码执行 (2) type: code variables: - value_selector: - '1744014048030' - body variable: body height: 54 id: '17440140919180' position: x: 1189.5627497050002 y: -194.27839402914418 positionAbsolute: x: 1189.5627497050002 y: -194.27839402914418 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '17440140919180' - result variable: result - value_selector: - '17440140919180' - type variable: type selected: false title: 结束 8 (2) type: end height: 116 id: '17440142090910' position: x: 1588.7721288063676 y: -203.51494940455444 positionAbsolute: x: 1588.7721288063676 y: -203.51494940455444 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: authorization: config: null type: no-auth body: data: [] type: none desc: '' error_strategy: fail-branch headers: '' method: get params: '' retry_config: max_retries: 3 retry_enabled: true retry_interval: 100 selected: false timeout: max_connect_timeout: 0 max_read_timeout: 0 max_write_timeout: 0 title: HTTP 请求 -原神 type: http-request url: https://v2.xxapi.cn/api/yscos?type=json variables: [] height: 172 id: '17440182985220' position: x: 519.8964986138806 y: 65.48942385713255 positionAbsolute: x: 519.8964986138806 y: 65.48942385713255 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: code: "def main(body: str) -> dict:\n import json\n # 将字符串化的 JSON 解析为\ \ Python 字典\n body_data = json.loads(body)\n # 提取 data 字段中的 URL\n\ \ url = body_data[\"data\"]\n\n # 返回结果\n return {\"result\": url,\"\ type\":\"image\"}" code_language: python3 desc: '' outputs: result: children: null type: string type: children: null type: string selected: false title: 代码执行 (2) type: code variables: - value_selector: - '17440182985220' - body variable: body height: 54 id: '17440183564480' position: x: 1148.009249038595 y: 14.649270960639086 positionAbsolute: x: 1148.009249038595 y: 14.649270960639086 selected: false sourcePosition: right targetPosition: left type: custom width: 244 - data: desc: '' outputs: - value_selector: - '17440183564480' - result variable: result - value_selector: - '17440183564480' - type variable: type selected: false title: 结束 8 (3) type: end height: 116 id: '17440183674890' position: x: 1597.3629462138392 y: -27.13715607757483 positionAbsolute: x: 1597.3629462138392 y: -27.13715607757483 selected: false sourcePosition: right targetPosition: left type: custom width: 244 viewport: x: 385.64183205399127 y: 511.586203272804 zoom: 0.5743491774985183