# Cookies anpassen

Das Setzen von Cookies im Chatbot kann durch das Hinzufügen eines Attributs auf dem aiaibot Skript Tag verhindert werden. Dazu muss das folgende Attribut hinzugefügt werden:

```
data-aiaibot-no-cookies
```

Zudem stehen zwei ergänzende Funktionen über die JavaScript-API zur Verfügung. Um aiaibot Cookies zu setzen, sollte folgende Funktion bei Zustimmung des Nutzers aufgerufen werden:

```
window.aiaibot.createTrackingCookies()
```

Um die aiaibot Cookies zu löschen, so sollte die folgende Funktion bei nachträglicher Ablehnung der Cookies aufgerufen werden:

```
window.aiaibot.removeTrackingCookies()
```


---

# 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://help.aiaibot.com/chatbot/integration/cookies-anpassen.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.
