Create automation template including custom text

I’m looking to create an automation template which includes custom text. I am aware of how to create a template however it doesn’t retain the custom text. Specifically, we have an automation which creates a number of sub-items and we want to use that automation on a number of boards and we want the names of the sub-items to be saved within the template as they will be the same on every board the automation is used on.