The advanced set meta data workflow component, Set template, sets the template for the next merge.
The component has this parameter:
Template
This is the template, that is to be merged with. With the rightmost icon you can select the template as an XPath expression to make a dynamic selection.
After you have set the template you can e.g. use the component: From template to intermediate format.