<@833534923116773376> Yeah the best way is using a...
# đź’»developers
@gentle-ability-75784 Yeah the best way is using an AI Task with instructions like: "Check if the user name is a valid one with no curses, emojis, symbols and has at least 3 characters. If it passes all validations, set the isNameValid variable to true, otherwise set it to false". With the input: User name: {{workflow.name}} Storing in the variables
Then below the AI Task you add two Expressions. the first one has the code
isNameValid === true
and transitions to the next node The second one has the code
, and transitions to the start of the flow to ask the name again (ideally you should transition to a node with a text that says "That's an invalid name", and then transitions back to the node with the capture