Workflows with templates