ComfyUI > Nodes > CRT-Nodes > AutopromptProcessor (CRT)

ComfyUI Node: AutopromptProcessor (CRT)

Class Name

AutopromptProcessor

Category
CRT/Text
Author
CRT (Account age: 1707days)
Extension
CRT-Nodes
Latest Updated
2026-03-16
Github Stars
0.1K

How to Install CRT-Nodes

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

AutopromptProcessor (CRT) Description

Enhances text prompts by replacing words and adding prefixes for precise AI-generated content.

AutopromptProcessor (CRT):

The AutopromptProcessor is a versatile node designed to enhance and customize text prompts by allowing you to replace specific words and add a custom prefix to the text. This node is particularly useful for AI artists who want to refine their text prompts to achieve more precise and personalized outputs in their creative projects. By processing the autoprompt text, it enables you to seamlessly integrate specific keywords or phrases, ensuring that the generated content aligns closely with your artistic vision. The main goal of this node is to provide a straightforward yet powerful way to manipulate text prompts, making it an essential tool for anyone looking to fine-tune their AI-generated content.

AutopromptProcessor (CRT) Input Parameters:

autoprompt

The autoprompt parameter is a string input that contains the text you wish to process. This is the main body of text where word replacements and prefix additions will be applied. It is a required field, meaning you must provide a valid string for the node to function. This parameter serves as the foundation for the text transformation process, and its content will directly influence the final output.

custom_prefix

The custom_prefix parameter allows you to specify a string that will be added at the beginning of the processed autoprompt. This can be used to insert a specific keyword or phrase that you want to consistently appear at the start of your text. The parameter supports multiline input and defaults to an empty string, meaning no prefix will be added if left blank. This feature is particularly useful for adding consistent thematic elements or trigger words to your prompts.

replacements

The replacements parameter is a multiline string where you can define word replacements in the format old_word|new_word, with each replacement on a new line. This allows you to specify which words in the autoprompt should be replaced with new ones, enabling you to customize the text to better fit your needs. The default value provides an example format, and the replacements are applied using whole word, case-insensitive matching. This parameter is crucial for tailoring the text to include specific terminology or to avoid certain words.

AutopromptProcessor (CRT) Output Parameters:

processed_text

The processed_text output parameter is a string that contains the final version of the autoprompt after all specified replacements have been made and the custom prefix has been added. This output is the result of the node's processing and represents the text that you can use in subsequent steps of your creative workflow. It reflects the modifications specified by the input parameters, providing a customized and refined text prompt ready for use.

AutopromptProcessor (CRT) Usage Tips:

  • To ensure accurate word replacements, carefully format the replacements parameter using the old_word|new_word format, and remember that replacements are case-insensitive and apply to whole words only.
  • Utilize the custom_prefix to consistently add thematic elements or trigger words to your prompts, enhancing the coherence and focus of your AI-generated content.

AutopromptProcessor (CRT) Common Errors and Solutions:

Missing autoprompt input

  • Explanation: This error occurs when the autoprompt parameter is not provided, which is required for the node to function.
  • Solution: Ensure that you connect a valid string input to the autoprompt parameter before executing the node.

Incorrect replacements format

  • Explanation: This error arises when the replacements parameter is not formatted correctly, such as missing the | separator.
  • Solution: Review the replacements input to ensure each line follows the old_word|new_word format, and correct any formatting issues.

AutopromptProcessor (CRT) Related Nodes

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