Persistant Templates

I like the concepts of templates and how they can used to communicate to users. However, editing larger templates could become cumbersome when the template needs to be transformed into JSON when it is used i.e. in automations.

I could imagine a feature where the live editor for templates allows to store such an template with an name (or ID). In automations I can refer to the template with the given ID and the UI could be used to make adjustments or changes to the template.