Use the Server Action Template to address templates. You can find the documentation in this article.
With the help of parameters, it is possible to pass data to the template.
Don’t forget to map the input and output. The complete template will be returned as a string.