# How to generate an image alt text using Umbraco AI Prompt by passing an image?

**URL:** <https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768>\
**Category:** Questions\
**Tags:** v17, umbraco-ai\
**Created:** [March 27, 2026, 1:01pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768 "2026-03-27T13:01:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debasish](https://forum.umbraco.com/user_avatar/forum.umbraco.com/debasish/32/2641_2.png) [@Debasish](https://forum.umbraco.com/u/Debasish)\
**Post date:** [March 27, 2026, 1:01pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768/1 "2026-03-27T13:01:13Z")

</div>

Hi, I am trying to use Umbraco AI Prompt to generate Alt text for images. I have created a new prompt in backoffice and given this instruction:

Write a concise alt text in under 50 characters for the following image:  
`{{umbracoFile}}`  
Return only the alt text, nothing else.

When I try to generate the alt text, I get this message:  
‘I can see you’ve mentioned an image, but no image has actually been shared in our conversation. Could you please share the image you’d like me to write alt text for?’

Is it possible to generate alt text by passing the image?

---

<div class="post-metadata">

**Author:** ![mattbrailsford](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mattbrailsford/32/5204_2.png) [@mattbrailsford](https://forum.umbraco.com/u/mattbrailsford)\
**Post date:** [March 27, 2026, 1:44pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768/2 "2026-03-27T13:44:21Z")

</div>

Hey Debasish,

It certainly is possible, there is just a specific syntax that is necessary which is

```auto
{{ image:umbracoFile }}

```

The `image:` prefix tells us to embed the image into the request and send it to the LLM as binary data for it to process.

Hope that helps

---

<div class="post-metadata">

**Author:** ![Debasish](https://forum.umbraco.com/user_avatar/forum.umbraco.com/debasish/32/2641_2.png) [@Debasish](https://forum.umbraco.com/u/Debasish)\
**Post date:** [March 27, 2026, 2:04pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768/3 "2026-03-27T14:04:22Z")

</div>

Thanks Matt! The `{{ image:umbracoFile }}` syntax worked perfectly.

One follow-up question — are all the available template variables (like `{{image:umbracoFile}}`) documented somewhere? It would be really helpful to know the full list and their syntax so I can make the most of the prompt templating

---

<div class="post-metadata">

**Author:** ![mattbrailsford](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mattbrailsford/32/5204_2.png) [@mattbrailsford](https://forum.umbraco.com/u/mattbrailsford)\
**Post date:** [March 27, 2026, 2:09pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768/4 "2026-03-27T14:09:31Z")

</div>

There is some docs in the git repo here [Umbraco.AI/docs/public/add-ons/prompt/template-syntax.md at dev · umbraco/Umbraco.AI · GitHub](https://github.com/umbraco/Umbraco.AI/blob/dev/docs/public/add-ons/prompt/template-syntax.md)

But it’s on our sprint plan for the next sprint to move all the docs to [https://docs.umbraco.com](https://docs.umbraco.com)

---

<div class="post-metadata">

**Author:** ![Debasish](https://forum.umbraco.com/user_avatar/forum.umbraco.com/debasish/32/2641_2.png) [@Debasish](https://forum.umbraco.com/u/Debasish)\
**Post date:** [March 27, 2026, 2:14pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768/5 "2026-03-27T14:14:43Z")

</div>

oh okay. This is helpful . Thanks Matt

---

<div class="post-metadata">

**Author:** ![BishalTimalsina12](https://forum.umbraco.com/user_avatar/forum.umbraco.com/bishaltimalsina12/32/5556_2.png) [@BishalTimalsina12](https://forum.umbraco.com/u/BishalTimalsina12)\
**Post date:** [March 27, 2026, 2:19pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768/6 "2026-03-27T14:19:45Z")

</div>

i needed this!! thanks matt :high-5-you-rock:

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [April 26, 2026, 2:19pm UTC](https://forum.umbraco.com/t/how-to-generate-an-image-alt-text-using-umbraco-ai-prompt-by-passing-an-image/7768/7 "2026-04-26T14:19:58Z")

</div>

Closed on April 26, 2026, 2:19pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
