API recipes: Create and send a document from a template