ComfyUI Node: Prompt

Class Name

easy prompt

Category
EasyUse/Prompt
Author
yolain (Account age: 1341days)
Extension
ComfyUI Easy Use
Latest Updated
2024-06-25
Github Stars
0.51K

How to Install ComfyUI Easy Use

Install this extension via the ComfyUI Manager by searching for ComfyUI Easy Use
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Easy Use 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

Prompt Description

Streamline prompt generation for AI art creation, blending styles, text concatenation, and efficient handling of prompts.

Prompt:

The easy prompt node is designed to streamline the process of generating and managing prompts for AI art creation. It allows you to blend multiple styles, concatenate text, replace parts of prompts, and handle negative prompts efficiently. This node is particularly useful for artists who want to experiment with different styles and prompts without manually editing each one. By automating the prompt generation process, it saves time and ensures consistency across different art pieces. The node can handle both positive and negative prompts, making it versatile for various creative needs.

Prompt Input Parameters:

prompt

This is the main text input for the node. It accepts a string that can be multiline, allowing you to input complex prompts. The default value is "text". This parameter is crucial as it forms the base of the prompt that will be processed and manipulated by the node.

start_index

This integer parameter specifies the starting index for processing the prompt lines. It has a minimum value of 0 and a maximum value of 9999, with a default value of 0. This parameter helps in selecting a specific portion of the prompt to be processed, which can be useful for large prompts.

max_rows

This integer parameter defines the maximum number of rows to process from the starting index. It ranges from 1 to 9999, with a default value of 1000. This parameter is useful for controlling the length of the processed prompt, ensuring that only the relevant portion is used.

workflow_prompt

This is an optional hidden parameter that can be used to input a predefined workflow prompt. It is of type "PROMPT". This parameter is useful for advanced users who want to integrate the node into a larger workflow.

my_unique_id

This is another optional hidden parameter of type "UNIQUE_ID". It is used to uniquely identify the prompt within a workflow. This parameter is essential for managing multiple prompts and ensuring that they do not conflict with each other.

Prompt Output Parameters:

STRING

This output parameter returns the processed prompt as a string. It is the main output of the node and can be used directly in your AI art generation process. The string will include all the modifications and styles applied to the original prompt.

COMBO

This output parameter also returns the processed prompt but in a list format. This is useful for scenarios where you need to handle each line of the prompt separately. The list will contain each line of the processed prompt as a separate string.

Prompt Usage Tips:

  • Use the start_index and max_rows parameters to focus on specific parts of your prompt, especially when dealing with large texts.
  • Combine multiple styles by using the blending feature to create unique and diverse art pieces.
  • Utilize the workflow_prompt and my_unique_id parameters for advanced workflows to manage multiple prompts efficiently.

Prompt Common Errors and Solutions:

FileNotFoundError: [Errno 2] No such file or directory

  • Explanation: This error occurs when the specified style file is not found in the directory.
  • Solution: Ensure that the style file exists in the specified directory and that the file name is correct.

ValueError: No JSON object could be decoded

  • Explanation: This error occurs when the style file is not a valid JSON.
  • Solution: Check the style file for any syntax errors and ensure it is a valid JSON format.

KeyError: 'name'

  • Explanation: This error occurs when the expected key 'name' is not found in the style JSON.
  • Solution: Verify that the style JSON contains the 'name' key for each style entry.

IndexError: list index out of range

  • Explanation: This error occurs when the start_index or max_rows parameters are out of the valid range.
  • Solution: Ensure that the start_index and max_rows parameters are within the valid range of the prompt lines.

Prompt Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Easy Use
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.