> 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/mandatory-base/platform-core/connect-hub/data-processing-function-formats/functions.md).

# Functions

Functions are used to perform additional calculations or transformations on   incoming data that are not covered by the format configuration.

## Create a New Function

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2FymeooNA0MaErM82uCeu4%2FGroup%20585.png?alt=media&amp;token=8cc8c408-2a43-4a1e-a9ae-3d87e6d5c929" alt=""><figcaption></figcaption></figure>

1. Click on **\[A]**
2. Click on **\[B]**
3. Click on **\[C]**\
   ▷ A dialog opens
4. In **\[D]**, enter the name of the format
5. In **\[E]**, select an asset type
6. Click on **\[F]**\
   ▷ A dialog opens
7. In **\[G]**, select the parameters of the asset type
8. Click on **\[H]**\
   ▷ The "Configure Function" menu opens

## Configure a Function

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2FSmwn7m7jxQfuTQDF1IkF%2FGroup%2042.png?alt=media&amp;token=4320a932-50f3-44c5-aa4a-10258a5d1bf3" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="75.13332112630206">Element</th><th width="129">Title</th><th>Details</th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Code editor</td><td>Enter the JavaScript function for the function here</td></tr><tr><td><strong>[B]</strong></td><td>Info</td><td>Here you can see info about the function and the format</td></tr><tr><td><strong>[C]</strong></td><td>Result</td><td>Here the result of the code entered in [A] is displayed</td></tr><tr><td><strong>[D]</strong></td><td>Test code</td><td>Click here to test the code entered in [A]. The result is displayed in [C]</td></tr><tr><td><strong>[E]</strong></td><td>Save</td><td>Click here to save</td></tr></tbody></table>


---

# 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/mandatory-base/platform-core/connect-hub/data-processing-function-formats/functions.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.
