> For the complete documentation index, see [llms.txt](https://developer.vario-software.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.vario-software.de/documentation/scripting.md).

# Scripting

- [Introduction](https://developer.vario-software.de/documentation/scripting/introduction.md): Run server-side JavaScript inside the ERP — workflows and batch processing.
- [Workflows](https://developer.vario-software.de/documentation/scripting/workflows.md): Event-driven scripts that react to entity lifecycle events in the ERP.
- [Batch Processing](https://developer.vario-software.de/documentation/scripting/batch-processing.md): Process imported CSV or JSON data row by row, with full control over mapping and errors.
- [Services](https://developer.vario-software.de/documentation/scripting/services.md): The ctx.services layer scripts use to read, create, update and query ERP data.
- [Script Modules](https://developer.vario-software.de/documentation/scripting/script-modules.md): Reusable JavaScript modules shared across workflows and batch scripts.
- [HTTP & Secrets](https://developer.vario-software.de/documentation/scripting/http-and-secrets.md): Call external HTTP APIs from scripts, restricted by the HTTP whitelist, with credentials kept in encrypted secrets.
- [Files & Export](https://developer.vario-software.de/documentation/scripting/files-and-export.md): Write CSV, XML and free text files from scripts into the DMS or into a string for an API push.
- [Output](https://developer.vario-software.de/documentation/scripting/output.md): Print, mail, export and file documents, dunning letters, labels and notifications from scripts, and control outputs with output scripts.
- [Use Cases](https://developer.vario-software.de/documentation/scripting/use-cases.md): What VARIO Cloud scripting can do for marketing, sales, purchasing and product data — from newsletter sync to AI-generated product texts.


---

# 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://developer.vario-software.de/documentation/scripting.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.
