> For the complete documentation index, see [llms.txt](https://help.aiaibot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aiaibot.com/robot/plugins/ai/variable-aus-konversations-kontext-laden.md).

# Variable aus Konversations-Kontext laden

Mit dem Plugin <img src="/files/uWwffV86oRyficRBZsZV" alt="" data-size="line"> *Aus AI-Konversations-Kontext holen* können Sie eine Variable aus dem Kontext eine Konversation holen. Die Variable muss anhand eines Schlüssels (Keys) geladen werden.

<figure><img src="/files/UWmvhWG3SfBZNKxoKkiw" alt=""><figcaption><p>Plugin: In AI-Konversations-Kontext speichern</p></figcaption></figure>

Diese Plugin kann dabei helfen, den Konversationsfluss zu steuern. Werden zum Beispiel mit einem Agent der Vor- und Nachname sowie die E-Mail-Adresse des Benutzer abgefragt, können diese in den Konversations-Kontext gelegt werden. Erst wenn alle drei Eingaben vorhanden sind, wird der Workflow in einem bestimmten Pfad weiter fortgeführt.

Dieses Plugin steht auch in [AI-Funktion](/robot/connectoren/passiv/ai-funktion.md) Workflows zur Verfügung.

## Parameter "Key"

Hier geben Sie den Schlüssel (Key) ein, unter dem die Variable abgelegt wurde. Die Länge des Schlüssels darf 200 Zeichen nicht überschreiten.

## Parameter "Variable"

Aus diesem Auswahlfeld wählen Sie die Variable aus, in dem der im Kontext gespeicherte Wert abgelegt werden soll.

## Prüfen der geladenen Variable

Um sicherzustellen, dass die Variable die geladen wurde auch einen Wert hat, sollte diese immer mit einer Entscheidung überprüft werden. Das Pattern hierzu sieht so aus:

<figure><img src="/files/LJAgOtGQJfKC2hE2BIGr" alt=""><figcaption><p>Pattern zur Prüfung ob eine Variable einen Wert hat</p></figcaption></figure>

Hier wird ein Eintrag aus dem Konversations-Kontext mit dem Key `Konversations Status` geladen. Anschliessend wird geprüft, ob die Variable auch einen Wert hat.


---

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

```
GET https://help.aiaibot.com/robot/plugins/ai/variable-aus-konversations-kontext-laden.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
