I’m trying to validate, if there is a wrong format of a file attachment in a task using AI-Studio.
If there is just one of X attachments in the wrong format, ai should put the task in the column “Blacklist”.
I tried Claude Sonnet 4 and GPT. The output is always wrong and completely different. Tasks became always whitelisted, even there is a blacklisted format inside.
The task has two different attachments:
1 right format (.pdf)
1 wrong format (.exe)
Claude Sonnet 4:
Inspects task, finds one whitelisted format, ignores blacklisted attachment and puts task into column “Whitelist”. Done
GPT:
Doesn’t find any attachments
Now I’m trying to get the list “AddAttachmentStory” / “Activity Stories” and validate that one.
Yes, rules in Asana work in descending order - if the task meets the requirements of the first option in the condition it will trigger the appropriate action without checking if the task meets any other conditions.
Context:You are responsible for ensuring that no infected files enter our network via task attachments. To do this, you check all file attachments and appendices of newly added tasks. This includes tasks created directly in the project as well as tasks received via a form. As this is very important, you perform the check twice in a row to be absolutely sure. Only then do you make a decision.
Instructions:Check all files attached to the task (task description, file attachment, comments). Some files/attachments may take a while to load. Therefore, wait 30 seconds before performing the check.If ANY file attachment has an unauthorized format, move the task directly to the “Blacklist” column.Unpermitted formats for attachments are:.exe.bat.cmd.js.vbs.docm.xlsm.zip.rar.msi.ps1
Only if NONE of the attachments have an unauthorized data format and a second check has been performed:→ Move the task to the “Whitelist” column.
If there are no attachments and a second check has been performed:→ Move the task to the “No attachment” column.
AI Studio guidance can only to instruct AI on how to execute the conditions and rule actions that are added to the rule. It cannot influcence what is not there.
You can’t instruct the rule to do things differently to when the trigger happens. If the rule is triggered, it will run.
Multiple conditions (either in the same or different branches) is the only way to duplicate checks. But that’d be a last resort, as I think there are many ways to improve the accuracy of the rule without duplication.
A “When: Attachment is added” seems a better check, as you cannot instruct a delay into a rule, as it is not part of rule functionality.
It seems AI Studio is able do determine file extentions:
PS: I’m guessing if you could do this with a script (or two) it would have absolute accuracy, and not use AI studio credits. See @Arthur_BEGOUUse Script Actions to Make the Most of your AI Studio credits (I don’t have experience with scripts yet, but it sounds like something that should be possible)