# Kontext

Der Schritt **Kontext** dient dazu, um eine Intention in einem bestimmten Kontext zu erkennen. Dein Bot hat beispielsweise zwei Intentionen um die Zustimmung oder die Ablehnung eines Nutzers zu erkennen. Dies kann sehr sinnvoll sein, falls dein Bot im Gesprächsverlauf eine Ja-Nein-Frage stellt und der Nutzer diese beantwortet.

In der Regel springt der Bot zum Ablauf einer Intention, sobald er diese erkannt hat. Durch die Erkennung des Kontexts wird dieses Verhalten unterbunden. Der Bot bleibt im aktuellen Ablauf und folgt der weiteren Struktur, auf Basis der erkannten Intention.

## Kontext verwenden

{% hint style="info" %}
Für die Erkennung des Kontexts werden verschiedene Intentionen benötigt. Beispielsweise: Zustimmung, Ablehnung. Diese Intentionen müssen im Vorfeld [erstellt und mit Beispielen gefüllt werden](/bot-verwalten/bot-builder/intention.md).
{% endhint %}

**1. Klicke auf "Intention hinzufügen"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/a6038c63-49e2-4086-a767-bbf817223614/ascreenshot.jpeg?tl_px=335,614\&br_px=1828,1454\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**2. Klicke in das Eingabefeld und gebe den Namen des Ausgangs ein, mit dem du spätere weitere Schritte verbinden kannst.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/b05c1fec-1da6-418d-8e59-4a2954b7bb39/ascreenshot.jpeg?tl_px=329,540\&br_px=1822,1380\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**3. In diesem Beispiel nennen wir den Ausgang "Zustimmung"**

**4. Klicke auf "Intention auswählen"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/01dd0342-9e92-4fc5-8a68-e67236a9aaf1/ascreenshot.jpeg?tl_px=397,646\&br_px=1890,1486\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**5. Wähle im Menü die passenden Intentionen aus, die du diesem Ausgang zuordnen möchtest.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/039a4f2f-d230-4730-9cf7-d94e65b439e3/ascreenshot.jpeg?tl_px=781,0\&br_px=2274,840\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,94)

**6. Klicke erneut auf "Intention hinzufügen" um eine zweite hinzuzufügen.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/b3295768-ec51-4fe6-a45b-6161563d26d7/ascreenshot.jpeg?tl_px=269,772\&br_px=1762,1612\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**7. Klicke erneut ins Eingabefeld und gebe den Namen des Ausgangs ein.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/9567edb9-4d9c-46f4-9890-4c2de31dc17f/ascreenshot.jpeg?tl_px=257,708\&br_px=1750,1548\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**8. Dies mal "Ablehnung"**

**9. Klicke auf "Intention auswählen".**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/1bc2c18b-8c80-4a37-8d12-0c847f8cf638/ascreenshot.jpeg?tl_px=363,772\&br_px=1856,1612\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**10. Wähle die passende Intention für den zweiten Ausgang aus.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/a85e8e80-8829-45ab-b149-027ac259087e/ascreenshot.jpeg?tl_px=733,0\&br_px=2226,840\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,135)

**11. Speichere deine Einstellungen mit einem Klick auf "Ok".**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/65c3abc7-bcbb-4b1b-9dc1-aa9031d04241/ascreenshot.jpeg?tl_px=631,990\&br_px=2124,1830\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,186)

**12. Klicke und ziehe bei gedrückter Maustaste zum nächsten Schritt, um die Ausgänge zu verbinden.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/d05dc9cf-8bce-464b-90ad-c0e1e170396a/ascreenshot.jpeg?tl_px=1013,520\&br_px=2506,1360\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**13. Wähle den gewünschten Ausgang aus, den du verbinden möchtest.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-07-17/0f94a811-84f7-49dc-a556-9a4e4f0d7a9e/ascreenshot.jpeg?tl_px=1767,564\&br_px=3260,1404\&force_format=png\&width=560.0\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

Der Ausgang "Fallback" wird immer automatisch erstellt. Dieser wird ausgelöst, wenn keine der hinterlegten Intentionen erkannt werden konnte.


---

# Agent Instructions: 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://docs.chatcaptain.com/bot-verwalten/bot-builder/kontext.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.
