
Hi @Samuel Ochsenbein ,
Creating a site template is actually the same process as creating a site design. After building the base site, create the required site scripts using JSON and possibly Azure services. Finally, the site template can be added to your SharePoint tenant via PowerShell. Generally speaking, we talk about website scripts, where there are many actions available, creating lists and libraries, setting website branding properties page layout, etc. We usually use PowerShell to add create site scripts to complete the website design. Whereas Power Automate flows are often used with site design to track the creation of a site, referenced in the site script of the site design.
Some article references about site templates and site scripts:
Get started creating site templates and site scripts
Calling the PnP provisioning engine from a site script
Calling Power Automate from a site script
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.