ComfyUI > Nodes > ComfyUI Fictiverse Nodes > Prompt Assembler

ComfyUI Node: Prompt Assembler

Class Name

Prompt Assembler

Category
Fictiverse
Author
Fictiverse (Account age: 1343days)
Extension
ComfyUI Fictiverse Nodes
Latest Updated
2026-04-26
Github Stars
0.02K

How to Install ComfyUI Fictiverse Nodes

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

Prompt Assembler Description

The Prompt Assembler node combines prompt segments with varying strengths for nuanced AI text generation.

Prompt Assembler:

The Prompt Assembler node is designed to help you construct complex prompts by combining multiple segments with varying strengths. This node is particularly useful for AI artists who want to create nuanced and detailed prompts for text generation or other AI-driven tasks. By allowing you to specify different strengths for pre, main, and post prompts, the Prompt Assembler provides a flexible way to emphasize certain parts of your prompt, ensuring that the generated output aligns closely with your creative vision. This capability is essential for fine-tuning the influence of each segment, making it a powerful tool for crafting sophisticated and targeted prompts.

Prompt Assembler Input Parameters:

pre_strength

This parameter represents the influence or weight of the pre-prompt segment in the overall assembled prompt. It is a floating-point number, with a default value of 1.0, indicating full strength. Adjusting this value allows you to control how much emphasis is placed on the pre-prompt, with lower values reducing its impact.

pre_prompt

The pre_prompt is a string input that contains the initial segment of your prompt. This part is typically used to set the stage or context for the main prompt. By default, it is an empty string, and you can fill it with any text that you want to precede the main content.

main_strength

Similar to pre_strength, this parameter controls the influence of the main prompt segment. It is a floating-point number with a default value of 1.0. Adjusting this value allows you to fine-tune the prominence of the main prompt in the assembled output, ensuring it receives the desired level of attention.

main_prompt

The main_prompt is the core segment of your prompt, typically containing the most critical information or instructions. It is a string input with a default value of an empty string. This is where you place the primary content that you want the AI to focus on.

post_strength

This parameter determines the influence of the post-prompt segment, similar to the other strength parameters. It is a floating-point number with a default value of 1.0. By adjusting this value, you can control how much emphasis is placed on the post-prompt, which usually serves as a concluding or supplementary part of the prompt.

post_prompt

The post_prompt is a string input that contains the final segment of your prompt. It is used to add additional context or instructions that follow the main content. By default, it is an empty string, and you can customize it to include any text that you want to append to the main prompt.

Prompt Assembler Output Parameters:

prompt

The output parameter prompt is a string that represents the fully assembled prompt. It combines the pre, main, and post prompts, each adjusted by their respective strengths, into a single cohesive prompt. This output is crucial for generating text or other AI-driven outputs that require a structured and weighted input.

Prompt Assembler Usage Tips:

  • Experiment with different strength values to see how they affect the emphasis of each prompt segment in the final output.
  • Use the pre_prompt to set the context and the post_prompt to provide additional instructions or conclusions, ensuring a well-rounded prompt.
  • Keep your main_prompt concise and focused, as it typically carries the most weight in the assembled prompt.

Prompt Assembler Common Errors and Solutions:

Empty Prompt Segments

  • Explanation: If any of the prompt segments (pre, main, or post) are left empty, they will be ignored in the final assembled prompt.
  • Solution: Ensure that each segment contains meaningful content if you want it to be included in the final prompt.

Incorrect Strength Values

  • Explanation: Using non-numeric or out-of-range values for strength parameters can lead to unexpected behavior.
  • Solution: Always use numeric values between 0.0 and 1.0 for strength parameters to ensure proper weighting of prompt segments.

Prompt Assembler Related Nodes

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