# Creating synthetic variables

To create a synthetic variable, open any active device in your [Ubidots account](https://industrial.ubidots.com/ubi/datasources/#/list), click the **Add variable** button, and select **Synthetic variable**.

<figure><img src="/files/r50UIYRuVYmZ1iyGHCyq" alt=""><figcaption></figcaption></figure>

A modal window appears where you can enter formulas and expressions that use raw variables and other synthetic variables to extract more value from your data:

<figure><img src="/files/Hvoi9MWdpcwAAfLwa3py" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://dev.ubidots.com/synthetic-variables/getting-started/creating-synthetic-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
