> For the complete documentation index, see [llms.txt](https://docs.pletor.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pletor.ai/build-agents/nodes/logic-nodes/prompt-concatenator.md).

# Prompt concatenator

The Concatenate node merges text from different sources (user prompts, brand guidelines, AI text outputs) into one ordered prompt that feeds into downstream AI generation nodes.&#x20;

### When to use it

* **Standardizing prompt structure**: Ensure every generation follows the same format (e.g., subject first, then style, then technical specs).
* **Building complex prompts from multiple sources**: Pull together outputs from several AI Text nodes into one generation-ready prompt.
* **Combining user input with brand context**: Merge a creative brief with your brand guidelines into a single, structured prompt.
* **Batch workflows**: Process multiple prompt variations in loop mode.

### How it works

1. **Connect your text sources**: Link any nodes that output text (prompts, brand context, AI text) outputs.
2. **Set the order**: Arrange inputs in the sequence you want them to appear in the final prompt.
3. **Done!**

{% embed url="<https://screen.studio/share/kFKj1J3G>" %}

You can have a look at [this template agent](https://api.pletor.ai/s/f4b54615-b7f3-444e-a7be-34f5a9e32534) to start building with this node.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pletor.ai/build-agents/nodes/logic-nodes/prompt-concatenator.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
