# 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="/files/ZFo41zwc1WTCzGKzfwpD" 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](/video-generation/video-generation.md)


---

# 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.colossyan.com/advanced/using-template-variables/text-template-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.
