The Best Practices in Document Automation