> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/script.md).

# Skript

Ein Skript aus einer Regelkette ausführen.

<div align="left"><figure><img src="https://2215908449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2FD4SPF7edLdxMpV7K6fz2%2FScript.png?alt=media&amp;token=b64b069f-15ed-40d7-be82-b88f7d5e913f" alt="" width="367"><figcaption></figcaption></figure></div>

Verwenden Sie **Skript** um ein Skript auszuführen von **Script-Engine** innerhalb einer Regelkette.

Dieser Knoten ermöglicht es Ihnen, die Regel-Logik mit skriptbasiertem Verhalten zu erweitern.

<div align="left"><figure><img src="https://2215908449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2FlC9fDCXwqGBO3WjFQzPO%2Fimage%2060.png?alt=media&amp;token=8e6ae411-7520-420c-8216-b48eace917c4" alt="" width="306"><figcaption></figcaption></figure></div>

### Was er tut

Der Knoten führt ein ausgewähltes Skript aus.

Die Ausführung wird durch einen booleschen Eingang gesteuert.

### Eingaben

* **Trigger-Eingangspin** — Startet die Skriptausführung.

### Konfigurierbare Einstellungen

<div align="left"><figure><img src="https://2215908449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2FAjgCTQfmaYkzerC3FMMF%2FSQl%20(3).png?alt=media&amp;token=b280589a-f34a-4546-a1ac-f71b1dc91715" alt="" width="375"><figcaption></figcaption></figure></div>

* **Skript** — Wählen Sie das auszuführende Skript aus.

{% hint style="warning" %}
Setzen Sie den Skriptauslösetyp auf **Ereignis ausgelöst**.
{% endhint %}

### Typische Verwendung

Verwenden Sie **Skript** wenn integrierte Blöcke nicht ausreichen.

Siehe [Script-Engine](/collection/german/plattform/platform-core/script-engine.md) zur Skriptkonfiguration.

### Zugehörige Dokumentation

* [Script-Engine](/collection/german/plattform/platform-core/script-engine.md)
* [Python-Skripte schreiben](/collection/german/plattform/platform-core/script-engine/writing-python-scripts.md)
* [PL/PgSQL-Skripte schreiben](/collection/german/plattform/platform-core/script-engine/writing-pl-pgsql-scripts.md)

### Alle Knotenseiten

* [Daten abrufen](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/get-data.md)
* [Aggregierte Daten abrufen](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/get-aggregated-data.md)
* [Daten posten](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/post-data.md)
* [SQL-Abfrage](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/sql-query.md)
* [Alarm](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/create-alarm.md)
* [Ticket](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/ticket.md)
* [E-Mail senden](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/send-e-mail.md)
* [Bericht senden](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/send-report.md)
* [Regel](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/rule.md)
* [LLM-Aufruf](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/llm-call.md)
* [E-Mail-LLM senden](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/send-e-mail-llm.md)

Den vollständigen Editor-Ablauf finden Sie unter [Regelkette konfigurieren](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/configure-rule-chain.md).


---

# 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.buildings.ability.abb/collection/german/plattform/alarms-rules-and-escalations/rule-chains/nodes/script.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.
