As a user I'd like the ability to reference a template to use to generate the transformed String, where the model for the template would be the payload.
<object-to-string-transformer input-channel="newAppointmentsChannel" template="classpath:templates/new-appointment-email.st" output-channel="doctorEmailChannel" />