ComfyUI > Nodes > ComfyUI-ListHelper > PromptListGenerator

ComfyUI Node: PromptListGenerator

Class Name

PromptListGenerator

Category
ListHelper
Author
dseditor (Account age: 1543days)
Extension
ComfyUI-ListHelper
Latest Updated
2025-12-09
Github Stars
0.05K

How to Install ComfyUI-ListHelper

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

PromptListGenerator Description

Text prompt segmentation for AI artists, enabling dynamic and varied outputs.

PromptListGenerator:

The PromptListGenerator is a versatile node designed to facilitate the creation and manipulation of text prompts by splitting a given text into a list of prompts based on specified delimiters. This node is particularly beneficial for AI artists who need to generate multiple prompts from a single text input, allowing for more dynamic and varied outputs in their creative processes. By leveraging this node, you can efficiently manage and organize text data, making it easier to experiment with different prompt combinations and enhance the creative workflow. The node's primary function is to parse and divide text into manageable segments, which can then be used individually or in combination to generate diverse artistic outputs.

PromptListGenerator Input Parameters:

text

The text parameter is a multiline string input that serves as the source text to be split into a list of prompts. This parameter is crucial as it contains the content that will be divided based on the specified delimiter. The input text can be as simple or complex as needed, allowing for flexibility in the types of prompts you wish to generate.

delimiter

The delimiter parameter is a string that defines the character or sequence of characters used to split the input text into separate prompts. By default, the delimiter is set to a comma (,), but it can be customized to any character or string that suits your needs. This parameter is essential for determining how the text is segmented, impacting the number and content of the resulting prompts.

use_regex

The use_regex parameter is a boolean option that, when enabled, allows the delimiter to be interpreted as a regular expression. This provides advanced users with the ability to use complex patterns for text splitting, offering greater control over how the text is divided. By default, this option is set to False, meaning the delimiter is treated as a plain string.

keep_delimiter

The keep_delimiter parameter is a boolean option that determines whether the delimiter should be retained in the resulting list of prompts. When set to True, the delimiter is included in each segment, which can be useful for maintaining context or structure in the prompts. By default, this option is set to False, meaning the delimiter is removed from the output.

start_index

The start_index parameter is an integer that specifies the starting index for numbering the generated prompts. This parameter is useful for organizing and referencing prompts, especially when dealing with large datasets. The default value is 0, but it can be adjusted to any integer to suit your organizational preferences.

PromptListGenerator Output Parameters:

result

The result output parameter is a list of strings, each representing a segment of the original text split according to the specified delimiter. This output is crucial for further processing or use in creative applications, as it provides the individual prompts that can be fed into other nodes or systems for generating artistic outputs. The list format allows for easy manipulation and integration into various workflows.

PromptListGenerator Usage Tips:

  • Experiment with different delimiters to see how they affect the segmentation of your text. This can lead to unexpected and creative prompt combinations.
  • Use the use_regex option to leverage regular expressions for more complex text splitting, which can be particularly useful for advanced text manipulation tasks.
  • Consider enabling the keep_delimiter option if the context provided by the delimiter is important for the interpretation of the prompts.

PromptListGenerator Common Errors and Solutions:

Invalid delimiter

  • Explanation: The delimiter provided is not recognized or causes an error during text splitting.
  • Solution: Ensure that the delimiter is a valid string or regular expression. If using use_regex, verify that the regular expression is correctly formatted.

Empty text input

  • Explanation: The input text is empty, resulting in no prompts being generated.
  • Solution: Provide a non-empty string as the input text to ensure that the node can generate prompts.

Incorrect use of regex

  • Explanation: The use_regex option is enabled, but the delimiter is not a valid regular expression.
  • Solution: Double-check the regular expression syntax and ensure it is correctly formatted for the intended text splitting.

PromptListGenerator Related Nodes

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