# Variables

***

Tailwinds allow users to create variables that can be used in:

* [Custom Tool](/readme/chatflows/langchain/tools/custom-tool.md)
* [Custom Function](/readme/utilities/custom-js-function.md)
* [Custom Loader](/readme/chatflows/langchain/document-loaders/custom-document-loader.md)
* [If Else](/readme/utilities/if-else.md)

For example, you have a database URL that you do not want it to be exposed on the function, but you still want the function to be able to read the URL from your environment variable.

User can create a variable and get the variable like so:

`$vars.<variable-name>`

Variables can be Static or Runtime.

## Static

Static variable will be saved with the value specified, and retrieved as it is.

<figure><img src="/files/KxxSAMVoghaSFzrR2xZt" alt="" width="542"><figcaption></figcaption></figure>

## Runtime

Value of the variable will be fetched from **.env** file using `process.env`

<figure><img src="/files/ufa6koFjtOn9OGZDU9u0" alt="" width="537"><figcaption></figcaption></figure>

## Resources

* [Pass Variables to Function](/readme/chatflows/langchain/tools/custom-tool.md#pass-variables-to-function)


---

# 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://tailwindsdocs.innovativesol.com/readme/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.
