> For the complete documentation index, see [llms.txt](https://docs.ninox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ninox.com/ninox-scripting/automate-your-workflows.md).

# Automate your workflows

- [Introduction to Ninox script](https://docs.ninox.com/ninox-scripting/automate-your-workflows/introduction-to-ninox-script.md): Learn what Ninox script is, where you can use it, and the core terms you need to start writing scripts.
- [Explore core scripting elements](https://docs.ninox.com/ninox-scripting/automate-your-workflows/explore-core-scripting-elements.md): Learn the core building blocks of Ninox scripting, including statements, variables, data types, operators, and built-in functions.
- [Variables](https://docs.ninox.com/ninox-scripting/automate-your-workflows/explore-core-scripting-elements/variables.md): Learn how to declare variables, store values, and reuse results in Ninox logic.
- [Operators](https://docs.ninox.com/ninox-scripting/automate-your-workflows/explore-core-scripting-elements/operators.md): Learn how to calculate, compare, assign, and access values with operators in Ninox logic.
- [Statements](https://docs.ninox.com/ninox-scripting/automate-your-workflows/explore-core-scripting-elements/statements.md): Learn how to use core Ninox statements to make decisions, query and sort records, repeat logic, and create or delete records.
- [Logic editor features](https://docs.ninox.com/ninox-scripting/automate-your-workflows/explore-core-scripting-elements/logic-editor-features.md): Learn how the Ninox logic editor helps you write, format, search, and troubleshoot scripts faster.
- [Work with functions](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions.md): Learn how to use Ninox functions by category, and find the right tools for calculations, text, dates, records, and more.
- [Text and strings](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/text-and-strings.md): Learn how to build, clean, search, format, and convert text values for labels, logic, and integrations in Ninox.
- [Numbers and math](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/numbers-and-math.md): Learn how to summarize values, convert data to numbers, generate ranges, and use common math functions in Ninox scripts.
- [Dates and time](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/dates-and-time.md): Learn how to create dates, times, or appointments, measure durations, extract date parts, and build reporting periods in Ninox scripts.
- [Records and tables](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/records-and-tables.md): Learn how to sort, inspect, update, and reuse records and record lists in Ninox scripts.
- [User interface](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/user-interface.md): Learn how to show messages and navigate users with Ninox scripts.
- [Files and export](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/files-and-export.md): Learn how to import files, create exports, inspect attachments, and manage file and view sharing in Ninox scripts.
- [Users and roles](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/users-and-roles.md): Learn how to read user details, check roles and admin status, and adapt scripts to the current app, language, and workspace context.
- [Location and devices](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/location-and-devices.md): Learn how to read device location, open links, start calls, encode URLs, and scan barcodes in Ninox scripts.
- [Integration and HTTP](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/integration-and-http.md): Learn how to call external services, validate XML against XSD schemas, transform XML, create email values, and send emails with Ninox scripts.
- [System and flow control](https://docs.ninox.com/ninox-scripting/automate-your-workflows/work-with-functions/system-and-flow-control.md): Learn how to pause scripts, inspect the app execution context.
- [Global functions](https://docs.ninox.com/ninox-scripting/automate-your-workflows/global-functions.md): Create reusable scripts that you can use throughout your app.
- [Automations](https://docs.ninox.com/ninox-scripting/automate-your-workflows/automations.md): Learn when automations run and how to use On open, On create, On update, and On delete in Ninox.
- [Index fields to speed up filters and searches](https://docs.ninox.com/ninox-scripting/automate-your-workflows/automations/index-fields-to-speed-up-filters-and-searches.md): Learn how to use indexes in Ninox and maintain performance in large apps.
- [Understand transactions in Ninox](https://docs.ninox.com/ninox-scripting/automate-your-workflows/automations/understand-transactions-in-ninox.md): Learn how Ninox executes read and write transactions.
- [Optimize the performance of your app](https://docs.ninox.com/ninox-scripting/automate-your-workflows/automations/optimize-the-performance-of-your-app.md): Learn how to optimize Ninox app performance with efficient queries, triggers, and data handling.


---

# 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.ninox.com/ninox-scripting/automate-your-workflows.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.
