Generate Word documents from template
Automatically generate Word documents from .docx templates. You can use merge fields to insert your own data into a document.
This is an example of a document with merge fields:
Then you can use Microsoft Flow, Logic Apps or REST API to apply your data to a template.
Set up Microsoft Flow connector in a few minutes. You will have a few new actions in your flows that can be used to work with documents.
We prepared an article that demonstrates how to generate docx from a template.