Combine Text
Join the text of several nodes into one text, in the order you choose, with a new line, a comma, a space or your own separator between the parts.
The Combine Text node joins the text of several nodes into one text, with a separator between the parts. Use it to build a prompt from pieces that come from different nodes, such as a subject, a style and a set of instructions. Combine Text costs no credits and runs without a model.
When to use it
- Build one prompt from parts that live in separate nodes, such as a subject in one Text node and a style in another.
- Add fixed instructions to the answer of a Prompt node before a second AI pass.
- Assemble a caption from several texts before a publishing node.
- Join the items of a list back into one text, for example the items of a Split Text node.
Quick start
Add the node
Press Tab on the canvas and choose Automate › Text › Combine Text.
Connect the parts
Connect two or more text nodes to the Text input, in the order in which the parts should appear.
Choose a separator
Open the settings panel and choose a Separator. The default is New Line (\n).
Use the result
Connect the output to the next node, such as the Prompt input of Generate Image. After a run, Output Preview in the settings panel shows the combined text.
Inputs
| Input | Accepts | What it does |
|---|---|---|
| Text | Text nodes, such as Text, Prompt, Combine Text and Split Text | Every connected text becomes one part. A node that returns a list, such as Split Text, adds each of its items as a part. |
The order of the connections is the order of the parts. Click the Text input to see the connected nodes in order, and drag them to change the order.
The output, Text, is the combined text. Each part is trimmed of the spaces and line breaks around it, and empty parts are left out.
Settings
| Setting | What it does |
|---|---|
| Separator | What goes between two parts: New Line (\n) (the default), Double New Line (\n\n), Comma (,), Space, Three Stars (***) or Custom. |
| Custom Separator | The separator you type yourself, when Separator is Custom. |
| Output Preview | The combined text of the last run. Read-only. |
Tips
- New Line for blocks, Space for sentences. Use a new line to stack paragraphs or script lines, and a space to join fragments of one sentence.
- Comma for tag-style prompts. A comma turns short parts, such as a subject, a style and a light, into one comma-separated prompt.
- Variables for one-off inserts. To insert one value into the middle of a sentence, a variable such as
{Mood}in a Text node is simpler than a Combine Text node. See Prompt variables. - Split, edit, join. Split Text cuts a text into items, and Combine Text joins items back into one text.
Frequently asked questions
Related
Text
Split Text
Prompt
Prompt variables
Last updated on
Text
Write a prompt or any other text once and send it to image, video, audio and AI text nodes. Insert the values of other nodes with variables.
Split Text
Cut one text into a list of items at each new line, comma or custom separator, so the next node runs once for every item, such as one image per line.