> For the complete documentation index, see [llms.txt](https://dev.ubidots.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.ubidots.com/synthetic-variables.md).

# Synthetic variables

- [Getting started](https://dev.ubidots.com/synthetic-variables/getting-started.md)
- [Creating synthetic variables](https://dev.ubidots.com/synthetic-variables/getting-started/creating-synthetic-variables.md)
- [Synthetic variables' editor](https://dev.ubidots.com/synthetic-variables/getting-started/synthetic-variables-editor.md)
- [Expressions](https://dev.ubidots.com/synthetic-variables/expressions.md)
- [Mathematical](https://dev.ubidots.com/synthetic-variables/expressions/mathematical.md)
- [Date range](https://dev.ubidots.com/synthetic-variables/expressions/date-range.md): Ubidots lets you build new variables from time-series data over a date range. For example, you can calculate the mean, sum, or median per hour using a synthetic variable based on your sensor inputs.
- [Rolling](https://dev.ubidots.com/synthetic-variables/expressions/rolling.md): Compute a rolling value over a time window or number of values using mean, sum, min, max, or count.
- [Special functions](https://dev.ubidots.com/synthetic-variables/expressions/special-functions.md): Use functions to work with time series, fill gaps in missing data, write conditional statements, compute cumulative sums, and shift values in a series.
- [Specs and limits](https://dev.ubidots.com/synthetic-variables/specs-and-limits.md): Synthetic variables have the following limits for performance and the coding environment.
- [Examples](https://dev.ubidots.com/synthetic-variables/examples.md): Here are some examples of how to use synthetic variables and its functions.
- [Mathematical](https://dev.ubidots.com/synthetic-variables/examples/mathematical.md)
- [Date range](https://dev.ubidots.com/synthetic-variables/examples/date-range.md)
- [Rolling](https://dev.ubidots.com/synthetic-variables/examples/rolling.md)
- [Special functions](https://dev.ubidots.com/synthetic-variables/examples/special-functions.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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dev.ubidots.com/synthetic-variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
