Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge two text prompts seamlessly for AI prompt creation efficiency.
The CM_PromptCombine_JK
node is designed to seamlessly merge two text prompts into a single cohesive string. This node is particularly useful for AI artists who need to combine different textual inputs to create more complex and nuanced prompts for their AI models. By intelligently handling the punctuation and ensuring that the combined prompt maintains a natural flow, this node helps streamline the prompt creation process, saving time and reducing the need for manual editing. Whether you are working with simple or elaborate prompts, CM_PromptCombine_JK
ensures that your inputs are combined in a way that is both syntactically correct and contextually meaningful.
prompt_1
is the first text input that you want to combine. This parameter is mandatory and must be a string. The function of this parameter is to serve as the initial part of the combined prompt. If prompt_1
ends with a comma, the node will directly append prompt_2
to it. Otherwise, a comma will be added between prompt_1
and prompt_2
to ensure proper punctuation. There are no minimum or maximum values for this parameter, but it should not be an empty string if you want it to contribute to the final output.
prompt_2
is the second text input that you want to combine with prompt_1
. This parameter is also mandatory and must be a string. The function of this parameter is to serve as the latter part of the combined prompt. If prompt_2
is provided and is not an empty string, it will be appended to prompt_1
with appropriate punctuation. Similar to prompt_1
, there are no minimum or maximum values for this parameter, but it should not be an empty string if you want it to contribute to the final output.
The output parameter Prompt
is a single string that represents the combined result of prompt_1
and prompt_2
. This output is crucial as it provides the final text prompt that can be used directly in your AI models. The combined prompt ensures that the inputs are merged with proper punctuation, making it ready for immediate use without further modifications. The output will be an empty string if both input prompts are empty or not provided.
prompt_1
and prompt_2
are meaningful and contextually related to get the best results from the combined prompt.prompt_1
ends with a comma, you can directly append prompt_2
without worrying about additional punctuation.prompt_1
and prompt_2
are empty or not provided.prompt_1
or prompt_2
is not provided (i.e., they are None
).prompt_1
and prompt_2
to avoid this error.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.