ComfyUI > Nodes > ComfyUI-PromptUtilities

ComfyUI Extension: ComfyUI-PromptUtilities

Repo Name

ComfyUI-PromptUtilities

Author
nkchocoai (Account age: 825 days)
Nodes
View all nodes(13)
Latest Updated
2025-03-30
Github Stars
0.03K

How to Install ComfyUI-PromptUtilities

Install this extension via the ComfyUI Manager by searching for ComfyUI-PromptUtilities
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-PromptUtilities 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-PromptUtilities Description

ComfyUI-PromptUtilities enhances ComfyUI with nodes like Format String, Join String List, Load Preset, and Const String, providing advanced tools for efficient prompt management and customization.

ComfyUI-PromptUtilities Introduction

ComfyUI-PromptUtilities is an extension designed to enhance your experience with ComfyUI by providing a set of custom nodes that simplify and enrich prompt management. This extension is particularly useful for AI artists who want to streamline their workflow when working with text prompts. It offers a variety of tools to manipulate and format text strings, load and manage prompt presets, and apply randomization to prompts. By using ComfyUI-PromptUtilities, you can save time and reduce errors in prompt creation, allowing you to focus more on the creative aspects of your work.

How ComfyUI-PromptUtilities Works

At its core, ComfyUI-PromptUtilities operates by adding custom nodes to ComfyUI, a user interface for managing AI models and workflows. These nodes are like building blocks that you can connect to perform specific tasks related to text prompts. For example, you can join multiple strings into one, format strings by embedding variables, or load predefined prompts from a file. The extension also supports randomization, allowing you to introduce variability into your prompts effortlessly. By integrating these nodes into your workflow, you can automate repetitive tasks and ensure consistency across your projects.

ComfyUI-PromptUtilities Features

Join String List (Experimental)

This feature allows you to combine multiple input strings (argN) into a single string using a specified separator. It's useful for creating complex prompts from simpler components. Note that this feature is experimental and may contain bugs.

Format String (Experimental)

With this node, you can format a string by embedding values into a template. For instance, placeholders like [N] in your template will be replaced with the corresponding argN values. This is particularly handy for dynamically generating prompts based on variable inputs. Like the Join String List, this feature is also experimental.

Load Preset

This node lets you load a prompt from a preset file, which is a CSV file stored in the presets directory. It's compatible with some YAML files from the Easy Prompt Selector, making it versatile for different prompt management needs.

Load Preset (Advanced)

An advanced version of the Load Preset node, this feature allows you to load not just the prompt but also additional parameters like positive and negative prompts, LoRA settings, and more from JSON files in the advanced_presets directory.

Random Preset / Random Preset (Advanced) (Experimental)

These nodes randomly select a preset from a specified file, adding an element of surprise and creativity to your workflow. As with other experimental features, there may be some bugs.

Const String

This simple node outputs a constant string that you input, useful for adding fixed text to your prompts.

Const String (multi line)

Similar to Const String, but allows for multi-line input, giving you more flexibility in defining your prompts.

Prompt Weight

This node lets you assign weights to different parts of your prompt, which can influence how the AI model interprets and prioritizes different elements of the prompt.

Round Prompt Weight

This feature rounds the weights assigned to prompts, ensuring they are within a manageable range.

Replace or Insert Tag

This node allows you to search for specific tags in your prompt and either replace them or insert new values after them, based on the mode you select.

Sample Tags

You can use this node to randomly select a specified number of tags from a list, which is useful for generating varied prompts.

Sample Tags With Weight

An extension of the Sample Tags feature, this node not only selects tags but also assigns random weights to them, adding another layer of variability.

Troubleshooting ComfyUI-PromptUtilities

If you encounter issues while using ComfyUI-PromptUtilities, here are some common problems and solutions:

  • Node Not Working: Ensure that you have the latest version of ComfyUI and the extension. Some features are experimental and may have bugs.
  • Unexpected Output: Double-check your input values and ensure they match the expected format for each node.
  • Installation Issues: Make sure the extension is correctly cloned into the custom_nodes directory of your ComfyUI installation.

Learn More about ComfyUI-PromptUtilities

To further explore the capabilities of ComfyUI-PromptUtilities, consider checking out additional resources such as tutorials and community forums. These can provide valuable insights and tips for maximizing the potential of this extension in your creative projects.

ComfyUI-PromptUtilities Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.