Griptape Combine: Merge Texts
How the Pack's Signature 'Describe These Images' Workflow Glues Together
- input_1
- OUTPUT
Griptape Combine: Merge Texts is the string-merging workhorse of the pack, and it's the node in the README's flagship example: three Image Description nodes describe three pictures, Merge Texts combines those descriptions into one blob, and that blob becomes the inspiration for a new image via Griptape Create: Image from Text. It's the simplest way to take scattered text outputs and turn them into a single string you can feed a prompt.
What makes it different from the other merge nodes
The pack has three merge-ish nodes, and the difference matters:
- Merge Texts - joins strings with a separator you control. This one.
- Merge Inputs - joins anything, but hardcodes the
\n\nseparator and stringifies. - Merge Dictionary - merges key-value pairs, completely different job.
If you want "A, B, C" instead of "A\n\nB\n\nC", Merge Texts is the only one of the family that lets you do it. That separator input is the whole point.
How it works
Connect a string to input_1 and the node dynamically spawns more inputs as you keep plugging things in. Everything gets joined with your chosen merge_string, which defaults to \n\n (a blank line between blocks - sensible for prompts). Two details worth knowing from the source:
- The node does
.replace("\\n", "\n")on your separator, so typing\nliterally in the field turns into a real newline. You can write\n---\nand get line-break + divider + line-break. - The joined result is
.strip()'d, so leading/trailing whitespace gets trimmed. Fine for prompts; don't rely on it for byte-exact text.
It's pure string joining - no LLM call, no API key, instant.
Inputs and output
input_1(*) - first text input; connect more to add more.merge_string(STRING, default\n\n) - the separator between inputs.- Output:
OUTPUT(STRING) - the merged text, ready for a Create Agent prompt, a Create Text node, or any STRING input downstream.
Installation
Part of the ComfyUI Griptape Nodes pack:
- ComfyUI Manager: search "Griptape" → install.
- Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/griptape-ai/ComfyUI-Griptape, then restart ComfyUI.
The pack installs griptape[all], python-dotenv, openai, and two driver extensions from git. First boot after install is slow while pip does its thing. If ComfyUI starts misbehaving afterward, check the README's torch section - Griptape's torch dependency is the known troublemaker.
Gotchas
- Dynamic inputs: if you disconnect a middle input, the node reorganizes them, so the order of your merged text can shift. Keep wires tidy if the order matters.
- The pack is well-regarded in the ComfyUI community for exactly this kind of "string it all together for an LLM" work - people building LLM-in-ComfyUI pipelines reach for it over the form-style alternatives because the graph stays legible. The
\n\ndefault is the right one for prompt assembly, and the custom separator covers the rest.
If you're doing anything with multiple text sources feeding one prompt, this is the node you'll actually keep coming back to.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| input_1opt | * | A text input to merge. Connect an input to dynamically create more inputs. | |
| merge_stringopt | STRING | \n\n | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| OUTPUT | STRING | — |