This is a Google cloud function to create Docx documents out of templates.
A processing of docx documents is based on docx4j library. Other libraries like templ4docx can be considered to use in future.
Cloud functions: Writing, Viewing, and Responding to Logs (https://cloud.google.com)
Cloud build: Using user-defined substitutions (https://cloud.google.com)