Hello,
There's no example that do exactly what you need, so you'll need to think how to do that reading the examples related to templates. An idea is to work with as may documents as you need as templates, change them replacing placeholders and other content, and merging them using mergeDOCX or addDOCX.
Regards.