Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance text prompts by injecting phrases dynamically for AI artists seeking richer narratives.
The PromptInject
node is designed to enhance your creative text prompts by seamlessly inserting additional phrases or sentences into existing text. This node is particularly useful for AI artists who want to enrich their narrative or descriptive prompts with extra details or dramatic elements. By allowing you to specify a target phrase within your text, the node can inject new content either before or after this target, depending on your needs. This capability enables you to dynamically modify and enhance your text prompts, making them more vivid and engaging. The PromptInject
node is a powerful tool for those looking to add depth and complexity to their AI-generated art narratives.
This parameter represents the original text where you want to inject additional content. It is a multiline string, allowing you to work with longer passages or complex narratives. The text serves as the canvas for your creative modifications, and the node will search within this text to find the specified target phrase for injection.
The target parameter is a single-line string that specifies the exact phrase within your text where you want the injection to occur. By default, it is set to "the scene is captured." This parameter is crucial as it determines the location within the text where the new content will be inserted. The node will look for this phrase and perform the injection operation around it.
This parameter is a single-line string that contains the content you wish to add to your text. By default, it is set to "Screeching tires." The injection parameter allows you to introduce new elements or details into your narrative, enhancing the overall richness and impact of your text. The node will wrap this content with spaces to ensure it integrates smoothly into the existing text.
The output of the PromptInject
node is a modified version of the original text, returned as a single string. This output reflects the changes made by the injection process, with the new content seamlessly integrated into the specified location within the text. The result is a more detailed and engaging narrative that incorporates the additional elements you specified.
PromptInject
class is properly registered.PromptInject
node is not recognized in the current setup, possibly due to a missing or incorrect class mapping.PromptInject
node is correctly defined in the NODE_CLASS_MAPPINGS
and that the class is available in the system. Ensure that the node files are correctly placed and accessible.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.