Currently, inside a template we can only use the built in variables. For me there are a lot of cases where the variable would come from a workflow, either a webhook, custom code, chatGPT response or any other things that are temporary variables that only show in a workflow.
There is a messy workaround to get the is done and it's with a global variable or creating contact variable to store that information but it just messes up the system and creates unnecessary work and fields.
I've seen in other systems that a variable does not have to be filled immediately when creating a template, it can be populated "on the run", in our case, we would be able to fill this template variable from within the workflow, and not when creating the template.
Thanks