It would be nice if you could use an expression to evaluate the Document Type and Template in the “Generate document” Action in Microflows.