ComfyUI > Nodes > comfyui_LLM_party > 工作流工具(workflow_tool)

ComfyUI Node: 工作流工具(workflow_tool)

Class Name

workflow_tool

Category
大模型派对(llm_party)/工具(tools)
Author
heshengtao (Account age: 2893days)
Extension
comfyui_LLM_party
Latest Updated
2024-06-22
Github Stars
0.12K

How to Install comfyui_LLM_party

Install this extension via the ComfyUI Manager by searching for comfyui_LLM_party
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui_LLM_party in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

工作流工具(workflow_tool) Description

Facilitates execution of specific workflows for AI artists, simplifying workflow management and automation.

工作流工具(workflow_tool):

The workflow_tool node is designed to facilitate the execution of specific workflows based on a given workflow name. This tool is particularly useful for AI artists who need to automate and streamline their creative processes by leveraging predefined workflows. By enabling or disabling the workflow execution, you can control whether the node performs its function or not. The primary goal of this node is to simplify the invocation of complex workflows, making it easier for you to manage and execute various tasks without delving into the technical details of each workflow.

工作流工具(workflow_tool) Input Parameters:

is_enable

This parameter determines whether the workflow execution is enabled or disabled. It accepts a boolean value, with True indicating that the workflow is enabled and False indicating that it is disabled. The default value is True. When set to False, the node will not perform any actions, effectively bypassing the workflow execution.

workflow_name

This parameter specifies the name of the workflow to be executed. It accepts a string value, which can be multiline, allowing you to input multiple workflow names if needed. The default value is "测试画画app.json,绘图app.json". This parameter is crucial as it directs the node to the specific workflow that needs to be executed, ensuring that the correct set of tasks is performed.

file_content

This optional parameter allows you to input the content of a file as a string. It is particularly useful when the workflow requires specific data to be processed. The parameter is forced to be an input if used.

image_input

This optional parameter accepts an image input, which can be used in workflows that involve image processing tasks. It allows you to provide an image directly to the workflow.

file_path

This optional parameter specifies the path to a file that the workflow might need to access. It accepts a string value representing the file path.

img_path

This optional parameter specifies the path to an image file that the workflow might need to access. It accepts a string value representing the image file path.

system_prompt

This optional parameter allows you to input a system prompt as a string. The default value is "你是一个强大的智能助手". This prompt can be used to guide the workflow's behavior or provide context for its operations.

user_prompt

This optional parameter allows you to input a user prompt as a string. This prompt can be used to provide additional instructions or context for the workflow.

positive_prompt

This optional parameter allows you to input a positive prompt as a string. It can be used to guide the workflow towards desired outcomes or behaviors.

negative_prompt

This optional parameter allows you to input a negative prompt as a string. It can be used to steer the workflow away from undesired outcomes or behaviors.

model_name

This optional parameter specifies the name of the model to be used in the workflow. It accepts a string value representing the model name.

workflow_path

This optional parameter specifies the path to the workflow file. It accepts a string value representing the workflow file path.

工作流工具(workflow_tool) Output Parameters:

images

This output parameter provides the images generated or processed by the workflow. It returns the images in a format that can be further used or displayed in your projects. The images are typically returned as a tensor or an array, depending on the workflow's operations.

text

This output parameter provides the textual output generated by the workflow. It returns a string value that can include messages, descriptions, or any other text produced during the workflow execution. This output is useful for understanding the results or for further processing in subsequent nodes.

工作流工具(workflow_tool) Usage Tips:

  • Ensure that the is_enable parameter is set to True to activate the workflow execution.
  • Use the workflow_name parameter to specify the exact workflow you want to execute, ensuring it matches the available workflows.
  • Provide relevant inputs such as file_content, image_input, and file_path to ensure the workflow has all the necessary data to perform its tasks effectively.
  • Utilize the system_prompt, user_prompt, positive_prompt, and negative_prompt parameters to guide the workflow's behavior and achieve desired outcomes.

工作流工具(workflow_tool) Common Errors and Solutions:

"Workflow not found"

  • Explanation: This error occurs when the specified workflow_name does not match any available workflows.
  • Solution: Verify that the workflow_name parameter is correctly spelled and matches the available workflows.

"Invalid image input"

  • Explanation: This error occurs when the provided image_input is not in a valid format or is corrupted.
  • Solution: Ensure that the image_input parameter is a valid image file and is not corrupted.

"File path not found"

  • Explanation: This error occurs when the specified file_path or img_path does not exist.
  • Solution: Verify that the file_path and img_path parameters are correctly specified and that the files exist at the given paths.

"Model name not specified"

  • Explanation: This error occurs when the model_name parameter is not provided, and the workflow requires a model to function.
  • Solution: Ensure that the model_name parameter is specified and matches the available models.

"Connection to server failed"

  • Explanation: This error occurs when the node fails to connect to the server for executing the workflow.
  • Solution: Check your network connection and ensure that the server address is correctly specified.

工作流工具(workflow_tool) Related Nodes

Go back to the extension to check out more related nodes.
comfyui_LLM_party
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.