> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/de/aktionen/workflow-concepts/workflow-steps/logic-steps/text.md).

# Liquid-Text schreiben

Formatieren Sie Ihre Ausgabe in einen String

## Wie funktioniert der Text-Schritt?

Der Text-Schritt ermöglicht es Benutzern, die Ausgaben vorheriger Schritte zu einem einzelnen String zu verketten. Er wird am häufigsten als letzter Schritt in Ihrem Workflow verwendet, um sicherzustellen, dass Ihre endgültige Ausgabe genau so strukturiert ist, wie Sie es möchten.

{% hint style="info" %}
Text-Schritte sind auch eine großartige Option, um mehrere in Listen oder Arrays gespeicherte Werte zu extrahieren, die Sie möglicherweise zu einem einzelnen String verketten möchten.
{% endhint %}

## Wie konfiguriert man einen Text-Schritt?

Die grundlegendste Implementierung eines Text-Schritts ist unkompliziert. Sie müssen lediglich die gewünschten Variablen oder Schritt-Ausgaben mithilfe der Liquid-Syntax referenzieren, wie unten gezeigt:

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-999bae0ea23fb8f41bd87168d6535648242ebf96%2Ftext-step-01-combine-steps.png?alt=media" alt="Compile Title with Text step whose template combines the Write article title and Write article content outputs"><figcaption><p>Frühere Schrittausgaben in einem Text-Schritt kombinieren.</p></figcaption></figure>

In diesem Beispiel verknüpft unser Text-Schritt Schritt 10 (das Generieren eines Titels) mit Schritt 9 (das Generieren des Artikelinhalts). Das Endergebnis ist also ein korrekt formatierter Artikel mit dem Titel, gefolgt vom Textkörper.

## Die Ausgabe eines Iterationsschritts verketten

Einer der beliebtesten Anwendungsfälle für einen Text-Schritt ist das Extrahieren von Werten aus einem Iterationsschritt. Die allgemeine Formatierung dafür lautet:

```
{% for chunk in step_x.output %}
{{chunk}}
{% endfor %}
```

wobei „step\_x“ Ihren Iterationsschritt darstellt und „chunk“ die Werte sind, die wir abrufen möchten. Sehen wir uns ein weiteres Beispiel an:

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-68ab39a08c5cc1e1c43b536cbe98436f73e8aec1%2Ftext-step-02-iteration-output.png?alt=media" alt="Merge sections Text step that loops over the output of the Write each section Iteration step with a Liquid for loop"><figcaption><p>Die Werte aus einem Iterationsschritt verketten.</p></figcaption></figure>

Dies stammt direkt aus unserer Vorlage „Article Merge“. Unser Iterationsschritt (step\_12) prüft, ob er eine Einleitung für unseren Artikel schreibt oder den Hauptteil des Artikels. Indem wir unseren Text-Schritt wie folgt aufrufen:

```
{% for chunk in step_12.output %}
{{ chunk }}
{% endfor %}
```

Wir kombinieren effektiv die Ergebnisse jedes Teils zu einem einzelnen String.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/de/aktionen/workflow-concepts/workflow-steps/logic-steps/text.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
