Nodes/ComfyUI Griptape Nodes/Griptape Combine: Merge Inputs
ComfyUI Node

Griptape Combine: Merge Inputs

The 'Just Glue It Together' Text Node

By griptape-ai·Created 2 years ago·Updated about a year ago· 238
Griptape Combine: Merge Inputs
  • input_1
  • OUTPUT

Griptape Combine: Merge Inputs is the pack's "don't make me think" concatenation node. It takes any number of inputs - any type at all - and turns them into one string. That's the whole job. There's no separator option, no key-value logic, no LLM involved. If you have a pile of outputs and you just want them in a single text field, this is the fastest node on the canvas to do it.

What it's for

You'll reach for this when the data type doesn't matter and you just need one string at the end. Agent outputs, image descriptions, numbers, whatever - the node stringifies each input and stacks them. The pack also has a fancier sibling (Griptape Combine: Merge Texts) that lets you pick a separator, so the mental model is: need control over the join character, use Merge Texts; need "just jam it together," use this.

One honest caveat: because it stringifies everything with a fixed separator, it's less useful for structured data. If you're merging dictionaries or lists, use the dedicated Merge Dictionary / list nodes instead. This one is a text-only funnel.

How it works

Every input you connect gets str()'d and appended with \n\n between items - so it's really "Merge Inputs With a Blank Line Between Each One," which is a fine default for prompts. The code is a loop:

for input in inputs:
    concatenated_value += "\n\n" + str(input)

You don't get to configure that separator here. That's the design line between this and Merge Texts.

Inputs and output

  • input_1 (*, accepts anything) - connect a value here and the node dynamically creates more inputs as you keep connecting. Handy when you have three or four sources and don't know how many you'll end up with.
  • Output: OUTPUT (STRING) - the concatenated text, ready to feed a prompt field, a Create Text node, or straight into an agent.

The * input type is the key detail: almost anything plugs in, which makes this the node you grab when you're prototyping and just want to see everything in one box before deciding what to actually send.

Installation

This is 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, restart ComfyUI.

It's one of dozens of nodes in the pack, so you get it whether you want it or not. Dependencies are the pack's shared set - griptape[all], python-dotenv, openai - which install automatically. If you hit the classic torch conflict after install, the README's troubleshooting section walks you through reinstalling torch against the right CUDA index.

Gotchas

  • No separator control. If the blank-line join isn't what you want, reach for Merge Texts.
  • Non-string inputs are stringified, so a number becomes "42" and a dict becomes its repr. Fine for display and prompts; not for data you need to keep typed.

It's not a headline node - but every workflow ends up with one of these somewhere, and it does its single job without complaining.

CategoryGriptape/Text

Inputs (1)

NameTypeDefaultDescription
input_1opt*An input to merge. Connect an input to dynamically create more inputs.

Outputs (1)

NameTypeDescription
OUTPUTSTRING