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
replacementsparameter using theold_word|new_wordformat, and remember that replacements are case-insensitive and apply to whole words only. - Utilize the
custom_prefixto 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
autopromptparameter is not provided, which is required for the node to function. - Solution: Ensure that you connect a valid string input to the
autopromptparameter before executing the node.
Incorrect replacements format
- Explanation: This error arises when the
replacementsparameter is not formatted correctly, such as missing the|separator. - Solution: Review the
replacementsinput to ensure each line follows theold_word|new_wordformat, and correct any formatting issues.
