Template: How to configure my template file to automatically move a new file created in a specific directory

What I’m trying to do

Things I have tried

How to configure my template file to automatically move a new file created in a specific directory.
Example:
I create a template my_template and when i use this template I want the file to be created in my_directory automatically.
Many thanks!