Skip to main content
Question

Questions on image File Upload (Slot)

  • March 12, 2026
  • 4 replies
  • 39 views

  • Participating Frequently

Hi Team,

We are developing a use case to change the profile picture. This is a pretty straightforward use case where we have a File data type slot and an API call to upload the photo to Workday.

Workday does have a couple of validations for an uploaded photo that we are trying to check via Moveworks:
1. Check whether the uploaded picture is an image (jpeg, png) - we are doing this by checking the file name in the validation of the slot.
2. Check the file size. (probably less than 1MB)
3. Check if the image is a square or a certain aspect ratio.
4. Can we validate the optical recognition - if the uploaded picture is a passport, a driver's license, etc.?

I asked the Agent Architect bot, but the recommendation it gave wasn't possible (a script action for the file size).

4 replies

Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • March 12, 2026

Hey ​@suyog -
For checking the extension of the attachment in your vlaidator you could try doing: value.file_name.$ENDS_WITH(“.jpeg”) OR … 

For the other questions:


Checking file size is not possible, because you would need to get access to the location of the file and that’s currently not something we expose.
Also checking the attachment’s aspect ratio or any kind of OCR work is not possible. With File Slots, you cannot read, parse, or modify file contents -- more on File slot limitations

 

I will talk to the team internally about Architect’s mistake!


  • Author
  • Participating Frequently
  • March 12, 2026

@Kevin Mok 
Thanks for clarifying my questions in speedy time!


  • Author
  • Participating Frequently
  • March 16, 2026

@Kevin Mok 
I had a follow-up question to this- say we have an API that returns an image (the user’s profile photo). Is there a way to display this to the user in chat?

The use case would look something like:
User: “What is my current profile photo?”
Bot: Here is your current profile picture:
<displays photo in chat>


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • March 16, 2026

Hey ​@suyog - That’s also not a feature we currently support. Are there any production use cases in mind besides the one you mentioned that are critical for you and your team?