ComfyUI > Nodes > COMFYUI_PROMPTMODELS > Selector de Prompts

ComfyUI Node: Selector de Prompts

Class Name

SelectorDePrompts

Category
Selectores Pro
Author
cdanielp (Account age: 0days)
Extension
COMFYUI_PROMPTMODELS
Latest Updated
2026-03-17
Github Stars
0.02K

How to Install COMFYUI_PROMPTMODELS

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

Selector de Prompts Description

SelectorDePrompts manages and combines active text prompts based on user-defined criteria.

Selector de Prompts:

SelectorDePrompts is a versatile node designed to manage and manipulate multiple text prompts efficiently. Its primary function is to select and combine active prompts based on user-defined criteria, offering flexibility in how prompts are processed and utilized. This node is particularly beneficial for scenarios where multiple prompts need to be managed simultaneously, allowing you to specify which prompts are active and how they should be combined. By providing options to handle inactive prompts and control the output format, SelectorDePrompts ensures that you can tailor the prompt selection process to fit your specific needs, enhancing the overall workflow in creative projects.

Selector de Prompts Input Parameters:

fallback

The fallback parameter determines the action to take when no active prompts are found. If set to "error," the node will raise an error when no prompts are active. Otherwise, it will return the first prompt as a fallback. This parameter is crucial for ensuring that the node behaves predictably in cases where no prompts are selected. There are no specific minimum or maximum values, but it typically accepts options like "error" or a default prompt.

join_with

The join_with parameter specifies the separator used to join multiple active prompts. This allows you to control the formatting of the combined output, ensuring that the prompts are concatenated in a way that suits your needs. Common options include newline characters or custom strings, with the default being a double newline (\n\n).

mode

The mode parameter defines how the node handles multiple active prompts. In "single_only" mode, the node will raise an error if more than one prompt is active, enforcing a single prompt output. This parameter is essential for scenarios where only one prompt should be processed at a time, providing control over the prompt selection process. Options typically include "single_only" and other modes that allow multiple prompts.

kwargs

The kwargs parameter is a flexible input that allows you to specify which prompts are active and provide their text. It uses a dictionary-like structure where keys such as on1, on2, etc., indicate whether a prompt is active, and p1, p2, etc., provide the corresponding prompt text. This parameter is crucial for dynamically managing multiple prompts, enabling you to activate or deactivate prompts as needed.

Selector de Prompts Output Parameters:

text

The text output parameter provides the final combined text of all active prompts. This output is crucial as it represents the result of the prompt selection and combination process, ready for further use in your creative projects. The text is formatted according to the join_with parameter, ensuring that the output meets your specified requirements.

Selector de Prompts Usage Tips:

  • Use the fallback parameter to ensure that your workflow continues smoothly even when no prompts are active, by providing a default prompt or handling errors gracefully.
  • Experiment with different join_with separators to achieve the desired formatting for your combined prompts, especially when integrating them into larger text structures.
  • Utilize the mode parameter to enforce strict prompt selection rules, such as ensuring only one prompt is active when necessary, to maintain control over the output.

Selector de Prompts Common Errors and Solutions:

❌ Ningún prompt activo o todos están vacíos.

  • Explanation: This error occurs when no prompts are active, and the fallback parameter is set to "error."
  • Solution: Ensure that at least one prompt is active or change the fallback parameter to provide a default prompt instead of raising an error.

❌ Modo single_only con <number> prompts activos: <list_of_prompts>.

  • Explanation: This error is triggered when the mode is set to "single_only," but multiple prompts are active.
  • Solution: Deactivate additional prompts to ensure only one is active, or change the mode to allow multiple prompts.

Selector de Prompts Related Nodes

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

Selector de Prompts