ComfyUI > Nodes > ComfyUI-EreNodes > Prompt Toggle

ComfyUI Node: Prompt Toggle

Class Name

ErePromptToggle

Category
EreNodes
Author
Erehr (Account age: 3928days)
Extension
ComfyUI-EreNodes
Latest Updated
2025-08-11
Github Stars
0.06K

How to Install ComfyUI-EreNodes

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

Prompt Toggle Description

ErePromptToggle allows dynamic toggling and management of text prompts for creative workflows.

Prompt Toggle:

ErePromptToggle is a versatile node designed to enhance your creative workflow by allowing you to dynamically manage and manipulate text prompts. This node is part of the EreNodes suite, which is tailored for AI artists seeking to streamline their prompt generation process. The primary function of ErePromptToggle is to toggle between different text prompts, enabling you to experiment with various creative directions effortlessly. By integrating this node into your workflow, you can efficiently manage prompt variations, ensuring that your creative output remains fresh and innovative. The node's ability to handle text inputs with optional prefixes and separators makes it a powerful tool for artists looking to customize and refine their prompts with precision.

Prompt Toggle Input Parameters:

text

The text parameter is a required input that accepts a string, which can be multiline. This parameter serves as the main body of the prompt that you wish to manipulate or toggle. The content of this text will be combined with any specified prefix to form the final output. There are no explicit minimum or maximum values for this parameter, but it is essential to provide meaningful content to achieve the desired creative results.

prefix

The prefix parameter is an optional input that allows you to prepend a specific string to the main text. This can be particularly useful for adding context or thematic elements to your prompts. The prefix is combined with the text using a separator, which can be customized based on additional settings. While there is no default value, providing a prefix can significantly enhance the clarity and direction of your prompts.

extra_pnginfo

The extra_pnginfo parameter is a hidden input that contains additional metadata, such as workflow information. This metadata can influence the behavior of the node, particularly in determining the separator used between the prefix and the text. Although this parameter is not directly manipulated by the user, it plays a crucial role in customizing the prompt output based on the workflow context.

unique_id

The unique_id parameter is another hidden input that uniquely identifies the node within a workflow. This identifier is used to retrieve specific settings, such as the prefix separator, from the extra_pnginfo. Like extra_pnginfo, this parameter is not directly set by the user but is essential for ensuring that the node operates correctly within a complex workflow.

Prompt Toggle Output Parameters:

STRING

The output of the ErePromptToggle node is a single string, which is the result of combining the prefix and text inputs with the specified separator. This output string represents the final prompt that can be used in your creative projects. The importance of this output lies in its ability to encapsulate both the main content and any contextual or thematic elements provided by the prefix, offering a cohesive and customizable prompt for further use.

Prompt Toggle Usage Tips:

  • Experiment with different prefixes to see how they change the tone or direction of your prompts. This can help you discover new creative avenues.
  • Utilize the extra_pnginfo to customize the separator between the prefix and text, allowing for greater flexibility in how your prompts are structured.
  • Consider using multiline text inputs to create more complex and nuanced prompts, which can lead to richer creative outputs.

Prompt Toggle Common Errors and Solutions:

Missing text input

  • Explanation: The text parameter is required and cannot be empty. If this input is missing, the node cannot generate a valid output.
  • Solution: Ensure that you provide a valid string for the text parameter. This can be a simple sentence or a more complex multiline input.

Invalid prefix separator

  • Explanation: If the separator specified in extra_pnginfo is not valid, it may cause unexpected behavior in the output.
  • Solution: Check the extra_pnginfo settings to ensure that the separator is correctly defined. If necessary, adjust the workflow settings to provide a valid separator.

Workflow metadata not found

  • Explanation: The node relies on extra_pnginfo to retrieve workflow-specific settings. If this metadata is missing, the node may not function as expected.
  • Solution: Verify that the workflow metadata is correctly included in the extra_pnginfo. If not, update your workflow to ensure that all necessary metadata is provided.

Prompt Toggle Related Nodes

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