# Adding Variables

### What is a variable?

Variables are placeholders that can change value for each document depending on the data that is given as input. For example, if you are merging multiple documents from a list of accounts in a table, the ‘name’ variable can serve as the placeholder for different account names in each generated document.

In addition to telling Documint where to place your data, there are also [functions](/legacy-documentation/data-and-variables/functions.md) that you can use to manipulate data in your template.&#x20;

{% hint style="warning" %}
**Variable names should be all lower-case, have no special symbols, and spaces should be replaced with underscores.**
{% endhint %}

1. Begin by dragging a text element into a column which appears by default when a section is added.

![](/files/geG0NFMX2RVcFUByrCZ5)

2\. Use the ‘New Variable button’ on the right-hand Data pane. In the window that appears, type the variable name and copy the generated variable name.

![](/files/c0UtV5E92epppLFvq1oS)

3\. Paste the variable into a text field.  Template variables will appear with curly braces `{{variable_name}}.`You can confirm the created variables by seeing them on the right-hand Data pane, under the Template Variables section.

![](/files/NqSC6b8pwnaT6F4QXihQ)


---

# 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://docs.documint.me/legacy-documentation/adding-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.
