> 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/connectoren/passiv/sub-workflow.md).

# Sub-Workflow

Ein Sub-Workflow-Connector startet einen sogenannten **Generic Sub-Workflow**. Auf der Seite [Sub-Workflows](/robot/workflows/sub-workflows.md) finden Sie weitere Informationen zu den verschiedenen Arten von Sub-Workflows und deren Vorteile.

Der Sub-Workflow-Connector legt fest, welche Parameter der Sub-Workflow verwenden kann. Ein Parameter besteht aus einem Namen und einem Datentyp (zum Beispiel `text` oder `integer`). Im Sub-Workflow stehen diese Parameter dann als sogenannte **Event-Variablen** zur Verfügung.

## Erstellen eines Sub-Workflow-Connectors

Um einen neuen Sub-Workflow-Connector zu erstellen, wählen Sie den Menüpunkt *Connectoren* und klicken anschliessend auf das <img src="/files/32GhkrdYgbHLeEkg44Lg" alt="" data-size="line"> Symbol.

<figure><img src="/files/CZ5eyvQDL9gV6KBW2glK" alt="" width="221"><figcaption><p>Erstellen eines neuen Connectors</p></figcaption></figure>

Anschliessend geben Sie einen Namen ein, wählen die Option *Sub-Workflow* aus und klicken auf *Weiter*.

<figure><img src="/files/WtJsa3gAezIBuljeg5Ck" alt="" width="458"><figcaption><p>Neuer Sub-Workflow-Connector</p></figcaption></figure>

## Parameter

Nun definieren Sie die Parameter, mit denen der Sub-Workflow aufgerufen werden soll. Geben Sie jedem Parameter einen Namen und wählen Sie den Datentyp aus. Bestätigen Sie den Parameter mit einem Klick auf das <img src="/files/4QM4ndqmkcD1v7n1qlGK" alt="" data-size="line"> Symbol. Sie können beliebig viele Parameter hinzufügen.

<figure><img src="/files/MlQ3iY4XhyFb5YU5viep" alt="" width="563"><figcaption><p>Definition eines Parameters</p></figcaption></figure>

{% hint style="info" %}
Bestätigen Sie jeden neu hinzugefügten Parameter mit einem Klick auf das <img src="/files/4QM4ndqmkcD1v7n1qlGK" alt="" data-size="line"> Symbol.
{% endhint %}

Zum Abschluss bestätigen Sie die komplette Konfiguration mit einem Klick auf *Speichern*.


---

# 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://help.aiaibot.com/robot/connectoren/passiv/sub-workflow.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.
