# Variables

### What are variables

Variables act as placeholders that you fill in with actual information as the workflow happens. They automatically populate with your store's data when generating ALT text.

Using variables helps you save time and effort. You can set ALT text for all images at once instead of editing them one by one.

Format: `{{ variables }}`

<table><thead><tr><th>Content</th><th>What visitors see</th></tr></thead><tbody><tr><td><code>{{ file_title }}</code> - <code>{{ shop_name }}</code></td><td>theme_cover_image - My store</td></tr><tr><td><code>{{ shop_name }}</code> - <code>{{ file_title }}</code></td><td>Mystore-green_indoor_plant_white_ribbed_ceramic_pot</td></tr><tr><td><code>{{ file_title }}</code></td><td><pre><code>green_indoor_plant
</code></pre></td></tr></tbody></table>

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

### Benefits <a href="#benefits" id="benefits"></a>

* Maintain consistency across your store
* Save hours on image optimization
* Automatically generate alt text for all images at once
* Improve your store's SEO performance

```
{{ variables }}
```

### Supported variables <a href="#supported-variables" id="supported-variables"></a>

| Variable        | Description             | Example               |
| --------------- | ----------------------- | --------------------- |
| `File title`    | Image file name         | green\_indoor\_plant  |
| `Shop name`     | Your Shopify store name | My store              |
| `Shop domain`   | Store domain            | mystore.myshopify.com |
| `Shop country`  | Store country           | US                    |
| `Shop province` | Store province/state    | California            |

> **Note:** Variables are based on image file and store information. Since the app now optimizes by file (not by product page), product-level variables (product type, collection name) are no longer available.

### Tips <a href="#tips" id="tips"></a>

* Combine multiple variables for more detailed descriptions
* Review the **Preview** before applying changes
* Use variables consistently across all images for uniform SEO optimization
* Click `<>` in the template builder to switch to code view for advanced editing


---

# 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://help.appplaza.app/image-optimizer/alt-text-optimizer/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.
