# 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.

Source: https://nodaro.ai/docs/nodes/automate/combine-text

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.

- Found in: Automate › Text
- Output: text
- API type: `combine-text`

## When to use it
- Build one prompt from parts that live in separate nodes, such as a subject in one [Text](https://nodaro.ai/docs/nodes/automate/text) node and a style in another.
- Add fixed instructions to the answer of a [Prompt](https://nodaro.ai/docs/nodes/automate/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](https://nodaro.ai/docs/nodes/automate/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](https://nodaro.ai/docs/nodes/image/generate-image). After a run, **Output Preview** in the settings panel shows the combined text.

Workflow: Two Text nodes, a subject and a style, are joined into one prompt for Generate Image.

- Text → Combine Text (text)
- Text → Combine Text (text)
- Combine Text → Generate Image (prompt)

## 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](https://nodaro.ai/docs/nodes/automate/text) node is simpler than a Combine Text node. See [Prompt variables](https://nodaro.ai/docs/concepts/prompt-variables).
- **Split, edit, join.** [Split Text](https://nodaro.ai/docs/nodes/automate/split-text) cuts a text into items, and Combine Text joins items back into one text.

## Frequently asked questions

### What does the Combine Text node do?

Combine Text joins the text of every node connected to its Text input into one text, and puts a separator of your choice between the parts. It costs no credits.

### In which order does Combine Text join the parts?

In the order of the connections on its Text input. Click the input to see the connected nodes in order, and drag them to change the order.

### Which separators can I use?

New Line, Double New Line, Comma, Space, Three Stars, or Custom, where you type any separator yourself. The default is New Line.

### What happens to empty inputs?

Combine Text trims the spaces and line breaks around each part and leaves out empty parts, so an empty input never adds a stray separator.
