Here are some resources to get you started with writing scripts that can hook into Templater’s automation processes. You can choose to code the script in any language the environment running Templater can interpret
Event Scripts for Templater
The README file found in the event-scripts repository on GitHub.
The Event Scripts topic page in Templater’s documentation leading to: