Designing Reliable Document Generation Workflows in Modern Webs Applications