# Product Image Alt Text

To generate AI-curated image alt texts for products,

* Go to **Catalog > Products**.
* Create New Product or open any existing product in Edit mode.
* Navigate to the **Images and Videos** option and expand it.
* Upload an image or open any existing one.
* Click on the **Generate AI Content** button to automatically create or update the product’s image alt text using the OpenAI API.
* Close the Image Detail popup and click on **Save**.

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

Every time the admin clicks on the Generate AI Content button, it generates a new content variant. Admin can even edit the content if necessary.

**Frontend Display of AI-Generated Product Image Alt Text**

Go to the respective product page in frontend and Right Click > View Page Source or press Ctrl+U.

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

The AI-generated Alt Text has been added to the product image, which will help in better crawling of images by search engines.


---

# 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.magecomp.com/chatgpt-ai-pro-for-magento-2/product-image-alt-text.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.
