# Text template variables

You can use dynamic template variables in any text element, by simply typing a variable name between curly braces.&#x20;

<figure><img src="https://55465428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Ywi5dAVPQ3D5ZEo1sKj%2Fuploads%2FpUx0PmEFNh2K3XYAoowt%2Ftextvar.gif?alt=media&#x26;token=f353146e-d01f-4e0c-8be7-c088906aa390" alt=""><figcaption></figcaption></figure>

Take the following example:

,,,

*Hey {name}, we’ve been improving!*

*Our newest feature, {feature\_name}, is live!*

,,,

In this text we created two template variables: `name` *and* `feature_name` .

### Providing values for the variables <a href="#polling" id="polling"></a>

You can replace these template variables with their values, by sending their values in the request body when generating a video. The API will replace the placeholders in the text with the corresponding values you provide.

For example:

```json
{
    "dynamicVariables": {
        "name": "John",
        "feature_name": "AI-powered task automation",
    },
    // other request parameters...
}
```

### Generating a video <a href="#polling" id="polling"></a>

On how to generate a video you can find more information here: [video-generation](https://docs.colossyan.com/video-generation/video-generation "mention")
