2026/4/18 11:43:10
网站建设
项目流程
建美食网站有哪些原因,应价交易系统网站开发,免费做计算机题的网站,解释微信微网站摘要
本文介绍了一个基于Coze平台的完整工作流程#xff0c;包含四个关键节点#xff1a;1)通过触发器启动流程#xff1b;2)使用Doubao-Seedream-4.0进行数据处理#xff1b;3)利用LLM将结果转换为Markdown格式#xff1b;4)最终输出结果。工作流支持图片/文本输入…摘要本文介绍了一个基于Coze平台的完整工作流程包含四个关键节点1)通过触发器启动流程2)使用Doubao-Seedream-4.0进行数据处理3)利用LLM将结果转换为Markdown格式4)最终输出结果。工作流支持图片/文本输入通过OCR和内容优化处理后生成图文内容最终以结构化Markdown格式呈现。文中提供了YAML配置文件示例并强调合理设置触发器和统一输出格式的重要性以提高自动化处理效率。完整工作流Start上传图片 / 文本 ↓ LLM OCR 文字优化 ↓ generateImageDoubao-Seedream-4.0 ↓ LLM Markdown 文章生成 ↓ Answer展示 Markdown在这个节点中我们开始创建一个新的工作流。首先需要选择工作流的名称和描述为整个流程设定一个清晰的目标。提示命名规范可以帮助团队更快理解工作流的用途。第一步节点配置触发器配置触发器是工作流的关键步骤。触发器决定了何时启动工作流例如新文件上传、定时任务或手动执行。优化建议合理选择触发器类型可以避免不必要的资源浪费。第二步节点添加处理逻辑在此节点中使用Doubao-Seedream-4.0处理数据例如生成内容、分析信息或进行自动化操作。提示可以通过 Coze 插件增强节点的智能处理能力提高效率。第三步节点 LLM 处理成 markdown 格式此节点负责将处理后的结果输出到指定位置如数据库、文件系统或通知系统。优化建议确保输出格式统一并根据需要选择合适的输出渠道。第四步节点结果输出输出内复。完整的 yaml 另存.yaml 导入app: description:icon: icon_background:#FFEAD5mode: advanced-chat name: Coze Text2Image Plugin Test use_icon_as_answer_icon:falsedependencies: - current_identifier: null type: marketplace value: marketplace_plugin_unique_identifier: langgenius/ollama:0.1.1f3a8b649027d1bd13e67df96f3463a601c16628da4292705528d28d97d96b263 version: null kind: app version:0.5.0 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:falsefileUploadConfig: audio_file_size_limit:50batch_count_limit:5file_size_limit:15image_file_batch_limit:10image_file_size_limit:10single_chunk_attachment_limit:10video_file_size_limit:100workflow_file_upload_limit:10image: enabled:falsenumber_limits:3transfer_methods: - local_file - remote_url number_limits:3opening_statement:retriever_resource: enabled:truesensitive_word_avoidance: enabled:falsespeech_to_text: enabled:falsesuggested_questions:[]suggested_questions_after_answer: enabled:falsetext_to_speech: enabled:falselanguage:voice:graph: edges: - data: isInLoop:falsesourceType: start targetType: llm id:1755656337314-source-1769495277758-target source:1755656337314sourceHandle:sourcetarget:1769495277758targetHandle: target type: custom zIndex:0- data: isInLoop:falsesourceType: llm targetType: tool id:1769495277758-source-1769480385192-target source:1769495277758sourceHandle:sourcetarget:1769480385192targetHandle: target type: custom zIndex:0- data: isInLoop:falsesourceType: tool targetType: llm id:1769480385192-source-1769496917956-target source:1769480385192sourceHandle:sourcetarget:1769496917956targetHandle: target type: custom zIndex:0- data: isInLoop:falsesourceType: llm targetType: answer id:1769496917956-source-1769495850925-target source:1769496917956sourceHandle:sourcetarget:1769495850925targetHandle: target type: custom zIndex:0nodes: - data: desc:selected:truetitle: Start type: start variables:[]height:73id:1755656337314position: x:80y:282positionAbsolute: x:80y:282selected:truesourcePosition: right targetPosition: left type: custom width:242- data: context: enabled:falsevariable_selector:[]model: completion_params: temperature:0.7mode: chat name: qwen2.5 provider: langgenius/ollama/ollama prompt_template: - id: 5eab9d56-5a08-44d9-ae08-abf4db6a79b7 role: system text:请从下面的{{#1769480385192.text#}}文本中提取出所有链接以 http:// 或 https:// 开头 然后将每个链接转换成 Markdown 图片格式显示 selected:falsestructured_output_enabled:truetitle: LLM2type: llm vision: enabled:falseheight:88id:1769496917956position: x:827.3613552326078y: -45.29221663684261 positionAbsolute: x:827.3613552326078y: -45.29221663684261 selected:falsesourcePosition: right targetPosition: left type: custom width:242- data: is_team_authorization:trueparamSchemas: - auto_generate: null default: null form: llm human_description: en_US:1表示单图2-10 表示生成一组相关联的图最大支持10数量越大速度越慢, default value is1ja_JP:1表示单图2-10 表示生成一组相关联的图最大支持10数量越大速度越慢, default value is1pt_BR:1表示单图2-10 表示生成一组相关联的图最大支持10数量越大速度越慢, default value is1zh_Hans:1表示单图2-10 表示生成一组相关联的图最大支持10数量越大速度越慢, default value is1label: en_US: max_images ja_JP: max_images pt_BR: max_images zh_Hans: max_images llm_description:1表示单图2-10 表示生成一组相关联的图最大支持10数量越大速度越慢, default value is1max: null min: null name: max_images options:[]placeholder: null precision: null required:falsescope: null template: null type: number - auto_generate: null default: null form: llm human_description: en_US: 用于生成图像的提示词支持中英文。 建议不超过300个汉字或600个英文单词。字数过多信息容易分散模型可能因此忽略细节只关注重点造成视图片缺失部分元素。 ja_JP: 用于生成图像的提示词支持中英文。 建议不超过300个汉字或600个英文单词。字数过多信息容易分散模型可能因此忽略细节只关注重点造成视图片缺失部分元素。 pt_BR: 用于生成图像的提示词支持中英文。 建议不超过300个汉字或600个英文单词。字数过多信息容易分散模型可能因此忽略细节只关注重点造成视图片缺失部分元素。 zh_Hans: 用于生成图像的提示词支持中英文。 建议不超过300个汉字或600个英文单词。字数过多信息容易分散模型可能因此忽略细节只关注重点造成视图片缺失部分元素。 label: en_US: prompt ja_JP: prompt pt_BR: prompt zh_Hans: prompt llm_description: 用于生成图像的提示词支持中英文。 建议不超过300个汉字或600个英文单词。字数过多信息容易分散模型可能因此忽略细节只关注重点造成视图片缺失部分元素。 max: null min: null name: prompt options:[]placeholder: null precision: null required:truescope: null template: null type: string - auto_generate: null default: null form: llm human_description: en_US: 参考图 ja_JP: 参考图 pt_BR: 参考图 zh_Hans: 参考图 input_schema: description: 参考图 items: type: string type: array label: en_US: reference_images ja_JP: reference_images pt_BR: reference_images zh_Hans: reference_images llm_description: 参考图 max: null min: null name: reference_images options:[]placeholder: null precision: null required:falsescope: null template: null type: array - auto_generate: null default: null form: llm human_description: en_US: 方式1指定生成图像的分辨率并在prompt中用自然语言描述图片宽高比、图片形状或图片用途最终由模型判断生成图片的大小。 可选值1K、2K、4K 方式2指定生成图像的宽高像素值 默认值2048x2048 取值范围[1024x1024, 4096x4096]ja_JP: 方式1指定生成图像的分辨率并在prompt中用自然语言描述图片宽高比、图片形状或图片用途最终由模型判断生成图片的大小。 可选值1K、2K、4K 方式2指定生成图像的宽高像素值 默认值2048x2048 取值范围[1024x1024, 4096x4096]pt_BR: 方式1指定生成图像的分辨率并在prompt中用自然语言描述图片宽高比、图片形状或图片用途最终由模型判断生成图片的大小。 可选值1K、2K、4K 方式2指定生成图像的宽高像素值 默认值2048x2048 取值范围[1024x1024, 4096x4096]zh_Hans: 方式1指定生成图像的分辨率并在prompt中用自然语言描述图片宽高比、图片形状或图片用途最终由模型判断生成图片的大小。 可选值1K、2K、4K 方式2指定生成图像的宽高像素值 默认值2048x2048 取值范围[1024x1024, 4096x4096]label: en_US: size ja_JP: size pt_BR: size zh_Hans: size llm_description: 方式1指定生成图像的分辨率并在prompt中用自然语言描述图片宽高比、图片形状或图片用途最终由模型判断生成图片的大小。 可选值1K、2K、4K 方式2指定生成图像的宽高像素值 默认值2048x2048 取值范围[1024x1024, 4096x4096]max: null min: null name: size options:[]placeholder: null precision: null required:falsescope: null template: null type: string - auto_generate: null default: null form: llm human_description: en_US: 是否在生成的图片中添加水印。, default value istrueja_JP: 是否在生成的图片中添加水印。, default value istruept_BR: 是否在生成的图片中添加水印。, default value istruezh_Hans: 是否在生成的图片中添加水印。, default value istruelabel: en_US: watermark ja_JP: watermark pt_BR: watermark zh_Hans: watermark llm_description: 是否在生成的图片中添加水印。, default value istruemax: null min: null name: watermark options:[]placeholder: null precision: null required:falsescope: null template: null type: boolean params: max_images:prompt:reference_images:size:watermark:plugin_id:plugin_unique_identifier:provider_icon: background:#FFEAD5content: grinning provider_id:7548380026094370867provider_name: Doubao-Seedream-4.0 provider_type: mcp selected:falsetitle: generateImage tool_configurations:{}tool_description: 图像生成 tool_label: generateImage tool_name: generateImage tool_node_version:2tool_parameters: max_images: type: constant value:1prompt: type: mixed value:{{#1769495277758.structured_output.final_prompt#}}reference_images: type: constant value: null size: type: mixed value: 4K watermark: type: constant value:falsetype: tool height:84id:1769480385192position: x:563.2831793982236y:134.86430588045243positionAbsolute: x:563.2831793982236y:134.86430588045243selected:falsesourcePosition: right targetPosition: left type: custom width:242- data: context: enabled:truevariable_selector: - sys - query model: completion_params: temperature:0.7mode: chat name: qwen2.5 provider: langgenius/ollama/ollama prompt_template: - id: 66068b00-39af-4f8a-b867-f37778cfc044 role: system text:你是电影概念设计师。 请将{{#sys.query#}}整理为适合图像生成的高质量提示词 强调构图、光影、风格不要输出解释说明。selected:falsestructured_output: schema: additionalProperties:falseproperties: final_prompt: type: string required:[]type: object structured_output_enabled:truetitle: LLM type: llm vision: enabled:falseheight:88id:1769495277758position: x:350y:230.5positionAbsolute: x:350y:230.5selected:falsesourcePosition: right targetPosition: left type: custom width:242- data: answer:{{#1769496917956.text#}}selected:falsetitle: 直接回复 type: answer variables:[]height:103id:1769495850925position: x:1157.3912308238766y:26.85806320276197positionAbsolute: x:1157.3912308238766y:26.85806320276197selected:falsesourcePosition: right targetPosition: left type: custom width:242viewport: x:138.16956106507644y:224.18796478896266zoom:0.387152569163775rag_pipeline_variables:[]图片生成工具请参考Dify 结合 Coze MCP 工具实现智能图片生成完整教程