Prompt Concatenator Nodes
The Prompt Concatenator Node is a simple but vital utility for managing complex prompts. It allows you to take text from multiple sources and merge them into a single, coherent string.
How it Works
- Inputs: Connect multiple Text Nodes (or outputs from Logic nodes) to the input handle.
- Order: The order of concatenation depends on the connection order (or you can manage it by visual placement/logic).
- Separator: Define a string that will be inserted between each input text.
- Default is usually a double new line (
\n\n) for paragraphs. - Use a comma (
,) for lists of tags.
- Default is usually a double new line (
Use Cases
Modular Prompt Engineering
Instead of writing one massive prompt, break it down:
- Node A: “Subject: A futuristic cyberpunk detective.”
- Node B: “Setting: Rainy neon streets of Tokyo at night.”
- Node C: “Style: Cinematic lighting, 8k resolution, unreal engine.”
- Concatenator: Merges A + B + C -> “Subject… Setting… Style…”
This makes it easy to swap out just the “Setting” node while keeping the character and style the same.