Before we send the rules to the frontend, we perform partial logic evaluation of the logic triggers. We need to do the same with the value of the variable action, as this can also be a JSON logic expression.
Possibly we also need to add data type information?